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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? ups.php

?? 每個(gè)RFC 3261信息頭有一個(gè)相應(yīng)的存取標(biāo)識(shí). 但是,許多信息頭擁有同樣的形式。 例如。To和From的信息頭都是由顯示名和一個(gè)URI組成。 To和From信息頭用來(lái)管理與處理NameAddr實(shí)例的
?? PHP
字號(hào):
<?php/*  $Id: ups.php,v 1.54 2003/04/08 23:23:42 dgw_ Exp $  osCommerce, Open Source E-Commerce Solutions  http://www.oscommerce.com  Copyright (c) 2003 osCommerce  Released under the GNU General Public License*/  class ups {    var $code, $title, $descrption, $icon, $enabled, $types;// class constructor    function ups() {      global $order;      $this->code = 'ups';      $this->title = MODULE_SHIPPING_UPS_TEXT_TITLE;      $this->description = MODULE_SHIPPING_UPS_TEXT_DESCRIPTION;      $this->sort_order = MODULE_SHIPPING_UPS_SORT_ORDER;      $this->icon = DIR_WS_ICONS . 'shipping_ups.gif';      $this->tax_class = MODULE_SHIPPING_UPS_TAX_CLASS;      $this->enabled = ((MODULE_SHIPPING_UPS_STATUS == 'True') ? true : false);      if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_UPS_ZONE > 0) ) {        $check_flag = false;        $check_query = tep_db_query("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_SHIPPING_UPS_ZONE . "' and zone_country_id = '" . $order->delivery['country']['id'] . "' order by zone_id");        while ($check = tep_db_fetch_array($check_query)) {          if ($check['zone_id'] < 1) {            $check_flag = true;            break;          } elseif ($check['zone_id'] == $order->delivery['zone_id']) {            $check_flag = true;            break;          }        }        if ($check_flag == false) {          $this->enabled = false;        }      }      $this->types = array('1DM' => 'Next Day Air Early AM',                           '1DML' => 'Next Day Air Early AM Letter',                           '1DA' => 'Next Day Air',                           '1DAL' => 'Next Day Air Letter',                           '1DAPI' => 'Next Day Air Intra (Puerto Rico)',                           '1DP' => 'Next Day Air Saver',                           '1DPL' => 'Next Day Air Saver Letter',                           '2DM' => '2nd Day Air AM',                           '2DML' => '2nd Day Air AM Letter',                           '2DA' => '2nd Day Air',                           '2DAL' => '2nd Day Air Letter',                           '3DS' => '3 Day Select',                           'GND' => 'Ground',                           'GNDCOM' => 'Ground Commercial',                           'GNDRES' => 'Ground Residential',                           'STD' => 'Canada Standard',                           'XPR' => 'Worldwide Express',                           'XPRL' => 'worldwide Express Letter',                           'XDM' => 'Worldwide Express Plus',                           'XDML' => 'Worldwide Express Plus Letter',                           'XPD' => 'Worldwide Expedited');    }// class methods    function quote($method = '') {      global $HTTP_POST_VARS, $order, $shipping_weight, $shipping_num_boxes;      if ( (tep_not_null($method)) && (isset($this->types[$method])) ) {        $prod = $method;      } else {        $prod = 'GNDRES';      }      if ($method) $this->_upsAction('3'); // return a single quote      $this->_upsProduct($prod);      $country_name = tep_get_countries(SHIPPING_ORIGIN_COUNTRY, true);      $this->_upsOrigin(SHIPPING_ORIGIN_ZIP, $country_name['countries_iso_code_2']);      $this->_upsDest($order->delivery['postcode'], $order->delivery['country']['iso_code_2']);      $this->_upsRate(MODULE_SHIPPING_UPS_PICKUP);      $this->_upsContainer(MODULE_SHIPPING_UPS_PACKAGE);      $this->_upsWeight($shipping_weight);      $this->_upsRescom(MODULE_SHIPPING_UPS_RES);      $upsQuote = $this->_upsGetQuote();      if ( (is_array($upsQuote)) && (sizeof($upsQuote) > 0) ) {        $this->quotes = array('id' => $this->code,                              'module' => $this->title . ' (' . $shipping_num_boxes . ' x ' . $shipping_weight . 'lbs)');        $methods = array();        $qsize = sizeof($upsQuote);        for ($i=0; $i<$qsize; $i++) {          list($type, $cost) = each($upsQuote[$i]);          $methods[] = array('id' => $type,                             'title' => $this->types[$type],                             'cost' => ($cost + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes);        }        $this->quotes['methods'] = $methods;        if ($this->tax_class > 0) {          $this->quotes['tax'] = tep_get_tax_rate($this->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']);        }      } else {        $this->quotes = array('module' => $this->title,                              'error' => 'An error occured with the UPS shipping calculations.<br>' . $upsQuote . '<br>If you prefer to use UPS as your shipping method, please contact the store owner.');      }      if (tep_not_null($this->icon)) $this->quotes['icon'] = tep_image($this->icon, $this->title);      return $this->quotes;    }    function check() {      if (!isset($this->_check)) {        $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_UPS_STATUS'");        $this->_check = tep_db_num_rows($check_query);      }      return $this->_check;    }    function install() {      tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable UPS Shipping', 'MODULE_SHIPPING_UPS_STATUS', 'True', 'Do you want to offer UPS shipping?', '6', '0', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())");      tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('UPS Pickup Method', 'MODULE_SHIPPING_UPS_PICKUP', 'CC', 'How do you give packages to UPS? CC - Customer Counter, RDP - Daily Pickup, OTP - One Time Pickup, LC - Letter Center, OCA - On Call Air', '6', '0', now())");      tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('UPS Packaging?', 'MODULE_SHIPPING_UPS_PACKAGE', 'CP', 'CP - Your Packaging, ULE - UPS Letter, UT - UPS Tube, UBE - UPS Express Box', '6', '0', now())");      tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Residential Delivery?', 'MODULE_SHIPPING_UPS_RES', 'RES', 'Quote for Residential (RES) or Commercial Delivery (COM)', '6', '0', now())");      tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Handling Fee', 'MODULE_SHIPPING_UPS_HANDLING', '0', 'Handling fee for this shipping method.', '6', '0', now())");      tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Tax Class', 'MODULE_SHIPPING_UPS_TAX_CLASS', '0', 'Use the following tax class on the shipping fee.', '6', '0', 'tep_get_tax_class_title', 'tep_cfg_pull_down_tax_classes(', now())");      tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Shipping Zone', 'MODULE_SHIPPING_UPS_ZONE', '0', 'If a zone is selected, only enable this shipping method for that zone.', '6', '0', 'tep_get_zone_class_title', 'tep_cfg_pull_down_zone_classes(', now())");      tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort order of display.', 'MODULE_SHIPPING_UPS_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())");    }    function remove() {      tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')");    }    function keys() {      return array('MODULE_SHIPPING_UPS_STATUS', 'MODULE_SHIPPING_UPS_PICKUP', 'MODULE_SHIPPING_UPS_PACKAGE', 'MODULE_SHIPPING_UPS_RES', 'MODULE_SHIPPING_UPS_HANDLING', 'MODULE_SHIPPING_UPS_TAX_CLASS', 'MODULE_SHIPPING_UPS_ZONE', 'MODULE_SHIPPING_UPS_SORT_ORDER');    }    function _upsProduct($prod){      $this->_upsProductCode = $prod;    }    function _upsOrigin($postal, $country){      $this->_upsOriginPostalCode = $postal;      $this->_upsOriginCountryCode = $country;    }    function _upsDest($postal, $country){      $postal = str_replace(' ', '', $postal);      if ($country == 'US') {        $this->_upsDestPostalCode = substr($postal, 0, 5);      } else {        $this->_upsDestPostalCode = $postal;      }      $this->_upsDestCountryCode = $country;    }    function _upsRate($foo) {      switch ($foo) {        case 'RDP':          $this->_upsRateCode = 'Regular+Daily+Pickup';          break;        case 'OCA':          $this->_upsRateCode = 'On+Call+Air';          break;        case 'OTP':          $this->_upsRateCode = 'One+Time+Pickup';          break;        case 'LC':          $this->_upsRateCode = 'Letter+Center';          break;        case 'CC':          $this->_upsRateCode = 'Customer+Counter';          break;      }    }    function _upsContainer($foo) {      switch ($foo) {        case 'CP': // Customer Packaging          $this->_upsContainerCode = '00';          break;        case 'ULE': // UPS Letter Envelope          $this->_upsContainerCode = '01';          break;        case 'UT': // UPS Tube          $this->_upsContainerCode = '03';          break;        case 'UEB': // UPS Express Box          $this->_upsContainerCode = '21';          break;        case 'UW25': // UPS Worldwide 25 kilo          $this->_upsContainerCode = '24';          break;        case 'UW10': // UPS Worldwide 10 kilo          $this->_upsContainerCode = '25';          break;      }    }    function _upsWeight($foo) {      $this->_upsPackageWeight = $foo;    }    function _upsRescom($foo) {      switch ($foo) {        case 'RES': // Residential Address          $this->_upsResComCode = '1';          break;        case 'COM': // Commercial Address          $this->_upsResComCode = '2';          break;      }    }    function _upsAction($action) {      /* 3 - Single Quote         4 - All Available Quotes */      $this->_upsActionCode = $action;    }    function _upsGetQuote() {      if (!isset($this->_upsActionCode)) $this->_upsActionCode = '4';      $request = join('&', array('accept_UPS_license_agreement=yes',                                 '10_action=' . $this->_upsActionCode,                                 '13_product=' . $this->_upsProductCode,                                 '14_origCountry=' . $this->_upsOriginCountryCode,                                 '15_origPostal=' . $this->_upsOriginPostalCode,                                 '19_destPostal=' . $this->_upsDestPostalCode,                                 '22_destCountry=' . $this->_upsDestCountryCode,                                 '23_weight=' . $this->_upsPackageWeight,                                 '47_rate_chart=' . $this->_upsRateCode,                                 '48_container=' . $this->_upsContainerCode,                                 '49_residential=' . $this->_upsResComCode));      $http = new httpClient();      if ($http->Connect('www.ups.com', 80)) {        $http->addHeader('Host', 'www.ups.com');        $http->addHeader('User-Agent', 'osCommerce');        $http->addHeader('Connection', 'Close');        if ($http->Get('/using/services/rave/qcostcgi.cgi?' . $request)) $body = $http->getBody();        $http->Disconnect();      } else {        return 'error';      }      $body_array = explode("\n", $body);      $returnval = array();      $errorret = 'error'; // only return error if NO rates returned      $n = sizeof($body_array);      for ($i=0; $i<$n; $i++) {        $result = explode('%', $body_array[$i]);        $errcode = substr($result[0], -1);        switch ($errcode) {          case 3:            if (is_array($returnval)) $returnval[] = array($result[1] => $result[8]);            break;          case 4:            if (is_array($returnval)) $returnval[] = array($result[1] => $result[8]);            break;          case 5:            $errorret = $result[1];            break;          case 6:            if (is_array($returnval)) $returnval[] = array($result[3] => $result[10]);            break;        }      }      if (empty($returnval)) $returnval = $errorret;      return $returnval;    }  }?>

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本免费在线视频不卡一不卡二 | 欧美大片顶级少妇| 国产一区二区三区免费在线观看| 国产精品久久久久久户外露出| 91.xcao| 色综合久久九月婷婷色综合| 美女视频一区在线观看| 亚洲一区在线播放| 国产精品狼人久久影院观看方式| 欧美日韩国产影片| 91蜜桃网址入口| 国产在线播放一区| 美女高潮久久久| 天天综合网天天综合色| 一区二区三区精品在线观看| 国产精品高清亚洲| 国产欧美一区二区精品性色超碰 | 99综合影院在线| 国产在线精品不卡| 秋霞电影网一区二区| 亚洲国产裸拍裸体视频在线观看乱了 | 欧美tickling挠脚心丨vk| 欧美日韩精品欧美日韩精品一综合| 99国产精品99久久久久久| 国产xxx精品视频大全| 久久99国产精品久久99| 日本三级韩国三级欧美三级| 午夜久久久久久| 亚洲aⅴ怡春院| 天天综合色天天| 日韩精品成人一区二区三区| 色综合久久六月婷婷中文字幕| 国产成人自拍网| 国产精品中文欧美| 国产一区二区三区免费播放 | 国产精品一区二区在线看| 久久99精品久久久久久国产越南 | 日韩欧美第一区| 日韩精品在线网站| 精品乱码亚洲一区二区不卡| 精品欧美黑人一区二区三区| 精品国产91乱码一区二区三区| 欧美一二三四在线| 欧美大尺度电影在线| 精品国产污污免费网站入口| www国产精品av| 国产视频一区在线播放| 亚洲国产精品av| 最近日韩中文字幕| 亚洲综合免费观看高清在线观看 | 国产成人精品免费在线| 懂色av一区二区三区蜜臀| av一区二区三区在线| 日本高清不卡在线观看| 欧美午夜不卡视频| 在线综合亚洲欧美在线视频| 欧美电视剧在线看免费| 欧美激情在线免费观看| 亚洲美女少妇撒尿| 午夜精品福利一区二区三区av| 免费观看在线色综合| 国产一区二区0| 成人av网站在线观看| 欧美在线观看禁18| 日韩一区二区在线播放| 国产免费成人在线视频| 亚洲男人的天堂网| 美国毛片一区二区| 成人晚上爱看视频| 欧美日本在线一区| 国产午夜亚洲精品理论片色戒| 亚洲天堂网中文字| 天天色 色综合| 懂色av中文一区二区三区| 欧美亚洲丝袜传媒另类| 精品日韩一区二区三区免费视频| 中国色在线观看另类| 午夜精彩视频在线观看不卡| 国产精品资源站在线| 欧美性猛交xxxx黑人交| ww久久中文字幕| 亚洲国产乱码最新视频| 国产99久久久国产精品| 欧美性色综合网| 国产喷白浆一区二区三区| 亚洲最新在线观看| 国产精品一区2区| 欧美色图免费看| 亚洲国产成人午夜在线一区| 天堂av在线一区| 91免费版pro下载短视频| 欧美大白屁股肥臀xxxxxx| 亚洲色图欧美偷拍| 国产精品一区二区久久不卡| 欧美日韩另类国产亚洲欧美一级| 国产精品三级在线观看| 久久国产精品99久久人人澡| 色综合久久综合网| 欧美国产一区二区在线观看| 免费av成人在线| 欧美视频一区二区在线观看| 日本一区二区三区在线观看| 免费观看久久久4p| 欧美日韩你懂的| 国产精品传媒入口麻豆| 极品美女销魂一区二区三区| 欧美日韩免费高清一区色橹橹| 国产精品国产精品国产专区不蜜| 精品午夜一区二区三区在线观看| 欧美裸体bbwbbwbbw| 亚洲色图欧美激情| av在线不卡电影| 亚洲国产精品二十页| 国内精品在线播放| 欧美刺激脚交jootjob| 日韩黄色片在线观看| 在线观看日韩毛片| 亚洲精品第一国产综合野| av高清不卡在线| 国产精品免费人成网站| 国产高清亚洲一区| 久久九九99视频| 国产精品亚洲午夜一区二区三区| 日韩欧美你懂的| 免费观看91视频大全| 91精品婷婷国产综合久久竹菊| 亚洲成av人综合在线观看| 欧美午夜理伦三级在线观看| 亚洲麻豆国产自偷在线| 91视频在线看| 一区二区三区电影在线播| 日本道精品一区二区三区| 亚洲人午夜精品天堂一二香蕉| 99久久99精品久久久久久| 国产精品剧情在线亚洲| 91亚洲精品一区二区乱码| 亚洲蜜臀av乱码久久精品蜜桃| 白白色 亚洲乱淫| 亚洲欧美色一区| 欧洲激情一区二区| 亚洲r级在线视频| 日韩免费一区二区三区在线播放| 久久国产人妖系列| 久久久精品日韩欧美| 成人小视频在线| 亚洲女同ⅹxx女同tv| 欧美在线观看视频在线| 亚洲午夜精品网| 日韩美女一区二区三区| 国产风韵犹存在线视精品| 亚洲欧洲精品天堂一级| 日本韩国欧美国产| 三级在线观看一区二区| 精品久久久久av影院| 成人精品视频一区| 一区二区三区欧美| 91精品国产综合久久小美女| 国产一区二区福利视频| 亚洲色图视频免费播放| 5566中文字幕一区二区电影| 国产一区二区三区蝌蚪| 亚洲色图欧美偷拍| 欧美一区二区在线免费观看| 激情文学综合丁香| ...av二区三区久久精品| 欧美日韩综合在线免费观看| 久久99九九99精品| 亚洲欧美影音先锋| 在线播放91灌醉迷j高跟美女 | 69堂国产成人免费视频| 国产毛片一区二区| 一区二区三区资源| 亚洲精品在线网站| 99re这里只有精品6| 天堂成人国产精品一区| 国产精品全国免费观看高清| 欧美日韩国产综合一区二区三区| 国产综合一区二区| 亚洲精品国产无天堂网2021| 日韩三级高清在线| 99这里都是精品| 麻豆成人久久精品二区三区小说| 中文字幕中文字幕在线一区| 91麻豆精品国产91久久久资源速度| 国产.欧美.日韩| 日韩av电影天堂| 亚洲欧美自拍偷拍| 欧美一区二区观看视频| 97久久精品人人爽人人爽蜜臀| 日韩精品91亚洲二区在线观看| 国产精品久久久久久久久免费樱桃| 日韩三级中文字幕| 91久久奴性调教| 成人高清视频免费观看| 麻豆精品视频在线观看| 亚洲精品国产a| 中文字幕精品一区二区精品绿巨人 | 亚洲一区二区三区四区在线免费观看| 久久久久久日产精品| 91精品综合久久久久久|