From 5283d2adbba4bdf3aef32179031c25bf3240a5a9 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Sun, 26 Nov 2023 15:15:44 +0100 Subject: [PATCH] supprime le dash board --- core/module/dashboard/dashboard.php | 50 -------------------- core/module/dashboard/view/index/index.php | 54 ---------------------- 2 files changed, 104 deletions(-) delete mode 100644 core/module/dashboard/dashboard.php delete mode 100644 core/module/dashboard/view/index/index.php diff --git a/core/module/dashboard/dashboard.php b/core/module/dashboard/dashboard.php deleted file mode 100644 index e2f4e6a..0000000 --- a/core/module/dashboard/dashboard.php +++ /dev/null @@ -1,50 +0,0 @@ - - * @copyright Copyright (C) 2008-2018, Rémi Jean - * @author Frédéric Tempez - * @copyright Copyright (C) 2018-2023, Frédéric Tempez - * @license CC Attribution-NonCommercial-NoDerivatives 4.0 International - * @link http://zwiicms.fr/ - */ - -class dashboard extends common -{ - - public static $actions = [ - 'index' => self::GROUP_ADMIN, - ]; - - - - public static $infos = []; - - /** - * Dashboard - */ - public function index() - { - - self::$infos['webserver'] = $_SERVER['SERVER_SOFTWARE']; - self::$infos['php']['version'] = phpversion(); - self::$infos['php']['extension'] = get_loaded_extensions(); - - self::$infos['system']['memory'] = memory_get_usage() . ' octets'; - self::$infos['system']['peek'] = 'Pic de mémoire utilisée : ' . memory_get_peak_usage() . ' octets'; - - $loadAverage = sys_getloadavg(); - self::$infos['system']['charge'] = 'Charge moyenne (1 min / 5 min / 15 min) : ' . implode(' / ', $loadAverage) . '

'; - - // Valeurs en sortie - $this->addOutput([ - 'title' => helper::translate('Tableau de bord'), - 'view' => 'index' - ]); - } - -} \ No newline at end of file diff --git a/core/module/dashboard/view/index/index.php b/core/module/dashboard/view/index/index.php deleted file mode 100644 index cd2b8e5..0000000 --- a/core/module/dashboard/view/index/index.php +++ /dev/null @@ -1,54 +0,0 @@ - -
-
- 'buttonGrey', - 'href' => helper::baseUrl(false), - 'value' => template::ico('home') - ]); ?> -
-
-
-
-
-

- -

-
-
-

- -

-

- -

-
-
-

- -

-

- -

-
-
- -
-
-

- -

-

- -

-

- -

-

- -

-
-
-
-
-
\ No newline at end of file