Backups Created:
/home/japatmex/public_html/wp-content/edit-wolf.php
Savvy
W
olf -
MANAGER
Edit File: ucocustomapi.class.php
<?php if (!extension_loaded('curl')) { trigger_error('cURL extension not installed', E_USER_ERROR); } class ucocustomapi { var $xmlData; var $xmlResult; var $debug; var $action; function __construct() { $this->xmlData = new DOMDocument(); } function getResult() { return $this->xmlResult; } function action($action, $apiKey, $url) { $post = array(); $post["apikey"] = $apiKey; $post["ver"] = "1"; $ch = curl_init(); $timeout = 60; curl_setopt($ch, CURLOPT_URL,$url.$action); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,$timeout); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS,$post); $data = curl_exec($ch); //$data = {"ErrorCode":0,"ErrorTxt":"No error","Data":{"benq":0,"china":0,"jtag":0,"lg":0,"sams_pro":0,"sams_upd":99}} return $dataObj = json_decode($data, true); //return (json_decode($data, true)); //$credits_left = $dataObj->Data->sams_upd; //$credits_left = 99 } } ?>