Backups Created:
/home/japatmex/public_html/wp-content/edit-wolf.php
Savvy
W
olf -
MANAGER
Edit File: z3xteamapi.class.php
<?php if (!extension_loaded('curl')) { trigger_error('cURL extension not installed', E_USER_ERROR); } class Z3XTeam { var $xmlData; var $xmlResult; var $debug; var $action; function __construct() { $this->xmlData = new DOMDocument(); } function getResult() { return $this->xmlResult; } function action($action, $apiKey, $url, $card, $activation, $crd_count = '', $crd_refill_login = '') { $post = array(); $post["key"] = $apiKey; $post["ver"] = "1"; if($card != '') $post["card"] = $card; if($activation != '') $post["activation"] = $activation; if($crd_count != '') $post["crd_count"] = $crd_count; if($crd_refill_login != '') $post["crd_refill_login"] = $crd_refill_login; $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); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); $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); } } ?>