From 5bf66662a9bdd62c5bccab15e607cd95cfb8fcab Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Mon, 27 Jul 2020 10:05:23 +0200 Subject: Removed wordpress and phpmyadmin, my server doesn't handle it well and it brings shame on my familly --- .../libraries/classes/Database/MultiTableQuery.php | 145 --------------------- 1 file changed, 145 deletions(-) delete mode 100644 srcs/phpmyadmin/libraries/classes/Database/MultiTableQuery.php (limited to 'srcs/phpmyadmin/libraries/classes/Database/MultiTableQuery.php') diff --git a/srcs/phpmyadmin/libraries/classes/Database/MultiTableQuery.php b/srcs/phpmyadmin/libraries/classes/Database/MultiTableQuery.php deleted file mode 100644 index b9fa888..0000000 --- a/srcs/phpmyadmin/libraries/classes/Database/MultiTableQuery.php +++ /dev/null @@ -1,145 +0,0 @@ -dbi = $dbi; - $this->db = $dbName; - $this->defaultNoOfColumns = $defaultNoOfColumns; - - $this->template = $template; - - $this->tables = $this->dbi->getTables($this->db); - } - - /** - * Get Multi-Table query page HTML - * - * @return string Multi-Table query page HTML - */ - public function getFormHtml() - { - $tables = []; - foreach ($this->tables as $table) { - $tables[$table]['hash'] = md5($table); - $tables[$table]['columns'] = array_keys( - $this->dbi->getColumns($this->db, $table) - ); - } - return $this->template->render('database/multi_table_query/form', [ - 'db' => $this->db, - 'tables' => $tables, - 'default_no_of_columns' => $this->defaultNoOfColumns, - ]); - } - - /** - * Displays multi-table query results - * - * @param string $sqlQuery The query to parse - * @param string $db The current database - * @param string $pmaThemeImage Uri of the PMA theme image - * - * @return void - */ - public static function displayResults($sqlQuery, $db, $pmaThemeImage) - { - list( - $analyzedSqlResults, - $db, - ) = ParseAnalyze::sqlQuery($sqlQuery, $db); - - extract($analyzedSqlResults); - $goto = 'db_multi_table_query.php'; - $sql = new Sql(); - $sql->executeQueryAndSendQueryResponse( - null, // analyzed_sql_results - false, // is_gotofile - $db, // db - null, // table - null, // find_real_end - null, // sql_query_for_bookmark - see below - null, // extra_data - null, // message_to_show - null, // message - null, // sql_data - $goto, // goto - $pmaThemeImage, // pmaThemeImage - null, // disp_query - null, // disp_message - null, // query_type - $sqlQuery, // sql_query - null, // selectedTables - null // complete_query - ); - } -} -- cgit