connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD); $MxpDatabase->selectDatabase(DB_DATABASE); echo $MxpDatabase->getError(); // set the application parameters $Qcfg = $MxpDatabase->query('select configuration_key as cfgKey, configuration_value as cfgValue from :table_configuration'); $Qcfg->bindTable(':table_configuration', TABLE_CONFIGURATION); $Qcfg->setCache('configuration'); $Qcfg->execute(); while ($Qcfg->next()) { define($Qcfg->value('cfgKey'), $Qcfg->value('cfgValue')); } $Qcfg->freeResult(); // set the level of error reporting to E_ALL except E_NOTICE if(DEBUG_MODE == 1){ ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL && ~E_NOTICE && ~E_WARNING); //error_reporting(E_ALL && E_NOTICE && E_WARNING); } // include ASCII to TEXT class conversion include('includes/classes/html2text.php'); // include require_once('includes/classes/rsa.php'); // include and start the services require('includes/classes/services.php'); //include the phpmailer class require('includes/classes/phpmailer.php'); $MxpServices = new MxpServices(); // start just the sefu session and language service $MxpServices->startService('sefu'); $MxpServices->startService('session'); $MxpServices->startService('language'); //print_r($_SESSION['MxpShoppingCart_data']['shipping_address']);exit; // include the list of project filenames require('includes/filenames.php'); // start the other services $MxpServices->startServices(); // include the schemaorg class require('includes/classes/schemaorg.php'); $MxpSchemaOrg = new MxpSchemaOrg(); if(is_file('includes/custom_page.php')){ require('includes/custom_page.php'); } //Controllo se rimuovere le funzioni del carrello $sc_available = true; $obj=new bdea21bfa82a1eac2f29c890fb82e9ee(); if( !$obj->getFeatures('shopping_cart') ){ $sc_available = false; } unset($obj); $MxpEnhancedEcommerce = new MxpEnhancedEcommerce(); //Variabili $excludedIps = array(); $footer_script = ''; if (preg_match('/Chrome-Lighthouse|Google Page Speed Insights/i', $_SERVER['HTTP_USER_AGENT'])) { define('BOT', 1); } else { define('BOT', 0); } if (!isset($_COOKIE['policyCookie']) || ($_COOKIE['policyCookie'] == 0)) { define('POLICYCOOKIE', 0); } else { define('POLICYCOOKIE', 1); } if ((FACEBOOK_PIXEL != '') && (POLICYCOOKIE != 0)) { define('FACEBOOK_PIXEL_COOKIE', 1); } else { define('FACEBOOK_PIXEL_COOKIE', 0); } include('include/seo_channel.php'); ?>