diff --git a/conf/config.php b/conf/config.php index f4ced39..1f8ea46 100644 --- a/conf/config.php +++ b/conf/config.php @@ -20,10 +20,10 @@ define("SMTP_PORT", 25); define("SMTP_MAIL", "__APP__@__DOMAIN__"); define("SMTP_PASSWORD", ""); -define("CREATION_COMPTE", true); -define("CONNEXION_COMPTE", true); +define("CREATION_COMPTE", __CREATION_COMPTE__); +define("CONNEXION_COMPTE", __CONNEXION_COMPTE__); -define("CSV_SEP", ";"); +define("CSV_SEP", "__SEPARATEUR_CSV__"); define("PHP_SECURE_COOKIES", true); diff --git a/config_panel.toml b/config_panel.toml new file mode 100644 index 0000000..1486a8d --- /dev/null +++ b/config_panel.toml @@ -0,0 +1,24 @@ +version = "1.0" +[main] +name = "Moncycle.app configuration" + [main.comptes] + name = "comptes" + [main.comptes.creation_compte] + ask.en = "Enable account creation" + ask.fr = "Permettre la création de nouveaux comptes" + type = "boolean" + default = "true" + bind = "CREATION_COMPTE:__INSTALL_DIR__/config.php" + [main.comptes.connexion_compte] + ask.en = "Enable account connexion" + ask.fr = "Permettre la connexion aux comptes" + type = "boolean" + default = "true" + bind = "CONNEXION_COMPTE:__INSTALL_DIR__/config.php" + [main.export] + name = "export" + [main.export.separateur_csv] + ask.en = "Separator for data export in csv format" + ask.fr = "Séparateur pour l'export des données au format csv" + type = "string" + default = ";" \ No newline at end of file diff --git a/config_panel.toml.example b/config_panel.toml.example deleted file mode 100644 index 49dae20..0000000 --- a/config_panel.toml.example +++ /dev/null @@ -1,10 +0,0 @@ -version = "1.0" -[main] -name = "Moncycle.app configuration" - [main.comptes] - name = "comptes" - [main.comptes.CREATION_COMPTE] - ask.en = "Enable account creation" - type = "boolean" - default = "true" - bind = ":__INSTALL_DIR__/config.php" \ No newline at end of file