OSCOM::initialize(); if (PHP_VERSION_ID < 70000) { include OSCOM::getConfig('dir_root', 'Shop') . 'includes/third_party/random_compat/random.php'; } require 'includes/filenames.php'; require 'includes/functions/general.php'; require 'includes/classes/logger.php'; require 'includes/classes/shopping_cart.php'; require 'includes/classes/table_block.php'; require 'includes/classes/box.php'; require 'includes/classes/object_info.php'; require 'includes/classes/upload.php'; require 'includes/classes/action_recorder.php'; require 'includes/classes/cfg_modules.php'; require OSCOM::getConfig('dir_root', 'Shop') . 'includes/classes/osc_template.php'; OSCOM::loadSite('Admin'); if (HTTP::getRequestType() === 'NONSSL' && $_SERVER['REQUEST_METHOD'] === 'GET' && parse_url(OSCOM::getConfig('http_server'), PHP_URL_SCHEME) == 'https') { $url_req = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; HTTP::redirect($url_req, 301); } $OSCOM_Db = Registry::get('Db'); $OSCOM_Hooks = Registry::get('Hooks'); $OSCOM_Language = Registry::get('Language'); $OSCOM_MessageStack = Registry::get('MessageStack'); // calculate category path if (isset($_GET['cPath'])) { $cPath = $_GET['cPath']; } else { $cPath = ''; } if (tep_not_null($cPath)) {
include 'includes/third_party/random_compat/random.php'; } require 'includes/functions/general.php'; require 'includes/classes/shopping_cart.php'; require 'includes/classes/navigation_history.php'; require 'includes/classes/currencies.php'; require 'includes/classes/action_recorder.php'; require 'includes/classes/alertbox.php'; require 'includes/classes/message_stack.php'; require 'includes/functions/whos_online.php'; require 'includes/functions/banner.php'; require 'includes/functions/specials.php'; require 'includes/classes/osc_template.php'; require 'includes/classes/category_tree.php'; require 'includes/classes/breadcrumb.php'; OSCOM::loadSite('Shop'); if (HTTP::getRequestType() === 'NONSSL' && $_SERVER['REQUEST_METHOD'] === 'GET' && parse_url(OSCOM::getConfig('http_server'), PHP_URL_SCHEME) == 'https') { $url_req = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; HTTP::redirect($url_req, 301); } $OSCOM_Db = Registry::get('Db'); $OSCOM_Language = Registry::get('Language'); Registry::get('Hooks')->watch('Session', 'Recreated', 'execute', function ($parameters) { tep_whos_online_update_session_id($parameters['old_id'], session_id()); }); // configure gzip compression if it is enabled if (GZIP_COMPRESSION == 'true' && extension_loaded('zlib') && !headers_sent()) { if ((int) ini_get('zlib.output_compression') < 1) { ini_set('zlib.output_handler', ''); ini_set('zlib.output_compression', 1); }