Notice: session_start(): A session had already been started - ignoring in /hermes/bosnacweb04/bosnacweb04ay/b1607/ipw.webmaria1/public_html/work/data-connect/index.php on line 4
Notice: Undefined index: category in /hermes/bosnacweb04/bosnacweb04ay/b1607/ipw.webmaria1/public_html/work/data-connect/index.php on line 7
Warning: include_once(/hermes/bosnacweb04/bosnacweb04ay/b1607/ipw.webmaria1/public_html/work/data-connecthttp://impactdigital.work/include/global.php): failed to open stream: No such file or directory in /hermes/bosnacweb04/bosnacweb04ay/b1607/ipw.webmaria1/public_html/work/data-connect/index.php on line 12
Warning: include_once(): Failed opening '/hermes/bosnacweb04/bosnacweb04ay/b1607/ipw.webmaria1/public_html/work/data-connecthttp://impactdigital.work/include/global.php' for inclusion (include_path='.:/opt/alt/php74/usr/share/pear') in /hermes/bosnacweb04/bosnacweb04ay/b1607/ipw.webmaria1/public_html/work/data-connect/index.php on line 12
Notice: Undefined variable: iPath in /hermes/bosnacweb04/bosnacweb04ay/b1607/ipw.webmaria1/public_html/work/data-connect/index.php on line 13
/**
* Global Configuration File
*/
/**
* Sets the php error reporting - Please do not change this line!
*/
if (!isset($old_error_reporting)) {
// error_reporting(E_ALL ^ E_NOTICE);
error_reporting(E_ALL ^ (E_NOTICE | E_WARNING | E_DEPRECATED | E_STRICT ));
@ini_set('display_errors', TRUE);
}
ini_set('arg_separator.output','&');
/**
* Security Check for _GET - Please do not change this line!
*/
$raw_data = file_get_contents("php://input");
$decoded_raw_data = urldecode($raw_data);
if ((stristr($raw_data, '<') !== FALSE && stristr($raw_data, 'script') !== FALSE && stristr($raw_data, '>') !== FALSE) ||
(stristr($decoded_raw_data, '<') !== FALSE && stristr($decoded_raw_data, 'script') !== FALSE && stristr($decoded_raw_data, '>') !== FALSE))
{
echo '
The RAW data access method specified by the parameter value is not supported.
The data access method specified by the parameter value is not supported.
';
echo '
';
exit;
// The data access method specified by parameter value is not supported
}
$nsConfig = array();
// Set Path Info for the current script
$nsConfig['_pathinfo_'] = pathinfo($_SERVER['PHP_SELF']);
$nsConfig['_pathinfo_']['dirname'] = rtrim($nsConfig['_pathinfo_']['dirname'], '/') . '/';
// Options for Templates
$nsConfig['Templates'] = array(
'selected' => 'default'
);
// Options for products
$nsConfig['Products'] = array(
'EnableProductRefer' => TRUE
);
// include the global configuration file
include_once(dirname(__FILE__) . '/global.php');
// include the security definition
include_once($cfg['Path']['rs_includes'] . 'security.php');
// include the optimizer definition
include_once($cfg['Path']['rs_includes'] . 'optimizer.php');
// include the runtime magic_quotes handling library
include_once($cfg['Path']['rs_functions'] . 'nsCore.php');
// define the filenames used in the project
define('FILENAME_ALSO_PURCHASED_PRODUCTS','also_purchased_products.php');
define('FILENAME_ACCOUNT_EDIT', 'setting.php');
define('FILENAME_ACCOUNT_EDIT_PROCESS', 'setting_action.php');
define('FILENAME_ACCOUNT_HISTORY', 'order_list.php');
define('FILENAME_ACCOUNT_HISTORY_INFO', 'order_detail.php');
define('FILENAME_ADDRESS_BOOK', 'address_book.php');
define('FILENAME_ADDRESS_BOOK_PROCESS', 'address_book_process.php');
define('FILENAME_SEARCH', 'search.php');
define('FILENAME_SEARCH_RESULT', 'search_result.php');
define('FILENAME_CHECKOUT_ADDRESS', 'address.php');
define('FILENAME_CHECKOUT_SHIPPING', 'shipping.php');
define('FILENAME_CHECKOUT_INFORMATION', 'inform.php');
define('FILENAME_CHECKOUT_CONFIRMATION','confirm.php');
define('FILENAME_CHECKOUT_PAYMENT', 'payment.php');
define('FILENAME_CHECKOUT_PROCESS', 'process.php');
define('FILENAME_CHECKOUT_SUCCESS', 'success.php');
define('FILENAME_CHECKOUT_GATEWAY', 'gateway.php');
define('FILENAME_CONTACT_US', 'contact_us.php');
define('FILENAME_SIGNUP', 'signup.php');
define('FILENAME_SIGNUP_SUCCESS', 'signup_success.php');
define('FILENAME_DEFAULT', 'index.php');
define('FILENAME_LOGIN', 'login.php');
define('FILENAME_LOGOFF', 'logoff.php');
define('FILENAME_PW_RETRIEVE', 'retrieve.php');
define('FILENAME_PRODUCT_REVIEWS', 'reviews.php');
define('FILENAME_PRODUCT_REVIEWS_INFO', 'reviews_info.php');
define('FILENAME_PRODUCT_REVIEWS_WRITE','reviews_write.php');
define('FILENAME_PRODUCT_REFER', 'product_refer.php');
define('FILENAME_PRODUCT_REFER_SUCCESS', 'product_refer_success.php');
define('FILENAME_REVIEWS', 'reviews.php');
define('FILENAME_POLICY', 'policy.php');
define('FILENAME_SHOPPING_CART', 'cart.php');
define('FILENAME_SPECIALS', 'specials.php');
define('FILENAME_SUBSCRIBE', 'subscribe.php');
define('FILENAME_REFER', 'refer.php');
define('FILENAME_IMAGE_OPEN', 'iopen.php');
define('FILENAME_INFO_OPEN', 'info.php');
define('FILENAME_ADMIN_ORDERS', $cfg['Path']['ws_admin'] . 'orders.php');
define('FILENAME_FEATURED_NEW', 'new_items.php');
define('FILENAME_FEATURED_HOT', 'hot_items.php');
define('FILENAME_FEATURED_BEST', 'best_items.php');
define('FILENAME_FEATURED_SALE', 'sale_items.php');
// include the database definition
include_once($cfg['Path']['rs_includes'] . 'database.php');
define('MAX_DISPLAY_SEARCH_RESULTS', 30); // how many products to list
define('MAX_DISPLAY_PAGE_LINKS', 10); // how many page numbers to link for page-sets
define('MAX_ALLOWED_CART_ITEMS', 5); // max # of cart items for non-member
define('CART_DISPLAY', TRUE); // Enable to view the shopping cart after adding a product
define('TAX_VALUE', 0); // propducts tax
define('TAX_DECIMAL_PLACES', 2); // 16% - If this were 2 it would be 16.00%
define('TABLE_WIDTH_INDENT', 0);
define('TABLE_WIDTH_LEFT', 300);
define('TABLE_WIDTH_CENTER',700);
define('TABLE_WIDTH_RIGHT', 0);
define('TABLE_WIDTH_TOTAL', TABLE_WIDTH_LEFT+TABLE_WIDTH_CENTER+TABLE_WIDTH_RIGHT);
define('BOX_WIDTH', 150); // how wide the boxes should be in pixels (default: 125)
define('IMG_WIDTH_TINY', 60); // 125 (small)
define('IMG_HEIGHT_TINY', 60); // 94 (small)
define('IMG_WIDTH_SMALL', 200); // 450 (large)
define('IMG_HEIGHT_SMALL', 200); // 338 (large)
define('IMG_WIDTH_MEDIUM', 200);
define('IMG_HEIGHT_MEDIUM', 200);
define('USE_IMAGE_SIZE', TRUE);
define('IMG_THUMBNAIL_SIZE', 45);
define('IMG_THUMBNAIL_WIDTH', 45);
define('IMG_THUMBNAIL_HEIGHT',90);
define('CATEGORIES_DELIMETER_CHAR', '_');
define('ENABLE_MULTIPLE_CATEGORY_PRODUCTS', FALSE);
define('ENABLE_SPECIAL_ORDER_OPTION', TRUE);
define('OUT_OF_CATEGORY_DISPLAY', FALSE);
// Depreciated on 05/04/2009
//XXXXX define('OUT_OF_STOCK_DISPLAY', FALSE);
define('PRODUCT_LIST_DEFAULT_COLUMN', 'products_name');
// used in './includes/local/create_products_column_order.php' and './includes/template/ezstyle/search_main.php'
define('PRODUCT_LIST_DEFAULT_ORDER_BY', 'precedence, products_date_added desc, products_sku, sku_base');
define('PRODUCT_LIST_DEFAULT_SORT_COLUMN', 8); // p2c.precedence = 6, products_date_added = 5, products_price = 3, products_name = 2
define('PRODUCT_LIST_DEFAULT_SORT_ORDER', 'a');
define('PRODUCT_PRICE_FOR_LOGIN' , FALSE);
define('PRODUCT_INFO_MAX_IMAGE_WITH' , 350);
// options for detail.php
define('PRODUCT_INFO_RETAIL_PRICE_DISPLAY' , FALSE);
define('PRODUCT_INFO_SAVE_PRICE_DISPLAY' , FALSE);
define('PRODUCT_INFO_SKU_DISPLAY' , true);
define('PRODUCT_LIST_SKU_DISPLAY' , true);
define('ENABLE_PRODUCT_REFER' , FALSE);
define('BOX_HEADING_BACKGROUND_COLOR', '#AABBDD');
define('TOP_BAR_BACKGROUND_COLOR', '#AABBDD');
define('SUB_BAR_BACKGROUND_COLOR', '#F4F7FD');
define('TABLE_ROW_BACKGROUND_COLOR', '#FFFFFF');
define('TABLE_ALT_BACKGROUND_COLOR', '#F4F7FD');
define('SPECIALS_PRICE_COLOR', '#AA0000'); // font color for the new price of products on special
// set to "1" if extended email check function should be used
// If you're testing locally and your webserver has no possibility to query
// a dns server you should set this to "0" !
define('ENTRY_EMAIL_ADDRESS_CHECK', FALSE);
// Control what fields of the customer table are used
define('EXTERNAL_LOGIN_TYPE', 0); // 0 for nothing, 1 for top, 2 for left
define('USE_EXTENTED_ACCOUNT', true);
define('ACCOUNT_GENDER', FALSE);
define('ACCOUNT_DOB', FALSE);
define('ACCOUNT_SUBURB', FALSE);
define('ACCOUNT_STATE', TRUE);
define('ACCOUNT_COUNTRY', TRUE);
define('ACCOUNT_FAXNUMBER', TRUE);
// Advanced Search controls
define('ADVANCED_SEARCH_DEFAULT_OPERATOR', 'and'); // default boolean search operator: or/and
// Min/Max Controls for also_purchased_products.php : 'Customers who bought this product also purchased' module
define('USE_DISPLAY_ALSO_PURCHASED', true);
define('MIN_DISPLAY_ALSO_PURCHASED', 1); // Min no. of products in purchased list to qualify
define('MAX_DISPLAY_ALSO_PURCHASED', 5); // Max no. of products to display
// Min/Max Controls for also_purchased_products.php : 'Customers who bought this product also purchased' module
define('USE_DISPLAY_RELATED_PRODUCTS', FALSE);
define('MIN_DISPLAY_RELATED_PRODUCTS', 1); // Min no. of products in purchased list to qualify
define('MAX_DISPLAY_RELATED_PRODUCTS', 10); // Max no. of products to display
// Manufacturers box
define('DISPLAY_MANUFACTURERS_BOX', FALSE); // Manufacturers Box: 0=disable; 1=enable
// include the database functions
include_once($cfg['Path']['rs_functions'] . 'nsDB.php');
/* make a connection to the database... now
if (!nsDB_Connect()) {
echo '
We are currently experiencing a very high volume of web traffic on our website.' .
' It may take longer than usual to load. Please try again a few minutes later. We thank you for your patience.
';
echo '
';
nsAPI_Exit();
} */
// include timer class
include_once($cfg['Path']['rs_classes'] . 'nsTimer.php');
// include bitmask class to control all menus
include_once($cfg['Path']['rs_classes'] . 'nsBitmask.php');
/* $hMainMenus = new nsBitmask;
$hMainMenus->Set($cfg['MainMenus']['top']);
$hMainMenus->Set($cfg['MainMenus']['bottom']);
$hMainMenus->Set($cfg['MainMenus']['navigation']);
// $hMainMenus->Set($cfg['MainMenus']['banner']);
$hLeftMenus = new nsBitmask;
// $hLeftMenus->Set($cfg['LeftMenus']['material']);
// $hLeftMenus->Set($cfg['LeftMenus']['special']);
// $hLeftMenus->Set($cfg['LeftMenus']['category']);
// $hLeftMenus->Set($cfg['LeftMenus']['benefits']);
// $hLeftMenus->Set($cfg['LeftMenus']['price']);
// $hLeftMenus->Set($cfg['LeftMenus']['color']);
$hRightMenus = new nsBitmask;
*/
// include image protector class
//include_once($cfg['Path']['rs_classes'] . 'nsImgLoader.php');
//include_once($cfg['Path']['rs_classes'] . 'nsMD5.php');
// include shopping cart class
include_once($cfg['Path']['rs_classes'] . 'nsCart.php');
// include page view class
include_once($cfg['Path']['rs_classes'] . 'nsHistory.php');
// include coupon classes
include_once($cfg['Path']['rs_classes'] . 'nsCoupon.php');
// define how the session functions will be used
session_save_path($cfg['Path']['fs_cgibin'] . 'tmp');
session_cache_limiter('nocache');
session_cache_expire(60);
ini_set("session.gc_maxlifetime", "3600");
include_once($cfg['Path']['rs_functions'] . 'nsSession.php');
/* lets start our session
if (!SID && $_GET[nsSession_Name()]) {
nsSession_ID( $_GET[nsSession_Name()] );
}
nsSession_Start();
if (function_exists('session_set_cookie_params')) {
session_set_cookie_params(0, "/");
}
if (!isset($_SESSION['_nsCart'])) {
$cart = new nsCart;
$_SESSION['_nsCart'] = $cart;
}
$nsCart = &$_SESSION['_nsCart'];
// Initialize ajax mode
$nsCart->SetAjaxMode(false);
// Set Quantity Discount
// SetQtyDiscount(num_of_quantity, price_column_name);
$nsCart->SetQtyDiscount();
// set the application parameters (can be modified through the administration tool)
$dbcfg_query = nsDB_Query('select configuration_key as cfgKey, configuration_value as cfgValue from configuration');
while ($dbcfg_value = nsDB_FetchArray($dbcfg_query)) {
if (!defined($dbcfg_value['cfgKey'])) {
define($dbcfg_value['cfgKey'], $dbcfg_value['cfgValue']);
$cfg['DB'][$dbcfg_value[cfgKey]] = $dbcfg_value[cfgValue];
}
}
$_hCfgDB = &$cfg['DB'];
*/
// define our general functions used application-wide
include_once($cfg['Path']['rs_functions'] . 'nsGlobal.php');
include_once($cfg['Path']['rs_functions'] . 'nsCommon.php');
/*
// language
if ( (!$language) || ($_GET['language']) ) {
$language = nsAPI_GetLanguagesDir($_GET['language']);
if (!$language) $language = nsAPI_GetLanguagesDir($cfg['Global']['default_language']);
}
$_SESSION['language'] = $language;
// $cfg['Path']['rs_languages'] is set in global.php
$cfg['Path']['rs_languages'] .= ($_SESSION['language'] . '/');
// currency
if ( (!$currency) || ($_GET['currency']) ) {
$currency = nsAPI_CurrencyExists($_GET['currency']);
if (!$currency) $currency = $cfg['Global']['default_currency'];
}
if ($currency) {
$_SESSION['currency'] = $currency;
$currencies_query = nsDB_Query("select symbol_left, symbol_right, decimal_point, thousands_point, decimal_places from currencies where code = '" . $currency . "'");
$currencies = nsDB_FetchArray($currencies_query);
if ($currencies['decimal_places']) {
$cfg['Global']['decimal_places'] = $currencies['decimal_places'];
}
}
*/
// include the currency rates, and the language translations
include_once($cfg['Path']['rs_includes'] . 'data/rates.php');
include_once($cfg['Path']['fs_languages'] . $_SESSION['language'] . '.php');
// Include the password crypto functions
include_once($cfg['Path']['rs_functions'] . 'nsCrypt.php');
// split-page-results
include_once($cfg['Path']['rs_classes'] . 'nsSplitResult.php');
// infobox
include_once($cfg['Path']['rs_classes'] . 'boxes.php');
/*
// Coupon actions
if (!isset($_SESSION['_nsCoupon'])) {
$_coupon = new nsCoupon;
$_SESSION['_nsCoupon'] = $_coupon;
}
$nsCoupon = &$_SESSION['_nsCoupon'];
//ZZZ $nsCoupon->Init();
*/
// Shopping cart actions
if ($_GET['action'] || $_GET['action'] == 'cart') {
//XXXXX $goto = (CART_DISPLAY) ? FILENAME_SHOPPING_CART : basename($_SERVER['PHP_SELF']);
//XXXXX $parameters = (CART_DISPLAY) ? array('action', 'cPath', 'cart_id', 'products_id', 'categories_id', 'registries_id', 'manufacturers_id') : array('action');
$goto = (CART_DISPLAY) ? FILENAME_SHOPPING_CART : $_SERVER['PHP_SELF'];
$parameters = array('action', 'cPath', 'cart_id', 'products_id', 'categories_id', 'registries_id', 'manufacturers_id');
if (stripos(basename($_SERVER['PHP_SELF']), 'ajaxCart.php') !== false) {
$nsCart->SetAjaxMode(true);
}
// echo '