File: /home/clavospa/public_html/new.davidlachapelleamor.com/controller/config.php
<?php
header("CacheControl: nostore, nocache, mustrevalidate");
header("CacheControl: postcheck=0, precheck=0", false);
header("Pragma: nocache");
ini_set('memory_limit', -1);
set_time_limit ( 0 );
$pagina = (empty($_REQUEST['pagina'])) ? 'home' : $_REQUEST['pagina'];
$protocol = $_SERVER['PROTOCOL'] = isset($_SERVER['HTTPS']) && !empty($_SERVER['HTTPS']) ? 'https://' : 'http://';
define('URL', $protocol . $_SERVER['HTTP_HOST'] . '/');
define('DIR_ROOT', dirname(__FILE__, 2));
spl_autoload_register(function ($nombre_clase) {
if(file_exists(DIR_ROOT . "/models/$nombre_clase.php")){
include DIR_ROOT . "/models/$nombre_clase.php";
}else {
}
});
date_default_timezone_set('America/Mexico_City');
mysqli_report(MYSQLI_REPORT_STRICT);
session_start();
?>