ptut-vhost/autoloader.php

26 lines
694 B
PHP
Raw Permalink Normal View History

2018-02-17 17:18:58 +00:00
<?php
/* [1] On definit les chemins absolus si c'est pas deja fait
=========================================================*/
if( !defined('__ROOT__') ) define('__ROOT__', dirname(__FILE__) );
if( !defined('__CONFIG__') ) define('__CONFIG__', __ROOT__.'/config' );
if( !defined('__BUILD__') ) define('__BUILD__', __ROOT__.'/build' );
if( !defined('__PUBLIC__') ) define('__PUBLIC__', __ROOT__.'/public_html' );
2018-03-15 15:47:22 +00:00
if( !defined('__BACKUP__') ) define('__BACKUP__', __ROOT__.'/backup' );
2018-02-17 17:18:58 +00:00
/* ACTIVE LE DEBUGGAGE (WARNING + EXCEPTION)
*
*/
function debug(){
ini_set('display_errors',1);
ini_set('display_startup_errors',1);
error_reporting(-1);
}
2018-02-19 22:01:42 +00:00
\session_start();
2018-02-17 17:18:58 +00:00
?>