Ripristino template originale
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
include("config/functions_init.php");
|
||||
$env="generic";
|
||||
|
||||
switch($env){
|
||||
/*------ DON'T TOUCH THIS PART ------ */
|
||||
case "generic":
|
||||
define('WEB_ROOT', $_SERVER['DOCUMENT_ROOT']);
|
||||
define('DOMAIN', $_SERVER['HTTP_HOST']);
|
||||
$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? 'https://' : 'http://';
|
||||
define('FULL_DOMAIN', $protocol . $_SERVER['HTTP_HOST']);
|
||||
define("ROOT_URL", "http://" . DOMAIN );
|
||||
define("ROOT_DIR", WEB_ROOT . "/");
|
||||
break;
|
||||
/* ----------------------------------- */
|
||||
default:
|
||||
// Showing error page by default.
|
||||
$error_env_check=true;
|
||||
include("pages/env-error.php");
|
||||
die;
|
||||
|
||||
}
|
||||
require_once(ROOT_DIR . "config/constants.php");
|
||||
require_once(CONFIG_FOLD . "settings.php");
|
||||
require_once(FUNCTIONS_FOLD . "functions.php");
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user