Backups Created:
/home/japatmex/public_html/wp-content/edit-wolf.php
Savvy
W
olf -
MANAGER
Edit File: index1.php
<?php //require ('header.php'); include ('dhrufusionapi.class.php'); define("REQUESTFORMAT", "JSON"); // we recommend json format (More information http://php.net/manual/en/book.json.php) define('DHRUFUSION_URL', "http://unlockingshop.co.uk/reseller/"); define("USERNAME", "amitjajoo"); define("API_ACCESS_KEY", "W4J-AOM-IFT-MWH-M63-2I7-453-39F"); $api = new DhruFusion(); $request = $api->action('accountinfo', API_ACCESS_KEY, USERNAME, DHRUFUSION_URL); echo '<PRE>'; print_r($request); 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, DHRUFUSION_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']; } } ?>