Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 

63 righe
1.6 KiB

<?php
define("DEV", 1);
define("DEBUG_MODE", 0);
define("TEST_INTRUSIONE", false);
define("REWRITEENGINE", false);// SE CONFIGURATO IL FILE .HTACCESS PER LA GESTIONE DELL'URL REWRITE TOGLI ESTENSIONE PHP
$config = array(
"DEBUG_MESSAGE" => false,
"FAQ" => true,
"SPID" => true,
"FILE_UPLOAD" => true,
"FIREBASE" => false,
"CAPTCHA" => false,
"EMAIL" => true,
"INFOCAMERE" => false,
"AVVISO" => true
);
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__)) . "/");
define("PHP_SELF", $_SERVER['PHP_SELF']);
/* MODULI OBBLIGATORI */
require_once 'config/base.config.php'; // BASE
require_once 'config/database.config.php'; // DATABASE
require_once 'config/menu.config.php'; // VOCI DI MENU'
require_once 'config/sportello.config.php'; // CFG SPORTELLO (DATE E CONSTANT)
require_once 'config/stats.php'; // CFG SPORTELLO (DATE E CONSTANT)
/* SPID */
if ($config['SPID']) {
require_once 'config/spid.config.php';
}
/* FILE UPLOAD */
if ($config['FILE_UPLOAD']) {
require_once 'config/upload.config.php';
}
/* FIREBASE */
if ($config['FIREBASE']) {
require_once 'config/firebase.config.php';
}
/* CAPTCHA */
if ($config['CAPTCHA']) {
require_once 'config/captcha.config.php';
}
/* CAPTCHA */
if ($config['INFOCAMERE']) {
require_once 'config/infocamere.config.php';
}
if ($config['AVVISO']) {
require_once 'config/avviso.config.php';
}