From 880e0fe4591e2e20db05c97779d26e6d80d86889 Mon Sep 17 00:00:00 2001 From: Limezy Date: Thu, 22 Feb 2024 01:09:42 +0700 Subject: [PATCH] Statistics --- config_panel.toml | 11 ++++++++++- scripts/config | 3 +++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/config_panel.toml b/config_panel.toml index 2246640..657fcb9 100644 --- a/config_panel.toml +++ b/config_panel.toml @@ -31,4 +31,13 @@ services = [ 'php8.3-fpm'] ask.fr = "Séparateur pour l'export des données au format csv" type = "tags" choices = [';',','] - default = ';' \ No newline at end of file + default = ';' + + [main.statistics] + name = "Statistiques" + + [main.statistics.statistics] + ask.en = "Statistics for the server" + ask.fr = "Statistiques du serveur" + type = "display_text" + readonly = true \ No newline at end of file diff --git a/scripts/config b/scripts/config index 465c2eb..a9c4ff1 100644 --- a/scripts/config +++ b/scripts/config @@ -48,6 +48,9 @@ set__connexion_compte(){ sed -i "s/define(\"CONNEXION_COMPTE\",.*);/define(\"CONNEXION_COMPTE\", $connexion_compte);/" "$install_dir/config.php" } +get__statistics(){ + echo "$(/usr/bin/php8.3 --define apc.enable_cli=1 stat.php)" +} #================================================= # GENERIC FINALIZATION