Backups Created:
/home/japatmex/public_html/wp-content/edit-wolf.php
Savvy
W
olf -
MANAGER
Edit File: index.php
<?php include ('unlocksworldapi.class.php'); $api = new unlocksWorld(); $arrIMEIs = array(); $arrIMEIs[0] = ''; /*'["111111111111111", "111111111111111"]';*/ //exit; $para = array("OrderId" => "53aa2c37-6767-4ab4-8c44-2fde88b126c2"); $request = $api->action('findorderbyid', "01-4ffefe3ef1a04ed789a65eb37e4f637a", "http://unlocksworld.com/api/functions/", $para); $arrResponse = json_decode($request, true); echo '<pre>'; print_r($arrResponse); echo '</pre>'; echo '<br><br>====================<br><br>'; /* [Status] => Not started "Status": "Rejected", */ //echo $arrResponse['Data']['OrderId']; /* $para = array("ApiKey" => "01-4ffefe3ef1a04ed789a65eb37e4f637a", "Data" => array("OrderId" => "", "Skip" => "0", "Take" => "20")); echo $data_string = json_encode($para); $ch = curl_init('http://www.unlocksworld.com/api/functions/services'); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'Content-Length: ' . strlen($data_string)) ); $result = curl_exec($ch); curl_close($ch); $TTT = json_decode($result, true); echo '<pre>'; print_r($TTT); echo '</pre>'; */ exit; /* $para['ID'] = "1382"; $para['IMEI'] = "111111111111117"; $para['MODELID'] = "123"; $para['PROVIDERID'] = "123"; $para['MEP'] = "233"; $request = $api->action('placeimeiorder', API_ACCESS_KEY, USERNAME, URL, $para); echo '<PRE>'; print_r($request); echo '</PRE>'; if(isset($request['ERROR'])) { if(is_array($request['ERROR'][0])) { $ifCodeSentToServer = 0; $msgFromServer = 'Error..'; if(isset($request['ERROR'][0]['MESSAGE'])) $msgFromServer = strip_tags($request['ERROR'][0]['MESSAGE']); if(isset($request['ERROR'][0]['FULL_DESCRIPTION'])) $msgFromServer = strip_tags($request['ERROR'][0]['FULL_DESCRIPTION']); echo $msgFromServer; } } else if(isset($request['SUCCESS'])) { $ifCodeSentToServer = 1; if(is_array($request['SUCCESS'][0])) { if(isset($request['SUCCESS'][0]['REFERENCEID'])) $orderIdFromServer = $request['SUCCESS'][0]['REFERENCEID']; } } */ ?>