- Timestamp:
- Oct 20, 2009, 8:11:11 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/xpressme.php
r404 r411 387 387 $body = str_replace(array("\r\n", "\r"), "\n", $body); 388 388 $returns = explode("\n", $body); 389 $response = $returns[0]; 390 if ( isset( $returns[1] ) ) 391 $url = clean_url( $returns[1] ); 392 if ( isset( $returns[2] ) ) 393 $package = clean_url( $returns[2] ); 394 if ( isset( $returns[3] ) ) 395 $latest_version = $returns[3]; 389 if ( isset( $returns[0] ) ) $response = $returns[0]; else $response = ''; 390 if ( isset( $returns[1] ) ) $url = clean_url( $returns[1] ); else $url = ''; 391 if ( isset( $returns[2] ) ) $package = clean_url( $returns[2] ); else $package = ''; 392 if ( isset( $returns[3] ) ) $latest_version = $returns[3]; else $latest_version = ''; 393 if ( isset( $returns[4] ) ) $before_version = $returns[4]; else $before_version = ''; 394 395 // diff 396 if ( isset( $returns[5] ) ) $diff_response = $returns[5]; else $diff_response = ''; 397 if ( isset( $returns[6] ) ) $diff_url = clean_url( $returns[6] ); else $diff_url = ''; 398 if ( isset( $returns[7] ) ) $diff_package = clean_url( $returns[7] ); else $diff_package = ''; 399 if ( isset( $returns[8] ) ) $diff_latest_version = $returns[8]; else $diff_latest_version = ''; 400 if ( isset( $returns[9] ) ) $diff_before_version = $returns[9]; else $diff_before_version = ''; 401 402 // developer 403 if ( isset( $returns[10] ) ) $develop_response = $returns[10]; else $develop_response = ''; 404 if ( isset( $returns[11] ) ) $develop_url = clean_url( $returns[11] ); else $develop_url = ''; 405 if ( isset( $returns[12] ) ) $develop_package = clean_url( $returns[12] ); else $develop_package = ''; 406 if ( isset( $returns[13] ) ) $develop_latest_version = $returns[13]; else $develop_latest_version = ''; 407 if ( isset( $returns[14] ) ) $develop_before_version = $returns[14]; else $develop_before_version = ''; 396 408 397 409 $write_options = array ( 410 'response' => $response , 398 411 'url' => $url , 399 412 'package' => $package , 400 413 'latest_version' => $latest_version , 414 'before_version' => $before_version , 415 'diff_response' => $diff_response , 416 'diff_url' => $diff_url , 417 'diff_package' => $diff_package , 418 'diff_latest_version' => $diff_latest_version , 419 'diff_before_version' => $diff_before_version , 420 'develop_response' => $develop_response , 421 'develop_url' => $develop_url , 422 'develop_package' => $develop_package , 423 'develop_latest_version' => $develop_latest_version , 424 'develop_before_version' => $develop_before_version , 401 425 'check_time' => time() 402 426 );
Note: See TracChangeset
for help on using the changeset viewer.