'; print_r($_SESSION); die(); unset( $_GET['ds'] ); } include( 'system/libs/paypal/autoload.php' ); include( 'vendor/autoload.php' ); include( 'system/libs/Facebook/autoload.php' ); include ( 'system/libs/phpmailer/class.phpmailer.php' ); include( 'config/errorConfig.php' ); include( 'system/FaBootstrap.php' ); include ( 'system/libs/tracy.phar' ); use Tracy\Debugger; if( isset( $_GET['notracy'] ) ) { } else { if( !get('ajax' ) ) { Debugger::enable(Debugger::PRODUCTION); } } if( BOX_ESHOP == 1 ) { include( ROOT_PATH . 'config/config.php' ); } else { $options = array( 'driver' => 'mysql', 'host' => 'localhost', 'username' => 'omnistore', 'password' => 'omnistore22!!', 'database' => 'omnistore', 'charset' => 'utf8', 'profiler' => TRUE, ); global $db1; $db1 = new DibiConnection($options); $server = str_replace( 'www.', '', $_SERVER['SERVER_NAME'] ); $check = $db1->query( "SELECT * FROM web WHERE `url` = '" . $server . "' OR `domain` = '" . $server . "'" )->fetchAll(); define( 'USER_DIR', '../clientdata/' . $check[0]->id ); define( 'CLIENT_ID', $check[0]->clientId ); define( 'ESHOP_ID', $check[0]->id ); define( 'NAMEDB', $check[0]->db ); define( 'USERDB', 'omnistore' ); define( 'HOSTDB', 'localhost' ); define( 'PASSDB', 'omnistore22!!' ); define( 'FILES_DIR', '../clientdata/' . $check[0]->id . '/' ); define( 'GOOGLE_API', $check[0]->gapi ); define( 'COMPILER_DIR', '/cache' ); define( 'TARIF', $check[0]->tarif ); } $protocol = (@$_SERVER["HTTPS"] == "on") ? "https://" : "http://"; if (substr($_SERVER['HTTP_HOST'], 0, 4) !== 'www.') { header('Location: '.$protocol.'www.'.$_SERVER['HTTP_HOST'].''.$_SERVER['REQUEST_URI']); exit; } if(empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == "off"){ $redirect = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; header('HTTP/1.1 301 Moved Permanently'); header('Location: ' . $redirect); exit(); } FaCore::gi()->runSystem();