} // Disable ALL magic_quote set_magic_quotes_runtime(0); if (get_magic_quotes_gpc()) { function stripslashes_deep($value) { $value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value); return $value; } $_REQUEST = array_map('stripslashes_deep', $_REQUEST); $_COOKIE = array_map('stripslashes_deep', $_COOKIE); } if (!ERROR_PAGE) { //get all config AZLib::get_config(); CGlobal::$exchange = (int) @CGlobal::$configs['exchange']['conf_val']; //Get all Categories AZLib::getCats(); //if((isset($_GET['category_id']) && $_GET['category_id']) || (isset($_GET['zone_id']) && $_GET['zone_id']) || (Url::get("page","home") == 'home')){ if (isset($_GET['category_id']) && $_GET['category_id']) { //AZLib::getCats(); if (isset($_GET['category_id']) && isset(CGlobal::$allCategories[(int) $_GET['category_id']]) && CGlobal::$allCategories[(int) $_GET['category_id']]) { CGlobal::$curCategory = (int) $_GET['category_id']; } } if (isset($_GET['province_id'])) { AZLib::getProvinces(); //Get all Provinces $province_id = (int) $_GET['province_id']; if (isset(CGlobal::$provinces[$province_id]) && CGlobal::$provinces[$province_id]) { CGlobal::$curCity = $province_id;