Changeset 4854 for OpenPNE/trunk
- Timestamp:
- Dec 26, 2007, 7:51:20 PM (15 years ago)
- Location:
- OpenPNE/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
OpenPNE/trunk/lib/include/Services/Amazon.php
r4850 r4854 800 800 // request for the URL. 801 801 $http = &new HTTP_Request($url); 802 if ($this->_proxy_host) $http->setProxy($this->_proxy_host, $this->_proxy_port, $this->_proxy_user, $this->_proxy_pass); 802 if ($this->_proxy_host) { 803 $http->setProxy($this->_proxy_host, $this->_proxy_port, $this->_proxy_user, $this->_proxy_pass); 804 } 803 805 $http->addHeader('User-Agent', 'Services_Amazon/' . $this->getApiVersion()); 804 806 $http->sendRequest(); -
OpenPNE/trunk/webapp/lib/db/review.php
r4850 r4854 98 98 $amazon =& new Services_Amazon(AMAZON_TOKEN, AMAZON_AFFID, AMAZON_LOCALE, AMAZON_BASEURL); 99 99 $amazon->setLocale(AMAZON_LOCALE); 100 if (OPENPNE_USE_HTTP_PROXY) $amazon->setProxy(OPENPNE_HTTP_PROXY_HOST, OPENPNE_HTTP_PROXY_PORT); 100 if (OPENPNE_USE_HTTP_PROXY) { 101 $amazon->setProxy(OPENPNE_HTTP_PROXY_HOST, OPENPNE_HTTP_PROXY_PORT); 102 } 101 103 $products = $amazon->searchKeyword($keyword, $category, $page); 102 104 if (PEAR::isError($products)) { … … 134 136 $amazon =& new Services_Amazon(AMAZON_TOKEN, AMAZON_AFFID, AMAZON_LOCALE, AMAZON_BASEURL); 135 137 $amazon->setLocale(AMAZON_LOCALE); 136 if (OPENPNE_USE_HTTP_PROXY) $amazon->setProxy(OPENPNE_HTTP_PROXY_HOST, OPENPNE_HTTP_PROXY_PORT); 138 if (OPENPNE_USE_HTTP_PROXY) { 139 $amazon->setProxy(OPENPNE_HTTP_PROXY_HOST, OPENPNE_HTTP_PROXY_PORT); 140 } 137 141 $keyword = mb_convert_encoding($keyword, "UTF-8", "auto"); 138 142
Note: See TracChangeset
for help on using the changeset viewer.