亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? general.php

?? asterisk用 的voip記費(fèi)軟件
?? PHP
?? 第 1 頁 / 共 3 頁
字號:
<?php////// Stop from parsing any further PHP code  function tep_exit() {   tep_session_close();   exit();  }////// Redirect to another page or site  function tep_redirect($url) {    if ( (strstr($url, "\n") != false) || (strstr($url, "\r") != false) ) {      tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false));    }    if ( (ENABLE_SSL == true) && (getenv('HTTPS') == 'on') ) { // We are loading an SSL page      if (substr($url, 0, strlen(HTTP_SERVER)) == HTTP_SERVER) { // NONSSL url        $url = HTTPS_SERVER . substr($url, strlen(HTTP_SERVER)); // Change it to SSL      }    }    header('Location: ' . $url);    tep_exit();  }////// Parse the data used in the html tags to ensure the tags will not break  function tep_parse_input_field_data($data, $parse) {    return strtr(trim($data), $parse);  }  function tep_output_string($string, $translate = false, $protected = false) {    if ($protected == true) {      return htmlspecialchars($string);    } else {      if ($translate == false) {        return tep_parse_input_field_data($string, array('"' => '&quot;'));      } else {        return tep_parse_input_field_data($string, $translate);      }    }  }  function tep_output_string_protected($string) {    return tep_output_string($string, false, true);  }  function tep_sanitize_string($string) {    $string = ereg_replace(' +', ' ', trim($string));    return preg_replace("/[<>]/", '_', $string);  }////// Return a random row from a database query  function tep_random_select($query) {    $random_product = '';    $random_query = tep_db_query($query);    $num_rows = tep_db_num_rows($random_query);    if ($num_rows > 0) {      $random_row = tep_rand(0, ($num_rows - 1));      tep_db_data_seek($random_query, $random_row);      $random_product = tep_db_fetch_array($random_query);    }    return $random_product;  }////// Return a product's name// TABLES: products  function tep_get_products_name($product_id, $language = '') {    global $languages_id;    if (empty($language)) $language = $languages_id;    $product_query = tep_db_query("select products_name from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$product_id . "' and language_id = '" . (int)$language . "'");    $product = tep_db_fetch_array($product_query);    return $product['products_name'];  }////// Return a product's special price (returns nothing if there is no offer)// TABLES: products  function tep_get_products_special_price($product_id) {    $product_query = tep_db_query("select specials_new_products_price from " . TABLE_SPECIALS . " where products_id = '" . (int)$product_id . "' and status");    $product = tep_db_fetch_array($product_query);    return $product['specials_new_products_price'];  }////// Return a product's stock// TABLES: products  function tep_get_products_stock($products_id) {    $products_id = tep_get_prid($products_id);    $stock_query = tep_db_query("select products_quantity from " . TABLE_PRODUCTS . " where products_id = '" . (int)$products_id . "'");    $stock_values = tep_db_fetch_array($stock_query);    return $stock_values['products_quantity'];  }////// Check if the required stock is available// If insufficent stock is available return an out of stock message  function tep_check_stock($products_id, $products_quantity) {    $stock_left = tep_get_products_stock($products_id) - $products_quantity;    $out_of_stock = '';    if ($stock_left < 0) {      $out_of_stock = '<span class="markProductOutOfStock">' . STOCK_MARK_PRODUCT_OUT_OF_STOCK . '</span>';    }    return $out_of_stock;  }////// Break a word in a string if it is longer than a specified length ($len)  function tep_break_string($string, $len, $break_char = '-') {    $l = 0;    $output = '';    for ($i=0, $n=strlen($string); $i<$n; $i++) {      $char = substr($string, $i, 1);      if ($char != ' ') {        $l++;      } else {        $l = 0;      }      if ($l > $len) {        $l = 1;        $output .= $break_char;      }      $output .= $char;    }    return $output;  }////// Return all HTTP GET variables, except those passed as a parameter  function tep_get_all_get_params($exclude_array = '') {    global $_GET;    if (!is_array($exclude_array)) $exclude_array = array();    $get_url = '';    if (is_array($_GET) && (sizeof($_GET) > 0)) {      reset($_GET);      while (list($key, $value) = each($_GET)) {        if ( (strlen($value) > 0) && ($key != tep_session_name()) && ($key != 'error') && (!in_array($key, $exclude_array)) && ($key != 'x') && ($key != 'y') ) {          $get_url .= $key . '=' . rawurlencode(stripslashes($value)) . '&';        }      }    }    return $get_url;  }////// Returns an array with countries// TABLES: countries  function tep_get_countries($countries_id = '', $with_iso_codes = false) {    $countries_array = array();    if (tep_not_null($countries_id)) {      if ($with_iso_codes == true) {        $countries = tep_db_query("select countries_name, countries_iso_code_2, countries_iso_code_3 from " . TABLE_COUNTRIES . " where countries_id = '" . (int)$countries_id . "' order by countries_name");        $countries_values = tep_db_fetch_array($countries);        $countries_array = array('countries_name' => $countries_values['countries_name'],                                 'countries_iso_code_2' => $countries_values['countries_iso_code_2'],                                 'countries_iso_code_3' => $countries_values['countries_iso_code_3']);      } else {        $countries = tep_db_query("select countries_name from " . TABLE_COUNTRIES . " where countries_id = '" . (int)$countries_id . "'");        $countries_values = tep_db_fetch_array($countries);        $countries_array = array('countries_name' => $countries_values['countries_name']);      }    } else {      $countries = tep_db_query("select countries_id, countries_name from " . TABLE_COUNTRIES . " order by countries_name");      while ($countries_values = tep_db_fetch_array($countries)) {        $countries_array[] = array('countries_id' => $countries_values['countries_id'],                                   'countries_name' => $countries_values['countries_name']);      }    }    return $countries_array;  }////// Alias function to tep_get_countries, which also returns the countries iso codes  function tep_get_countries_with_iso_codes($countries_id) {    return tep_get_countries($countries_id, true);  }////// Generate a path to categories  function tep_get_path($current_category_id = '') {    global $cPath_array;    if (tep_not_null($current_category_id)) {      $cp_size = sizeof($cPath_array);      if ($cp_size == 0) {        $cPath_new = $current_category_id;      } else {        $cPath_new = '';        $last_category_query = tep_db_query("select parent_id from " . TABLE_CATEGORIES . " where categories_id = '" . (int)$cPath_array[($cp_size-1)] . "'");        $last_category = tep_db_fetch_array($last_category_query);        $current_category_query = tep_db_query("select parent_id from " . TABLE_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'");        $current_category = tep_db_fetch_array($current_category_query);        if ($last_category['parent_id'] == $current_category['parent_id']) {          for ($i=0; $i<($cp_size-1); $i++) {            $cPath_new .= '_' . $cPath_array[$i];          }        } else {          for ($i=0; $i<$cp_size; $i++) {            $cPath_new .= '_' . $cPath_array[$i];          }        }        $cPath_new .= '_' . $current_category_id;        if (substr($cPath_new, 0, 1) == '_') {          $cPath_new = substr($cPath_new, 1);        }      }    } else {      $cPath_new = implode('_', $cPath_array);    }    return 'cPath=' . $cPath_new;  }////// Returns the clients browser  function tep_browser_detect($component) {    global $HTTP_USER_AGENT;    return stristr($HTTP_USER_AGENT, $component);  }////// Alias function to tep_get_countries()  function tep_get_country_name($country_id) {    $country_array = tep_get_countries($country_id);    return $country_array['countries_name'];  }////// Returns the zone (State/Province) name// TABLES: zones  function tep_get_zone_name($country_id, $zone_id, $default_zone) {    $zone_query = tep_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country_id . "' and zone_id = '" . (int)$zone_id . "'");    if (tep_db_num_rows($zone_query)) {      $zone = tep_db_fetch_array($zone_query);      return $zone['zone_name'];    } else {      return $default_zone;    }  }////// Returns the zone (State/Province) code// TABLES: zones  function tep_get_zone_code($country_id, $zone_id, $default_zone) {    $zone_query = tep_db_query("select zone_code from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country_id . "' and zone_id = '" . (int)$zone_id . "'");    if (tep_db_num_rows($zone_query)) {      $zone = tep_db_fetch_array($zone_query);      return $zone['zone_code'];    } else {      return $default_zone;    }  }////// Wrapper function for round()  function tep_round($number, $precision) {    if (strpos($number, '.') && (strlen(substr($number, strpos($number, '.')+1)) > $precision)) {      $number = substr($number, 0, strpos($number, '.') + 1 + $precision + 1);      if (substr($number, -1) >= 5) {        if ($precision > 1) {          $number = substr($number, 0, -1) + ('0.' . str_repeat(0, $precision-1) . '1');        } elseif ($precision == 1) {          $number = substr($number, 0, -1) + 0.1;        } else {          $number = substr($number, 0, -1) + 1;        }      } else {        $number = substr($number, 0, -1);      }    }    return $number;  }////// Returns the tax rate for a zone / class// TABLES: tax_rates, zones_to_geo_zones  function tep_get_tax_rate($class_id, $country_id = -1, $zone_id = -1) {    global $customer_zone_id, $customer_country_id;    if ( ($country_id == -1) && ($zone_id == -1) ) {      if (!tep_session_is_registered('customer_id')) {        $country_id = STORE_COUNTRY;        $zone_id = STORE_ZONE;      } else {        $country_id = $customer_country_id;        $zone_id = $customer_zone_id;      }    }    $tax_query = tep_db_query("select sum(tax_rate) as tax_rate from " . TABLE_TAX_RATES . " tr left join " . TABLE_ZONES_TO_GEO_ZONES . " za on (tr.tax_zone_id = za.geo_zone_id) left join " . TABLE_GEO_ZONES . " tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = '0' or za.zone_country_id = '" . (int)$country_id . "') and (za.zone_id is null or za.zone_id = '0' or za.zone_id = '" . (int)$zone_id . "') and tr.tax_class_id = '" . (int)$class_id . "' group by tr.tax_priority");    if (tep_db_num_rows($tax_query)) {      $tax_multiplier = 1.0;      while ($tax = tep_db_fetch_array($tax_query)) {        $tax_multiplier *= 1.0 + ($tax['tax_rate'] / 100);      }      return ($tax_multiplier - 1.0) * 100;    } else {      return 0;    }  }////// Return the tax description for a zone / class// TABLES: tax_rates;  function tep_get_tax_description($class_id, $country_id, $zone_id) {    $tax_query = tep_db_query("select tax_description from " . TABLE_TAX_RATES . " tr left join " . TABLE_ZONES_TO_GEO_ZONES . " za on (tr.tax_zone_id = za.geo_zone_id) left join " . TABLE_GEO_ZONES . " tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = '0' or za.zone_country_id = '" . (int)$country_id . "') and (za.zone_id is null or za.zone_id = '0' or za.zone_id = '" . (int)$zone_id . "') and tr.tax_class_id = '" . (int)$class_id . "' order by tr.tax_priority");    if (tep_db_num_rows($tax_query)) {      $tax_description = '';      while ($tax = tep_db_fetch_array($tax_query)) {        $tax_description .= $tax['tax_description'] . ' + ';      }      $tax_description = substr($tax_description, 0, -3);      return $tax_description;    } else {      return TEXT_UNKNOWN_TAX_RATE;    }  }////// Add tax to a products price  function tep_add_tax($price, $tax) {    global $currencies;    if ( (DISPLAY_PRICE_WITH_TAX == 'true') && ($tax > 0) ) {      return tep_round($price, $currencies->currencies[DEFAULT_CURRENCY]['decimal_places']) + tep_calculate_tax($price, $tax);    } else {      return tep_round($price, $currencies->currencies[DEFAULT_CURRENCY]['decimal_places']);    }  }// Calculates Tax rounding the result  function tep_calculate_tax($price, $tax) {    global $currencies;    return tep_round($price * $tax / 100, $currencies->currencies[DEFAULT_CURRENCY]['decimal_places']);  }////// Return the number of products in a category// TABLES: products, products_to_categories, categories  function tep_count_products_in_category($category_id, $include_inactive = false) {    $products_count = 0;    if ($include_inactive == true) {      $products_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_id = p2c.products_id and p2c.categories_id = '" . (int)$category_id . "'");    } else {      $products_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_id = p2c.products_id and p.products_status = '1' and p2c.categories_id = '" . (int)$category_id . "'");    }    $products = tep_db_fetch_array($products_query);    $products_count += $products['total'];    $child_categories_query = tep_db_query("select categories_id from " . TABLE_CATEGORIES . " where parent_id = '" . (int)$category_id . "'");    if (tep_db_num_rows($child_categories_query)) {      while ($child_categories = tep_db_fetch_array($child_categories_query)) {        $products_count += tep_count_products_in_category($child_categories['categories_id'], $include_inactive);      }    }    return $products_count;  }////// Return true if the category has subcategories// TABLES: categories  function tep_has_category_subcategories($category_id) {    $child_category_query = tep_db_query("select count(*) as count from " . TABLE_CATEGORIES . " where parent_id = '" . (int)$category_id . "'");    $child_category = tep_db_fetch_array($child_category_query);    if ($child_category['count'] > 0) {      return true;    } else {      return false;    }  }////// Returns the address_format_id for the given country// TABLES: countries;  function tep_get_address_format_id($country_id) {    $address_format_query = tep_db_query("select address_format_id as format_id from " . TABLE_COUNTRIES . " where countries_id = '" . (int)$country_id . "'");    if (tep_db_num_rows($address_format_query)) {      $address_format = tep_db_fetch_array($address_format_query);      return $address_format['format_id'];    } else {      return '1';    }  }////// Return a formatted address// TABLES: address_format  function tep_address_format($address_format_id, $address, $html, $boln, $eoln) {    $address_format_query = tep_db_query("select address_format as format from " . TABLE_ADDRESS_FORMAT . " where address_format_id = '" . (int)$address_format_id . "'");    $address_format = tep_db_fetch_array($address_format_query);    $company = tep_output_string_protected($address['company']);    if (isset($address['firstname']) && tep_not_null($address['firstname'])) {      $firstname = tep_output_string_protected($address['firstname']);      $lastname = tep_output_string_protected($address['lastname']);    } elseif (isset($address['name']) && tep_not_null($address['name'])) {      $firstname = tep_output_string_protected($address['name']);      $lastname = '';    } else {      $firstname = '';      $lastname = '';    }    $street = tep_output_string_protected($address['street_address']);    $suburb = tep_output_string_protected($address['suburb']);

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久久国产精品麻豆ai换脸| 91浏览器在线视频| 亚洲一区在线电影| 国产精品福利一区| 国产精品色在线| 欧美高清一级片在线观看| 国产亚洲精品超碰| 国产精品美女一区二区在线观看| 久久久99久久| 国产精品不卡一区二区三区| 国产精品国模大尺度视频| 欧美激情综合在线| 国产精品激情偷乱一区二区∴| 国产精品激情偷乱一区二区∴| 亚洲欧美偷拍三级| 亚洲成人免费观看| 老司机一区二区| 国产精品1区2区3区在线观看| 风间由美性色一区二区三区| 不卡一区二区中文字幕| 欧美午夜寂寞影院| 91麻豆精品国产综合久久久久久| 日韩三区在线观看| 欧美激情在线观看视频免费| 国产精品不卡一区| 日韩精品成人一区二区在线| 精品中文字幕一区二区小辣椒 | 成人激情开心网| 91在线免费看| 在线成人小视频| 国产网红主播福利一区二区| 亚洲色图在线视频| 日韩高清不卡一区| 不卡av在线网| 欧美一区二区在线视频| 国产欧美日韩麻豆91| 一区二区三区在线影院| 人人超碰91尤物精品国产| 国产黄色91视频| 欧洲av一区二区嗯嗯嗯啊| 亚洲精品一区二区三区99| 亚洲免费毛片网站| 国产伦精品一区二区三区免费迷| 色综合色综合色综合| 精品少妇一区二区三区日产乱码| 最好看的中文字幕久久| 另类小说图片综合网| 色综合久久天天| 久久久久国产精品免费免费搜索| 亚洲一区二区三区四区在线| 国产成人av福利| 日韩欧美亚洲另类制服综合在线| 亚洲靠逼com| 国产在线精品一区二区| 欧美精品久久久久久久多人混战| 国产精品天干天干在观线| 免费在线看成人av| 欧美亚洲综合另类| 亚洲视频在线一区| 国产不卡在线一区| 精品国产伦一区二区三区观看方式 | 亚洲一区在线播放| 成人免费av网站| 久久香蕉国产线看观看99| 亚洲bt欧美bt精品| 在线免费观看一区| 亚洲欧洲性图库| 成人永久aaa| 国产亚洲精品aa午夜观看| 国内精品嫩模私拍在线| 日韩一卡二卡三卡四卡| 午夜精品国产更新| 欧美日韩高清影院| 午夜精品一区二区三区电影天堂 | 一区二区三区精品视频在线| 国产91丝袜在线播放| 久久日韩粉嫩一区二区三区| 日韩国产高清在线| 欧美一区二区黄色| 蜜臀av性久久久久蜜臀av麻豆| 欧美性一区二区| 亚洲第一在线综合网站| 欧美日韩中文字幕一区| 亚洲成人免费电影| 欧美一级夜夜爽| 另类小说综合欧美亚洲| 久久精品在线免费观看| 岛国一区二区在线观看| 日韩毛片高清在线播放| 日本久久电影网| 午夜国产不卡在线观看视频| 欧美丰满美乳xxx高潮www| 久久成人久久鬼色| 国产欧美一区二区精品性色| 不卡一区在线观看| 亚洲一区在线观看网站| 91精品国产综合久久婷婷香蕉| 精品一区二区在线视频| 欧美激情一区不卡| 欧美亚洲高清一区| 免费观看一级欧美片| 久久精品亚洲精品国产欧美| 99精品欧美一区二区三区小说 | 99久久国产综合精品女不卡| 亚洲精品免费在线播放| 欧美三区免费完整视频在线观看| 日韩中文字幕av电影| 2020国产精品自拍| 在线视频你懂得一区| 亚洲成a人片在线观看中文| 4438成人网| 国产白丝精品91爽爽久久| 亚洲一区在线视频| 日本一区二区三区四区| 欧美美女视频在线观看| 国产一区啦啦啦在线观看| 伊人开心综合网| 亚洲色图另类专区| 久久国产人妖系列| 最新日韩在线视频| 精品嫩草影院久久| 欧美综合在线视频| 黑人精品欧美一区二区蜜桃| 国产精品你懂的| 91精品国产综合久久久久久| 成人综合婷婷国产精品久久| 丝袜亚洲精品中文字幕一区| 国产精品午夜电影| 精品嫩草影院久久| 欧美人与禽zozo性伦| 高清国产一区二区三区| 青草av.久久免费一区| 亚洲欧美偷拍卡通变态| 国产三级一区二区三区| 欧美剧情电影在线观看完整版免费励志电影 | 欧美大片在线观看一区二区| 蜜臀久久久久久久| 亚洲精选一二三| 久久精品视频免费| 日韩精品中文字幕一区二区三区 | 亚洲激情在线播放| 国产日韩在线不卡| 精品国产一区久久| 欧美一区二区三区四区视频| 色综合久久综合中文综合网| 懂色av一区二区三区免费看| 麻豆91精品视频| 欧美aⅴ一区二区三区视频| 一级特黄大欧美久久久| 亚洲视频每日更新| 1000精品久久久久久久久| 国产精品久久久久永久免费观看 | 欧美国产国产综合| 亚洲精品一线二线三线无人区| 欧美另类变人与禽xxxxx| 91成人在线观看喷潮| 91国内精品野花午夜精品| 91蜜桃视频在线| 日本福利一区二区| 欧美调教femdomvk| 欧美日韩精品免费观看视频| 欧美亚洲愉拍一区二区| 欧美日韩视频在线观看一区二区三区| av中文字幕不卡| 在线免费观看一区| 欧美日本一道本| 日韩视频一区二区| 久久久影院官网| 国产精品嫩草影院com| 日韩久久一区二区| 亚洲一区二区三区三| 亚洲国产成人精品视频| 日韩中文字幕91| 国产乱人伦偷精品视频不卡| 成人小视频在线| 91搞黄在线观看| 欧美一区二区视频网站| 精品国产乱码久久久久久浪潮| 久久亚洲欧美国产精品乐播| 久久精品亚洲精品国产欧美kt∨| 综合色天天鬼久久鬼色| 亚洲大片精品永久免费| 捆绑紧缚一区二区三区视频| 国产91富婆露脸刺激对白| 91久久一区二区| 日韩午夜激情电影| 国产精品久久久久久久久动漫| 一区二区三区四区精品在线视频| 一区二区三区免费网站| 久久精品国产网站| 一本大道久久a久久综合| 欧美日本精品一区二区三区| 久久精品在线免费观看| 亚洲一二三四区| 国产精品一区二区久激情瑜伽| 一本色道久久综合亚洲91| 日韩一区二区免费高清| 国产精品三级久久久久三级| 天堂在线一区二区| 99国产精品久|