' . PRODUCT_VERSION . ' ' . PRODUCT_TYPE . (PRODUCT_STATUS != '' ? (' (' . PRODUCT_STATUS . ')') : '') . ''); } if (isset($_REQUEST['check_https'])) { die(defined('HTTPS') ? 'OK' : ''); } // Include core functions/classes require(DIR_CORE . 'db/' . $config['db_type'] . '.php'); require(DIR_CORE . 'fn.database.php'); require(DIR_CORE . 'fn.users.php'); require(DIR_CORE . 'fn.catalog.php'); require(DIR_CORE . 'fn.cms.php'); require(DIR_CORE . 'fn.cart.php'); require(DIR_CORE . 'fn.locations.php'); require(DIR_CORE . 'fn.common.php'); require(DIR_CORE . 'fn.fs.php'); require(DIR_CORE . 'fn.requests.php'); require(DIR_CORE . 'fn.images.php'); require(DIR_CORE . 'fn.init.php'); require(DIR_CORE . 'fn.control.php'); require(DIR_CORE . 'fn.search.php'); require(DIR_CORE . 'fn.promotions.php'); require(DIR_CORE . 'fn.log.php'); require(DIR_CORE . 'fn.companies.php'); if (PRODUCT_TYPE == 'MULTIVENDOR') { require(DIR_CORE . 'fn.companies_mve.php'); } fn_define('ACCOUNT_TYPE', 'customer'); require(DIR_CORE . 'class.profiler.php'); require(DIR_CORE . 'class.registry.php'); require(DIR_CORE . 'class.session.php'); // Used for the javascript to be able to hide the Loading box when a downloadable file (pdf, etc.) is ready //setcookie('page_unload', 'N', '0', !empty($config['current_path'])? $config['current_path'] : '/'); if (isset($_GET['ct']) && (AREA == 'A' || defined('DEVELOPMENT'))) { fn_rm(DIR_THUMBNAILS, false); } // Set configuration options from config.php to registry Registry::set('config', $config); unset($config); // Check if software is installed if (Registry::get('config.db_host') == '%DB_HOST%') { die(PRODUCT_NAME . ' is not installed. Please click here to start the installation process: [install]'); } // Connect to database $db_conn = db_initiate(Registry::get('config.db_host'), Registry::get('config.db_user'), Registry::get('config.db_password'), Registry::get('config.db_name')); ?>