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/chk_rel.php | 47 --------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 srcs/phpmyadmin/chk_rel.php (limited to 'srcs/phpmyadmin/chk_rel.php') diff --git a/srcs/phpmyadmin/chk_rel.php b/srcs/phpmyadmin/chk_rel.php deleted file mode 100644 index 2455917..0000000 --- a/srcs/phpmyadmin/chk_rel.php +++ /dev/null @@ -1,47 +0,0 @@ -get(Response::class); - -/** @var DatabaseInterface $dbi */ -$dbi = $containerBuilder->get(DatabaseInterface::class); - -/** @var Relation $relation */ -$relation = $containerBuilder->get('relation'); - -// If request for creating the pmadb -if (isset($_POST['create_pmadb']) && $relation->createPmaDatabase()) { - $relation->fixPmaTables('phpmyadmin'); -} - -// If request for creating all PMA tables. -if (isset($_POST['fixall_pmadb'])) { - $relation->fixPmaTables($GLOBALS['db']); -} - -$cfgRelation = $relation->getRelationsParam(); -// If request for creating missing PMA tables. -if (isset($_POST['fix_pmadb'])) { - $relation->fixPmaTables($cfgRelation['db']); -} - -$response->addHTML( - $relation->getRelationsParamDiagnostic($cfgRelation) -); -- cgit