Backups Created:
/home/japatmex/public_html/wp-content/edit-wolf.php
Savvy
W
olf -
MANAGER
Edit File: placesrvrorder_fgold.php
<? require_once(APPPATH . 'libraries/cron/furiousgold_api.php'); // First GET Username if (empty($row->username_K4I8)) { $apiError = 'Invalid username'; } if (empty($row->serialno_U4L6)) { $apiError .= 'Invalid serial number'; } if ($apiError == '') { list($result, $info, $error, $errorno) = call_api('SEARCH_USERS', $row->AccountId, $MY_API_KEY, $row->ServerURL, array( 'USERNAME' => $row->username_K4I8, 'SERIAL_NUMBER' => $row->serialno_U4L6 )); if (is_array($result) && isset($result['REQUESTED_METHOD']) && $result['REQUESTED_METHOD'] == 'SEARCH_USERS') // the response is valid { if (isset($result['ERROR'])) { $errors['response'] = $result['ERROR'] . ' => error number ' . $result['ERROR_CODE']; $ifCodeSentToServer = 0; $msgFromServer = 'API Error: ' . $errors['response']; } else { $response = $result['RESULT']; $USERID_API = 0; if(isset($response[0]['user_id']) && $response[0]['user_id'] != '') $USERID_API = $response[0]['user_id']; if ($USERID_API == 0 || !is_numeric($USERID_API)) { $apiError .= 'Invalid USER ID'; } if (empty($row->quantity_G7V7)) { $apiError .= 'Invalid amount number'; } elseif (!is_numeric($row->quantity_G7V7) || (float)$row->quantity_G7V7 < 0) { $apiError .= 'The amount must be a number and higher then zero'; } if ($apiError == '') { list($result, $info, $error, $errorno) = call_api('TRANSFER_CREDIT', $row->AccountId, $MY_API_KEY, $row->ServerURL, array( 'USER_ID' => $USERID_API, 'AMOUNT' => $row->quantity_G7V7 )); if (is_array($result) && isset($result['REQUESTED_METHOD']) && $result['REQUESTED_METHOD'] == 'TRANSFER_CREDIT') // the response is valid { if (isset($result['ERROR'])) { $errors['response'] = $result['ERROR'] . ' => error number ' . $result['ERROR_CODE']; $ifCodeSentToServer = 0; $msgFromServer = 'API Error: ' . $errors['response']; } elseif (isset($result['RESULT']['STATUS']) && $result['RESULT']['STATUS'] == 'success') { //$response = $result['RESULT']; $ifCodeSentToServer = 1; $codeVal = 'Credits transferred successfully!'; } } } else { $ifCodeSentToServer = 0; $msgFromServer = $apiError; } } } } else { $ifCodeSentToServer = 0; $msgFromServer = $apiError; } ?>