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/setup/index.php | 71 ----------------------------------------- 1 file changed, 71 deletions(-) delete mode 100644 srcs/phpmyadmin/setup/index.php (limited to 'srcs/phpmyadmin/setup/index.php') diff --git a/srcs/phpmyadmin/setup/index.php b/srcs/phpmyadmin/setup/index.php deleted file mode 100644 index 8ff4bf2..0000000 --- a/srcs/phpmyadmin/setup/index.php +++ /dev/null @@ -1,71 +0,0 @@ -index([ - 'formset' => $_GET['formset'] ?? null, - ]); -} elseif ($page === 'config') { - $controller = new ConfigController($GLOBALS['ConfigFile'], new Template()); - echo $controller->index([ - 'formset' => $_GET['formset'] ?? null, - 'eol' => $_GET['eol'] ?? null, - ]); -} elseif ($page === 'servers') { - $controller = new ServersController($GLOBALS['ConfigFile'], new Template()); - if (isset($_GET['mode']) && $_GET['mode'] === 'remove' && $_SERVER['REQUEST_METHOD'] == 'POST') { - $controller->destroy([ - 'id' => $_GET['id'] ?? null, - ]); - header('Location: index.php' . Url::getCommonRaw()); - } else { - echo $controller->index([ - 'formset' => $_GET['formset'] ?? null, - 'mode' => $_GET['mode'] ?? null, - 'id' => $_GET['id'] ?? null, - ]); - } -} else { - $controller = new HomeController($GLOBALS['ConfigFile'], new Template()); - echo $controller->index([ - 'formset' => $_GET['formset'] ?? null, - 'action_done' => $_GET['action_done'] ?? null, - 'version_check' => $_GET['version_check'] ?? null, - ]); -} -- cgit