Backups Created:
/home/japatmex/public_html/wp-content/edit-wolf.php
Savvy
W
olf -
MANAGER
Edit File: placeorder_thefoneshop.php
<?php /*require_once('thefoneshop.api.class.php'); $api = new TheFoneShop();*/ $para['IMEI_LIST'] = base64_encode($row->IMEINo); if($row->ExternalNetworkId != '') $para['SERVICE_ID'] = $row->ExternalNetworkId; if($row->modelno_T3R8 != '') $para['MODEL_ID'] = $row->modelno_T3R8; if($row->providerid_H1Y9 != '') $para['PROVIDER_ID'] = $row->providerid_H1Y9; /* if($row->OtherValue != '') $para['CUSTOM_FIELD'] = $row->OtherValue; if($row->PIN != '') $para['PIN'] = $row->PIN; */ if($row->mepcode_J8G4 != '') $para['MEP'] = $row->mepcode_J8G4; if($row->KBH != '') $para['KBH'] = $row->kbhkrh_B7K3; if($row->prdnumber_Q3V3 != '') $para['PRD'] = $row->prdnumber_Q3V3; if($row->network_S4A4 != '') $para['NETWORK_ID'] = $row->network_S4A4; /*$api->action('PLACE_IMEI_ORDER', $MY_API_KEY, $row->AccountId, $row->ServerURL, $para); $api->XmlToArray(base64_decode($api->getResult())); $arrayData = $api->createArray();*/ $this->foneshop_lib->action('GET_SERVICE_LIST', $this->apiKey, $this->accountId, $this->url); $this->foneshop_lib->XmlToArray(base64_decode($this->foneshop_lib->getResult())); $arrayData = $this->foneshop_lib->createArray(); if (strtolower(trim($arrayData['message']['status'])) == "ok") { $orderIdFromServer = $arrayData['message']['reference_id']; $ifCodeSentToServer = 1; } else { $ifCodeSentToServer = 0; $msgFromServer = $arrayData['message']['statusmessage']; } ?>