Exemplo n.º 1
0
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');
// customization for the design layout
define('BOX_WIDTH', 125);
// how wide the boxes should be in pixels (default: 125)