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, 'GetImei', $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['IMEI'][0])) { if(isset($UNLOCK_HK_CODES['IMEI'][0]['SuccessCodeLine'])) $returnarr['order_status'] = $UNLOCK_HK_CODES['IMEI'][0]['SuccessCodeLine']; if(isset($UNLOCK_HK_CODES['IMEI'][0]['Code'])) { if($UNLOCK_HK_CODES['IMEI'][0]['SuccessCodeLine'] == '1') $returnarr['unlockdata'] = $UNLOCK_HK_CODES['IMEI'][0]['Code']; else $returnarr['unlockdata'] = ''; } } } } } return $returnarr; } ?>