2 ha cambiato i file con 73 aggiunte e 1 eliminazioni
@ -0,0 +1,72 @@
|
||||
<?php |
||||
|
||||
define("DEV", 1); |
||||
define("DEBUG_MODE", false); |
||||
|
||||
$config = array( |
||||
"DEBUG_MESSAGE" => 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'; |
||||
} |
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Caricamento…
Reference in new issue