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 --- srcs/phpmyadmin/index.php | 120 ---------------------------------------------- 1 file changed, 120 deletions(-) delete mode 100644 srcs/phpmyadmin/index.php (limited to 'srcs/phpmyadmin/index.php') diff --git a/srcs/phpmyadmin/index.php b/srcs/phpmyadmin/index.php deleted file mode 100644 index 11d40b7..0000000 --- a/srcs/phpmyadmin/index.php +++ /dev/null @@ -1,120 +0,0 @@ -get(Response::class); - -/** @var DatabaseInterface $dbi */ -$dbi = $containerBuilder->get(DatabaseInterface::class); - -/** @var HomeController $controller */ -$controller = $containerBuilder->get(HomeController::class); - -if (isset($_REQUEST['ajax_request']) && ! empty($_REQUEST['access_time'])) { - exit; -} - -if (isset($_POST['set_theme'])) { - $controller->setTheme([ - 'set_theme' => $_POST['set_theme'], - ]); - - header('Location: index.php' . Url::getCommonRaw()); -} elseif (isset($_POST['collation_connection'])) { - $controller->setCollationConnection([ - 'collation_connection' => $_POST['collation_connection'], - ]); - - header('Location: index.php' . Url::getCommonRaw()); -} elseif (! empty($_REQUEST['db'])) { - // See FAQ 1.34 - $page = null; - if (! empty($_REQUEST['table'])) { - $page = Util::getScriptNameForOption( - $GLOBALS['cfg']['DefaultTabTable'], - 'table' - ); - } else { - $page = Util::getScriptNameForOption( - $GLOBALS['cfg']['DefaultTabDatabase'], - 'database' - ); - } - include ROOT_PATH . $page; -} elseif ($response->isAjax() && ! empty($_REQUEST['recent_table'])) { - $response->addJSON($controller->reloadRecentTablesList()); -} elseif ($GLOBALS['PMA_Config']->isGitRevision() - && isset($_REQUEST['git_revision']) - && $response->isAjax() -) { - $response->addHTML($controller->gitRevision()); -} else { - // Handles some variables that may have been sent by the calling script - $GLOBALS['db'] = ''; - $GLOBALS['table'] = ''; - $show_query = '1'; - - if ($server > 0) { - include ROOT_PATH . 'libraries/server_common.inc.php'; - } - - $response->addHTML($controller->index()); -} -- cgit