error_reporting(0); if($_GET['debug']){ error_reporting(E_ALL); } session_start(); define('DOCUMENT_ROOT', $_SERVER['DOCUMENT_ROOT']); // load classes include_once(DOCUMENT_ROOT.'/classes/class.db.php'); include_once(DOCUMENT_ROOT.'/classes/class.core.php'); include_once(DOCUMENT_ROOT.'/classes/class.chroniques.php'); include_once(DOCUMENT_ROOT.'/classes/class.faq.php'); include_once(DOCUMENT_ROOT.'/classes/class.produits.php'); // declare global and initialize classes global $DB, $CORE, $PRODUITS, $CHRONIQUES, $FAQ; $DB = new DB(); $CORE = new CORE(); $PRODUITS = new PRODUITS(); $PRODUITS->langue = preg_match('/(\/|^)en\//',$_SERVER['REQUEST_URI']) ? 'en' : 'fr' ; $CHRONIQUES = new CHRONIQUES(); $CHRONIQUES->langue = preg_match('/(\/|^)en\//',$_SERVER['REQUEST_URI']) ? 'en' : 'fr' ; $FAQ = new FAQ(); $FAQ->langue = preg_match('/(\/|^)en\//',$_SERVER['REQUEST_URI']) ? 'en' : 'fr' ; ?> //session_start(); define('PLUGIN_CART_DIR',$_SERVER['DOCUMENT_ROOT'].'/plugins/cart'); include_once(PLUGIN_CART_DIR.'/classes/class.db.php'); include_once(PLUGIN_CART_DIR.'/classes/class.plugincart.config.php'); include_once(PLUGIN_CART_DIR.'/classes/class.plugincart.php'); include_once(PLUGIN_CART_DIR.'/classes/class.plugincart.templates.php'); global $DB, $PLUGIN_CART, $PLUGIN_CART_TEMPLATES; $PLUGIN_DB = new PLUGIN_DB(); $PLUGIN_CART = new PLUGIN_CART(); $PLUGIN_CART_TEMPLATES = new PLUGIN_CART_TEMPLATES(); $PLUGIN_CART->init(); ?>