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 --- .../Controllers/Server/PluginsController.php | 77 ---------------------- 1 file changed, 77 deletions(-) delete mode 100644 srcs/phpmyadmin/libraries/classes/Controllers/Server/PluginsController.php (limited to 'srcs/phpmyadmin/libraries/classes/Controllers/Server/PluginsController.php') diff --git a/srcs/phpmyadmin/libraries/classes/Controllers/Server/PluginsController.php b/srcs/phpmyadmin/libraries/classes/Controllers/Server/PluginsController.php deleted file mode 100644 index dce48a6..0000000 --- a/srcs/phpmyadmin/libraries/classes/Controllers/Server/PluginsController.php +++ /dev/null @@ -1,77 +0,0 @@ -plugins = $plugins; - } - - /** - * Index action - * - * @return string - */ - public function index(): string - { - include ROOT_PATH . 'libraries/server_common.inc.php'; - - $header = $this->response->getHeader(); - $scripts = $header->getScripts(); - $scripts->addFile('vendor/jquery/jquery.tablesorter.js'); - $scripts->addFile('server/plugins.js'); - - $plugins = []; - $serverPlugins = $this->plugins->getAll(); - foreach ($serverPlugins as $plugin) { - $plugins[$plugin->getType()][] = $plugin->toArray(); - } - ksort($plugins); - - $cleanTypes = []; - foreach (array_keys($plugins) as $type) { - $cleanTypes[$type] = preg_replace( - '/[^a-z]/', - '', - mb_strtolower($type) - ); - } - return $this->template->render('server/plugins/index', [ - 'plugins' => $plugins, - 'clean_types' => $cleanTypes, - ]); - } -} -- cgit