smn_set_database_tables(); ** gus end */ // Define the project version define('PROJECT_VERSION', 'SystemsManager Technologies oscMall Version 4.0'); // some code to solve compatibility issues require DIR_WS_FUNCTIONS . 'compatibility.php'; // need to get the store prefix before the definitions are set.... require DIR_WS_CLASSES . 'mall_setup.php'; if (isset($_GET['ID'])) { $store_id = $_GET['ID']; } elseif (isset($_POST['ID'])) { $store_id = $_POST['ID']; } else { $store_id = 1; } $store = new mall_setup($store_id); $store->set_store_parameters(); //set the stor type to be used $store_type = $store->get_store_type_name(); //set store images and filename variables /* gus begin ** $store->set_store_variables(); ** gus end */ // set php_self in the local scope $PHP_SELF = isset($HTTP_SERVER_VARS['PHP_SELF']) ? $HTTP_SERVER_VARS['PHP_SELF'] : $HTTP_SERVER_VARS['SCRIPT_NAME']; $request_type = getenv('HTTPS') == 'on' ? 'NONSSL' : 'NONSSL'; // Used in the "Backup Manager" to compress backups define('LOCAL_EXE_GZIP', '/usr/bin/gzip'); define('LOCAL_EXE_GUNZIP', '/usr/bin/gunzip'); define('LOCAL_EXE_ZIP', '/usr/local/bin/zip'); define('LOCAL_EXE_UNZIP', '/usr/local/bin/unzip');
// include the database functions require DIR_WS_FUNCTIONS . 'database.php'; // make a connection to the database... now smn_db_connect() or die('Unable to connect to database server!'); //load these DB tables first as they are used before any function/class calls require DIR_WS_INCLUDES . 'database_tables.php'; // need to get the store prefix before the definitions are set.... require DIR_WS_CLASSES . 'mall_setup.php'; if (isset($_GET['ID'])) { $store_id = (int) $_GET['ID']; } elseif (isset($_POST['ID'])) { $store_id = (int) $_POST['ID']; } else { $store_id = 1; } $store = new mall_setup($store_id); $store->set_store_parameters(); //set the store type to be used $store_type = $store->get_store_type(); //set store images and filename variables $store->set_store_variables($store_type); // some code to solve compatibility issues require DIR_WS_FUNCTIONS . 'compatibility.php'; // set the type of request (secure or not) $request_type = getenv('HTTPS') == 'on' ? 'NONSSL' : 'NONSSL'; // set php_self in the local scope if (!isset($PHP_SELF)) { $PHP_SELF = $_SERVER['PHP_SELF']; } if ($request_type == 'NONSSL') { define('DIR_WS_CATALOG', DIR_WS_HTTP_CATALOG);