Changeset 748 for branches/Ver3.0/xpressme_integration_kit/wp-content
- Timestamp:
- May 19, 2011, 5:35:54 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Ver3.0/xpressme_integration_kit/wp-content/plugins/xpressme/include/xpress_upgrade.php
r718 r748 232 232 $response['response']['code'] = $client->status; 233 233 $response['body'] = $client->results; 234 /* not use snoopy test code 235 $handle = fopen($url,'r'); 236 if ($handle) { 237 $ans = array(); 238 $num = 0; 239 $pos = 0; 240 while (($buffer = fgets($handle, 4096)) !== false) { 241 $buffer = trim($buffer); 242 if (strlen($buffer) == 0) { 243 $num++; 244 $pos=0; 245 } else { 246 $ans[$num][$pos] = $buffer; 247 $pos++; 248 } 249 } 250 if (!feof($handle)) { 251 echo "Error: unexpected fgets() fail\n"; 252 } 253 fclose($handle); 254 } 255 */ 256 257 234 258 return $response; 235 259 return $client; … … 249 273 'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) 250 274 ); 251 275 $response = xp_remote_get($check_url); 252 276 if (! function_exists('wp_remote_get')) { 253 277 $response = xp_remote_get($check_url);
Note: See TracChangeset
for help on using the changeset viewer.