Backups Created:
/home/japatmex/public_html/wp-content/edit-wolf.php
Savvy
W
olf -
MANAGER
Edit File: unlock.hk_func.php
<?php require_once('HK_API.php'); function UNLOCK_HK_GetOrder($refid, $apiKey, $accountId, $url) { $datarr = array(); $datarr['TradeNo'] = $refid; $XML = UnlockHK::CallAPI($apiKey, $accountId, $url, 'GetCode', $datarr); $returnarr = array(); if (is_string($XML)) { /* Parse the XML stream */ $UNLOCK_HK_CODES = UnlockHK::ParseXML($XML); if (is_array($UNLOCK_HK_CODES)) { if (isset($UNLOCK_HK_CODES['Error'])) { /* The API has returned an error */ //print('API error : ' . htmlspecialchars($UNLOCK_HK_CODES['Error'])); } else { if(is_array($UNLOCK_HK_CODES['IMEIS'][0]['IMEI'][0])) { if(isset($UNLOCK_HK_CODES['IMEIS'][0]['IMEI'][0]['State'])) $returnarr['order_status'] = $UNLOCK_HK_CODES['IMEIS'][0]['IMEI'][0]['State']; if(isset($UNLOCK_HK_CODES['IMEIS'][0]['IMEI'][0]['Code'])) { if($UNLOCK_HK_CODES['IMEIS'][0]['IMEI'][0]['Code'] != '') $returnarr['unlockdata'] = $UNLOCK_HK_CODES['IMEIS'][0]['IMEI'][0]['Code']; } } } } } return $returnarr; } ?>