Changeset 198760
- Timestamp:
- 01/27/2010 02:32:03 PM (16 years ago)
- Location:
- url-shortener
- Files:
-
- 2 edited
-
tags/2.0/req/components/inc.FTShortenShared.php (modified) (3 diffs)
-
trunk/req/components/inc.FTShortenShared.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
url-shortener/tags/2.0/req/components/inc.FTShortenShared.php
r198704 r198760 9 9 if (!class_exists('FTShortenShared')){ 10 10 class FTShortenShared { 11 protectedfunction openurl($url, $useragent = 'false', $posttype = 'GET', $postfield = '') {11 function openurl($url, $useragent = 'false', $posttype = 'GET', $postfield = '') { 12 12 if (function_exists('curl_init')) { 13 13 $ch = curl_init(); … … 32 32 }//end fx open url 33 33 34 protectedfunction processjson($url){34 function processjson($url){ 35 35 $json = new Services_JSON(); 36 36 $result = $json->decode($url); … … 38 38 }//end json process 39 39 40 protectedfunction processxml($url, $method='POST', $body=array()){40 function processxml($url, $method='POST', $body=array()){ 41 41 $request = new WP_Http; 42 42 $result = $request->request( $url, array( 'method' => $method, 'body' => $body) ); -
url-shortener/trunk/req/components/inc.FTShortenShared.php
r198746 r198760 9 9 if (!class_exists('FTShortenShared')){ 10 10 class FTShortenShared { 11 protectedfunction openurl($url, $useragent = 'false', $posttype = 'GET', $postfield = '') {11 function openurl($url, $useragent = 'false', $posttype = 'GET', $postfield = '') { 12 12 if (function_exists('curl_init')) { 13 13 $ch = curl_init(); … … 32 32 }//end fx open url 33 33 34 protectedfunction processjson($url){34 function processjson($url){ 35 35 $json = new Services_JSON(); 36 36 $result = $json->decode($url); … … 38 38 }//end json process 39 39 40 protectedfunction processxml($url, $method='POST', $body=array()){40 function processxml($url, $method='POST', $body=array()){ 41 41 $request = new WP_Http; 42 42 $result = $request->request( $url, array( 'method' => $method, 'body' => $body) );
Note: See TracChangeset
for help on using the changeset viewer.