error_reporting(0); if($_GET['debug']){ error_reporting(E_ALL); } ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); session_start(); define('DOCUMENT_ROOT','/home/youppy/public_html/'); // load classes include_once(DOCUMENT_ROOT.'/classes/class.db.php'); include_once(DOCUMENT_ROOT.'/classes/class.core.php'); include_once(DOCUMENT_ROOT.'/classes/class.youppy.php'); // declare global and initialize classes global $DB, $CORE, $YOUPPY; $DB = new DB(); $CORE = new CORE(); $YOUPPY = new YOUPPY(); $YOUPPY->langue = preg_match('/(\/|^)en\//',$_SERVER['REQUEST_URI']) ? 'en' : 'fr' ; ?>