Example #1
0
  Copyright (c) 2010 osCommerce (http://www.oscommerce.com)

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License v2 (1991)
  as published by the Free Software Foundation.
*/
// to delete ///////
define('PAGE_PARSE_START_TIME', microtime());
define('PROJECT_VERSION', 'osCommerce Online Merchant $osCommerce-SIG$');
$request_type = isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ? 'SSL' : 'NONSSL';
////////////////////
define('OSCOM_TIMESTAMP_START', microtime());
error_reporting(E_ALL);
define('OSCOM_BASE_DIRECTORY', dirname(dirname(__FILE__)));
require 'core/OSCOM.php';
OSCOM::initialize();
// redirect to the installation module if DB_SERVER is empty
if (strlen(DB_SERVER) < 1) {
    if (is_dir('install')) {
        header('Location: install/index.php');
    }
}
if ($request_type == 'NONSSL') {
    define('DIR_WS_CATALOG', DIR_WS_HTTP_CATALOG);
} else {
    define('DIR_WS_CATALOG', DIR_WS_HTTPS_CATALOG);
}
// compatibility logic
require 'includes/functions/compatibility.php';
// include the list of project filenames
require 'includes/filenames.php';