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 --- .../classes/Controllers/AjaxController.php | 97 ---------------------- 1 file changed, 97 deletions(-) delete mode 100644 srcs/phpmyadmin/libraries/classes/Controllers/AjaxController.php (limited to 'srcs/phpmyadmin/libraries/classes/Controllers/AjaxController.php') diff --git a/srcs/phpmyadmin/libraries/classes/Controllers/AjaxController.php b/srcs/phpmyadmin/libraries/classes/Controllers/AjaxController.php deleted file mode 100644 index 0662277..0000000 --- a/srcs/phpmyadmin/libraries/classes/Controllers/AjaxController.php +++ /dev/null @@ -1,97 +0,0 @@ -config = $config; - } - - /** - * @return array JSON - */ - public function databases(): array - { - global $dblist; - - return ['databases' => $dblist->databases]; - } - - /** - * @param array $params Request parameters - * @return array JSON - */ - public function tables(array $params): array - { - return ['tables' => $this->dbi->getTables($params['db'])]; - } - - /** - * @param array $params Request parameters - * @return array JSON - */ - public function columns(array $params): array - { - return [ - 'columns' => $this->dbi->getColumnNames( - $params['db'], - $params['table'] - ), - ]; - } - - /** - * @param array $params Request parameters - * @return array JSON - */ - public function getConfig(array $params): array - { - return ['value' => $this->config->get($params['key'])]; - } - - /** - * @param array $params Request parameters - * @return true|Message - */ - public function setConfig(array $params) - { - return $this->config->setUserValue( - null, - $params['key'], - json_decode($params['value']) - ); - } -} -- cgit