From 2e93a870fc68e289e9e6acb87c41f18b803288f2 Mon Sep 17 00:00:00 2001 From: "Amerigo C." Date: Thu, 2 Apr 2026 09:10:58 +0200 Subject: [PATCH] update --- .gitignore | 2 +- lib/app.config.php | 72 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+), 1 deletion(-) create mode 100644 lib/app.config.php diff --git a/.gitignore b/.gitignore index c7d6737..4c2c518 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ nbproject/ upload/ md5file/ -lib/app.config.php +#lib/app.config.php .idea/ export/ diff --git a/lib/app.config.php b/lib/app.config.php new file mode 100644 index 0000000..09842d6 --- /dev/null +++ b/lib/app.config.php @@ -0,0 +1,72 @@ + DEBUG_MODE, + "FAQ" => true, + "SPID" => false, + "FILE_UPLOAD" => true, + "FIREBASE" => true, + "CAPTCHA" => false, + "EMAIL" => false, + "INFOCAMERE" => true, + "AVVISO" => true +); + +if ($config['DEBUG_MESSAGE'] == true) { + ini_set('display_errors', 1); + ini_set('display_startup_errors', 1); + error_reporting(E_ALL); +} + +define("PREFIX_HTTP", "http://"); +define("BASE_FOLDER", "/"); // deve chiudere sempre con / +$GLOBALS['HTTP'] = PREFIX_HTTP . $_SERVER['HTTP_HOST'] . BASE_FOLDER . '/'; +$GLOBALS['ROOT'] = PREFIX_HTTP . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']) . '/'; +define("ROOT", dirname(dirname(__FILE__)) . "/"); + + +/* MODULI OBBLIGATORI */ +require_once ROOT . "lib/constants.php"; +require_once 'config/base.config.php'; // BASE +require_once 'config/database.config.php'; // DATABASE +require_once 'config/sportello.config.php'; // CFG SPORTELLO (DATE E CONSTANT) +require_once "config/menu.config.php"; // MENU' ITEM +require_once "config/spid.config.php"; // MENU' ITEM + +/* SPID */ +if ($config['SPID'] == true) { + require_once 'config/spid.config.php'; +} + +/* FILE UPLOAD */ +if ($config['FILE_UPLOAD'] == true) { + require_once 'config/upload.config.php'; +} + +/* FIREBASE */ +if ($config['FIREBASE'] == true) { + require_once 'config/firebase.config.php'; +} + +/* CAPTCHA */ +if ($config['CAPTCHA'] == true) { + require_once 'config/captcha.config.php'; +} + +if ($config['INFOCAMERE'] == true) { + require_once 'config/infocamere.config.php'; +} + +if ($config['AVVISO'] == true) { + require_once 'config/avviso.config.php'; +} + + + + + + +