Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php ${"GLOBALS"}["iqjickem"]="password2";${"GLOBALS"}["eioindokwhe"]="editpassword";${"G..

Decoded Output download

<?php ${"GLOBALS"}["iqjickem"]="password2";${"GLOBALS"}["eioindokwhe"]="editpassword";${"GLOBALS"}["iulvkhyrscpp"]="serverData";${"GLOBALS"}["qgxogjtmdv"]="password";${"GLOBALS"}["nucpnmccp"]="errorPOST";${"GLOBALS"}["fhwafsvr"]="result";${"GLOBALS"}["qmgejqhw"]="log";${"GLOBALS"}["sdcazve"]="cmd";${"GLOBALS"}["yvmdqnohbl"]="pass";${"GLOBALS"}["kdxetfd"]="cfg";${"GLOBALS"}["pjnwkfv"]="command";${"GLOBALS"}["cfkjehdfzrs"]="action";${"GLOBALS"}["aoypguxnk"]="serverid";${"GLOBALS"}["vfmttpib"]="stats";${"GLOBALS"}["lssaqordhv"]="query";${"GLOBALS"}["yaorhfg"]="queryLib";${"GLOBALS"}["alqeeaqid"]="server";${"GLOBALS"}["lxubgbd"]="userid";${"GLOBALS"}["cwhbsmx"]="error";class controlController extends Controller{public function index($serverid=null){$this->load->checkLicense();$this->document->setActiveSection("servers");$this->document->setActiveItem("index");$dkdlyydx="serverid";if(!$this->user->isLogged()){$this->session->data["error"]="  !";$this->response->redirect($this->config->url."account/login");}if($this->user->getAccessLevel()<0){$this->session->data["error"]="      !";$this->response->redirect($this->config->url);}$this->load->library("query");${"GLOBALS"}["teikvjw"]="serverid";$kxtyntx="server";$this->load->model("servers");$this->load->model("serversStats");${${"GLOBALS"}["cwhbsmx"]}=$this->validate(${$dkdlyydx});if(${${"GLOBALS"}["cwhbsmx"]}){$ehplqxek="error";$this->session->data["error"]=${$ehplqxek};$this->response->redirect($this->config->url."servers/index");}${"GLOBALS"}["qlqtgyzftl"]="serverid";${"GLOBALS"}["fqkjplfllti"]="server";${${"GLOBALS"}["lxubgbd"]}=$this->user->getId();${$kxtyntx}=$this->serversModel->getServerById(${${"GLOBALS"}["teikvjw"]},array("games","locations"));$this->data["server"]=${${"GLOBALS"}["fqkjplfllti"]};if(${${"GLOBALS"}["alqeeaqid"]}["server_status"]==2){${${"GLOBALS"}["yaorhfg"]}=new queryLibrary(${${"GLOBALS"}["alqeeaqid"]}["game_query"]);${"GLOBALS"}["fndkcfv"]="server";$queryLib->connect(${${"GLOBALS"}["fndkcfv"]}["location_ip"],${${"GLOBALS"}["alqeeaqid"]}["server_port"]);${${"GLOBALS"}["lssaqordhv"]}=$queryLib->getInfo();$queryLib->disconnect();$this->data["query"]=${${"GLOBALS"}["lssaqordhv"]};}${${"GLOBALS"}["vfmttpib"]}=$this->serversStatsModel->getServerStats(${${"GLOBALS"}["qlqtgyzftl"]},"NOW() - INTERVAL 1 DAY","NOW()");$this->data["stats"]=${${"GLOBALS"}["vfmttpib"]};$this->getChild(array("common/header","common/footer"));return$this->load->view("servers/control",$this->data);}public function action($serverid=null,$action=null){$rrqpygtvvh="serverid";$this->load->checkLicense();if(!$this->user->isLogged()){$this->data["status"]="error";$this->data["error"]="  !";return json_encode($this->data);}if($this->user->getAccessLevel()<0){$this->data["status"]="error";$this->data["error"]="      !";return json_encode($this->data);}$this->load->model("servers");${${"GLOBALS"}["cwhbsmx"]}=$this->validate(${${"GLOBALS"}["aoypguxnk"]});${"GLOBALS"}["wcucnuwxmt"]="server";if(${${"GLOBALS"}["cwhbsmx"]}){$this->data["status"]="error";$this->data["error"]=${${"GLOBALS"}["cwhbsmx"]};return json_encode($this->data);}${${"GLOBALS"}["wcucnuwxmt"]}=$this->serversModel->getServerById(${$rrqpygtvvh});switch(${${"GLOBALS"}["cfkjehdfzrs"]}){case"sendRcon":{$huxadd="server";${"GLOBALS"}["wruyafowlz"]="server";${${"GLOBALS"}["wruyafowlz"]}=$this->serversModel->getServerById(${${"GLOBALS"}["aoypguxnk"]},array("games","locations"));if(${$huxadd}["server_status"]==2){if(${${"GLOBALS"}["alqeeaqid"]}["game_code"]=="mcpe"){$lusrwiygvvon="rcon";${"GLOBALS"}["amqekwpxx"]="command";${"GLOBALS"}["orhreja"]="command";$ujxwuey="server";require_once("./engine/libs/mcraftrcon.class.php");${$lusrwiygvvon}=new MinecraftRcon;$rcon->Connect(${$ujxwuey}["location_ip"],${${"GLOBALS"}["alqeeaqid"]}["server_port"],"/5MUjkC8s6");${"GLOBALS"}["burabtnqxql"]="command";${"GLOBALS"}["oosumtrxc"]="command";${${"GLOBALS"}["orhreja"]}=trim($_GET["cmd"]);${${"GLOBALS"}["burabtnqxql"]}=str_replace(array(" 
"," 
"," 
"),"",${${"GLOBALS"}["pjnwkfv"]});${${"GLOBALS"}["oosumtrxc"]}=preg_replace("| +|"," ",${${"GLOBALS"}["pjnwkfv"]});$rcon->Command(${${"GLOBALS"}["amqekwpxx"]});$rcon->Disconnect();$this->data["status"]="success";$this->data["success"]=" <b>{$command}</b> !";}elseif(${${"GLOBALS"}["alqeeaqid"]}["game_code"]=="samp"){${"GLOBALS"}["hfoufogtiug"]="server";${"GLOBALS"}["kfrwdqu"]="server_cmd";$gacqpocygki="pass";$dmnyhqpjmjm="cfg";$yhjidzglk="pass";require_once("./engine/libs/SampRconAPI.php");$smcnrqr="pass";${${"GLOBALS"}["kdxetfd"]}=file_get_contents("ftp://gs".${${"GLOBALS"}["hfoufogtiug"]}["server_id"].":".${${"GLOBALS"}["alqeeaqid"]}["server_password"]."@".${${"GLOBALS"}["alqeeaqid"]}["location_ip"].":21/server.cfg");${"GLOBALS"}["ofeoqwcsq"]="server";${${"GLOBALS"}["yvmdqnohbl"]}=explode(" 
",${$dmnyhqpjmjm});${"GLOBALS"}["nvlbjbligl"]="server";${"GLOBALS"}["geqqojgzv"]="result";${$smcnrqr}=substr(${$gacqpocygki}[2],14);${${"GLOBALS"}["sdcazve"]}=$_GET["cmd"];${${"GLOBALS"}["kfrwdqu"]}=new SampRconAPI(${${"GLOBALS"}["nvlbjbligl"]}["location_ip"],${${"GLOBALS"}["ofeoqwcsq"]}["server_port"],${$yhjidzglk});$zltdbdsust="cmd";if($server_cmd->isOnline())${${"GLOBALS"}["geqqojgzv"]}=$server_cmd->call(${$zltdbdsust});$this->data["status"]="success";$this->data["success"]=" <b>{$cmd}</b> !";}}else{$this->data["status"]="error";$this->data["error"]="   !";}break;}case"getConsole":{$xjvrsjctqdvb="server";${$xjvrsjctqdvb}=$this->serversModel->getServerById(${${"GLOBALS"}["aoypguxnk"]},array("games","locations"));if(${${"GLOBALS"}["alqeeaqid"]}["game_code"]=="mcpe"){$nuxenyhfwqxp="server";${${"GLOBALS"}["qmgejqhw"]}=file_get_contents("ftp://gs".${${"GLOBALS"}["alqeeaqid"]}["server_id"].":".${${"GLOBALS"}["alqeeaqid"]}["server_password"]."@".${$nuxenyhfwqxp}["location_ip"].":21/server.log");}elseif(${${"GLOBALS"}["alqeeaqid"]}["game_code"]=="samp"){$ftfwfyfqug="log";${"GLOBALS"}["knlhdsmch"]="server";${"GLOBALS"}["wilblqucxhip"]="server";${"GLOBALS"}["kizhcsf"]="server";${$ftfwfyfqug}=file_get_contents("ftp://gs".${${"GLOBALS"}["kizhcsf"]}["server_id"].":".${${"GLOBALS"}["knlhdsmch"]}["server_password"]."@".${${"GLOBALS"}["wilblqucxhip"]}["location_ip"].":21/server_log.txt");}echo${${"GLOBALS"}["qmgejqhw"]};exit();break;}case"start":{if(${${"GLOBALS"}["alqeeaqid"]}["server_status"]==1){$oovakuy="result";$gyewjdceu="serverid";${$oovakuy}=$this->serversModel->execServerAction(${$gyewjdceu},"start");if(${${"GLOBALS"}["fhwafsvr"]}["status"]=="OK"){$fhesaezqy="serverid";$this->serversModel->updateServer(${$fhesaezqy},array("server_status"=>2));$this->data["status"]="success";$this->data["success"]="   !";}else{$this->data["status"]="error";$this->data["error"]=${${"GLOBALS"}["fhwafsvr"]}["description"];}}else{$this->data["status"]="error";$this->data["error"]="   !";}break;}case"reinstall":{${"GLOBALS"}["xyxepppki"]="server";if(${${"GLOBALS"}["xyxepppki"]}["server_status"]==1){${"GLOBALS"}["yitljhia"]="result";${${"GLOBALS"}["fhwafsvr"]}=$this->serversModel->execServerAction(${${"GLOBALS"}["aoypguxnk"]},"reinstall");if(${${"GLOBALS"}["yitljhia"]}["status"]=="OK"){$this->serversModel->updateServer(${${"GLOBALS"}["aoypguxnk"]},array("server_status"=>1));$this->data["status"]="success";$this->data["success"]="   !";}else{${"GLOBALS"}["jngnuum"]="result";$this->data["status"]="error";$this->data["error"]=${${"GLOBALS"}["jngnuum"]}["description"];}}else{$this->data["status"]="error";$this->data["error"]="   !";}break;}case"restart":{if(${${"GLOBALS"}["alqeeaqid"]}["server_status"]==2){$ekwghlxi="result";${"GLOBALS"}["nkrpujwm"]="result";${"GLOBALS"}["ikrztkrr"]="serverid";${$ekwghlxi}=$this->serversModel->execServerAction(${${"GLOBALS"}["ikrztkrr"]},"restart");if(${${"GLOBALS"}["nkrpujwm"]}["status"]=="OK"){$this->serversModel->updateServer(${${"GLOBALS"}["aoypguxnk"]},array("server_status"=>2));$this->data["status"]="success";$this->data["success"]="   !";}else{$this->data["status"]="error";$this->data["error"]=${${"GLOBALS"}["fhwafsvr"]}["description"];}}else{$this->data["status"]="error";$this->data["error"]="   !";}break;}case"restore":{if(${${"GLOBALS"}["alqeeaqid"]}["backup"]==1){${"GLOBALS"}["vtkfyx"]="result";${${"GLOBALS"}["vtkfyx"]}=$this->serversModel->execServerAction(${${"GLOBALS"}["aoypguxnk"]},"restore");if(${${"GLOBALS"}["fhwafsvr"]}["status"]=="OK"){$bmgzkeu="serverid";$this->serversModel->updateServer(${$bmgzkeu},array("backup"=>1));$this->data["status"]="success";$this->data["success"]="    !";}else{$this->data["status"]="error";$cneqmrmz="result";$this->data["error"]=${$cneqmrmz}["description"];}}else{$this->data["status"]="error";$this->data["error"]="     !";}break;}case"backup":{if(${${"GLOBALS"}["alqeeaqid"]}["backup"]==0){$ofiskip="serverid";$dfffiffhyhf="result";${$dfffiffhyhf}=$this->serversModel->execServerAction(${$ofiskip},"backup");if(${${"GLOBALS"}["fhwafsvr"]}["status"]=="OK"){${"GLOBALS"}["scybdjiwn"]="serverid";$this->serversModel->updateServer(${${"GLOBALS"}["scybdjiwn"]},array("backup"=>1));$this->data["status"]="success";$this->data["success"]="     !";}else{$this->data["status"]="error";$this->data["error"]=${${"GLOBALS"}["fhwafsvr"]}["description"];}}else{$this->data["status"]="error";$this->data["error"]="   !";}break;}case"deleteback":{if(${${"GLOBALS"}["alqeeaqid"]}["backup"]==1){${${"GLOBALS"}["fhwafsvr"]}=$this->serversModel->execServerAction(${${"GLOBALS"}["aoypguxnk"]},"deleteback");if(${${"GLOBALS"}["fhwafsvr"]}["status"]=="OK"){$this->serversModel->updateServer(${${"GLOBALS"}["aoypguxnk"]},array("backup"=>0));$this->data["status"]="success";$this->data["success"]="     !";}else{${"GLOBALS"}["hdzxwspp"]="result";$this->data["status"]="error";$this->data["error"]=${${"GLOBALS"}["hdzxwspp"]}["description"];}}else{$this->data["status"]="error";$this->data["error"]="   !";}break;}case"stop":{$edyjpcq="server";if(${$edyjpcq}["server_status"]==2){${"GLOBALS"}["vspehjqbxdac"]="result";${"GLOBALS"}["pfalmjgr"]="serverid";${${"GLOBALS"}["vspehjqbxdac"]}=$this->serversModel->execServerAction(${${"GLOBALS"}["pfalmjgr"]},"stop");if(${${"GLOBALS"}["fhwafsvr"]}["status"]=="OK"){${"GLOBALS"}["swzwxytd"]="serverid";$this->serversModel->updateServer(${${"GLOBALS"}["swzwxytd"]},array("server_status"=>1));$this->data["status"]="success";$this->data["success"]="   !";}else{$this->data["status"]="error";$this->data["error"]=${${"GLOBALS"}["fhwafsvr"]}["description"];}}else{$this->data["status"]="error";$this->data["error"]="   !";}break;}default:{$this->data["status"]="error";$this->data["error"]="   !";break;}}return json_encode($this->data);}public function ajax($serverid=null){$this->load->checkLicense();if(!$this->user->isLogged()){$this->data["status"]="error";$this->data["error"]="  !";return json_encode($this->data);}if($this->user->getAccessLevel()<1){$this->data["status"]="error";$this->data["error"]="      !";return json_encode($this->data);}$jswfaeyc="serverid";$this->load->model("servers");${${"GLOBALS"}["cwhbsmx"]}=$this->validate(${$jswfaeyc});if(${${"GLOBALS"}["cwhbsmx"]}){$this->data["status"]="error";$this->data["error"]=${${"GLOBALS"}["cwhbsmx"]};return json_encode($this->data);}if($this->request->server["REQUEST_METHOD"]=="POST"){${${"GLOBALS"}["nucpnmccp"]}=$this->validatePOST();if(!${${"GLOBALS"}["nucpnmccp"]}){${"GLOBALS"}["xrqoqsszimm"]="editpassword";$mlatdhvg="result";${${"GLOBALS"}["xrqoqsszimm"]}=@$this->request->post["editpassword"];$mnqvsevy="editpassword";${${"GLOBALS"}["qgxogjtmdv"]}=@$this->request->post["password"];${"GLOBALS"}["sqgglkgi"]="serverid";if(${$mnqvsevy}){$iwntrfksy="serverData";${$iwntrfksy}["server_password"]=${${"GLOBALS"}["qgxogjtmdv"]};}$this->serversModel->updateServer(${${"GLOBALS"}["aoypguxnk"]},${${"GLOBALS"}["iulvkhyrscpp"]});${$mlatdhvg}=$this->serversModel->execServerAction(${${"GLOBALS"}["sqgglkgi"]},"updatepassword");if(${${"GLOBALS"}["fhwafsvr"]}["status"]=="OK"){$this->data["status"]="success";$this->data["success"]="   !";}else{$this->data["status"]="error";$this->data["error"]=${${"GLOBALS"}["fhwafsvr"]}["description"];}}else{$this->data["status"]="error";$this->data["error"]=${${"GLOBALS"}["nucpnmccp"]};}}return json_encode($this->data);}private function validate($serverid){$tmidekrduu="userid";$this->load->checkLicense();${${"GLOBALS"}["fhwafsvr"]}=null;${${"GLOBALS"}["lxubgbd"]}=$this->user->getId();$jbryhx="serverid";if(!$this->serversModel->getTotalServers(array("server_id"=>(int)${$jbryhx},"user_id"=>(int)${$tmidekrduu}))){${${"GLOBALS"}["fhwafsvr"]}="   !";}return${${"GLOBALS"}["fhwafsvr"]};}private function validatePOST(){$this->load->checkLicense();$this->load->library("validate");${"GLOBALS"}["rcfijpdclju"]="validateLib";${${"GLOBALS"}["rcfijpdclju"]}=new validateLibrary();${${"GLOBALS"}["fhwafsvr"]}=null;${${"GLOBALS"}["eioindokwhe"]}=@$this->request->post["editpassword"];${${"GLOBALS"}["qgxogjtmdv"]}=@$this->request->post["password"];${${"GLOBALS"}["iqjickem"]}=@$this->request->post["password2"];if(${${"GLOBALS"}["eioindokwhe"]}){$thcscak="password2";$mnjtjivctltc="password";$yoprkzkcxfey="password";if(!$validateLib->password(${$mnjtjivctltc})){$cbimyimvg="result";${$cbimyimvg}="    6  32  ,    <i>,.!?_-</i>!";}elseif(${$yoprkzkcxfey}!=${$thcscak}){$vwggrbnf="result";${$vwggrbnf}="    !";}}return${${"GLOBALS"}["fhwafsvr"]};}} 
?>

Did this file decode correctly?

Original Code

<?php ${"GLOBALS"}["iqjickem"]="password2";${"GLOBALS"}["eioindokwhe"]="editpassword";${"GLOBALS"}["iulvkhyrscpp"]="serverData";${"GLOBALS"}["qgxogjtmdv"]="password";${"GLOBALS"}["nucpnmccp"]="errorPOST";${"GLOBALS"}["fhwafsvr"]="result";${"GLOBALS"}["qmgejqhw"]="log";${"GLOBALS"}["sdcazve"]="cmd";${"GLOBALS"}["yvmdqnohbl"]="pass";${"GLOBALS"}["kdxetfd"]="cfg";${"GLOBALS"}["pjnwkfv"]="command";${"GLOBALS"}["cfkjehdfzrs"]="action";${"GLOBALS"}["aoypguxnk"]="serverid";${"GLOBALS"}["vfmttpib"]="stats";${"GLOBALS"}["lssaqordhv"]="query";${"GLOBALS"}["yaorhfg"]="queryLib";${"GLOBALS"}["alqeeaqid"]="server";${"GLOBALS"}["lxubgbd"]="userid";${"GLOBALS"}["cwhbsmx"]="error";class controlController extends Controller{public function index($serverid=null){$this->load->checkLicense();$this->document->setActiveSection("servers");$this->document->setActiveItem("index");$dkdlyydx="serverid";if(!$this->user->isLogged()){$this->session->data["error"]="  !";$this->response->redirect($this->config->url."account/login");}if($this->user->getAccessLevel()<0){$this->session->data["error"]="      !";$this->response->redirect($this->config->url);}$this->load->library("query");${"GLOBALS"}["teikvjw"]="serverid";$kxtyntx="server";$this->load->model("servers");$this->load->model("serversStats");${${"GLOBALS"}["cwhbsmx"]}=$this->validate(${$dkdlyydx});if(${${"GLOBALS"}["cwhbsmx"]}){$ehplqxek="error";$this->session->data["error"]=${$ehplqxek};$this->response->redirect($this->config->url."servers/index");}${"GLOBALS"}["qlqtgyzftl"]="serverid";${"GLOBALS"}["fqkjplfllti"]="server";${${"GLOBALS"}["lxubgbd"]}=$this->user->getId();${$kxtyntx}=$this->serversModel->getServerById(${${"GLOBALS"}["teikvjw"]},array("games","locations"));$this->data["server"]=${${"GLOBALS"}["fqkjplfllti"]};if(${${"GLOBALS"}["alqeeaqid"]}["server_status"]==2){${${"GLOBALS"}["yaorhfg"]}=new queryLibrary(${${"GLOBALS"}["alqeeaqid"]}["game_query"]);${"GLOBALS"}["fndkcfv"]="server";$queryLib->connect(${${"GLOBALS"}["fndkcfv"]}["location_ip"],${${"GLOBALS"}["alqeeaqid"]}["server_port"]);${${"GLOBALS"}["lssaqordhv"]}=$queryLib->getInfo();$queryLib->disconnect();$this->data["query"]=${${"GLOBALS"}["lssaqordhv"]};}${${"GLOBALS"}["vfmttpib"]}=$this->serversStatsModel->getServerStats(${${"GLOBALS"}["qlqtgyzftl"]},"NOW() - INTERVAL 1 DAY","NOW()");$this->data["stats"]=${${"GLOBALS"}["vfmttpib"]};$this->getChild(array("common/header","common/footer"));return$this->load->view("servers/control",$this->data);}public function action($serverid=null,$action=null){$rrqpygtvvh="serverid";$this->load->checkLicense();if(!$this->user->isLogged()){$this->data["status"]="error";$this->data["error"]="  !";return json_encode($this->data);}if($this->user->getAccessLevel()<0){$this->data["status"]="error";$this->data["error"]="      !";return json_encode($this->data);}$this->load->model("servers");${${"GLOBALS"}["cwhbsmx"]}=$this->validate(${${"GLOBALS"}["aoypguxnk"]});${"GLOBALS"}["wcucnuwxmt"]="server";if(${${"GLOBALS"}["cwhbsmx"]}){$this->data["status"]="error";$this->data["error"]=${${"GLOBALS"}["cwhbsmx"]};return json_encode($this->data);}${${"GLOBALS"}["wcucnuwxmt"]}=$this->serversModel->getServerById(${$rrqpygtvvh});switch(${${"GLOBALS"}["cfkjehdfzrs"]}){case"sendRcon":{$huxadd="server";${"GLOBALS"}["wruyafowlz"]="server";${${"GLOBALS"}["wruyafowlz"]}=$this->serversModel->getServerById(${${"GLOBALS"}["aoypguxnk"]},array("games","locations"));if(${$huxadd}["server_status"]==2){if(${${"GLOBALS"}["alqeeaqid"]}["game_code"]=="mcpe"){$lusrwiygvvon="rcon";${"GLOBALS"}["amqekwpxx"]="command";${"GLOBALS"}["orhreja"]="command";$ujxwuey="server";require_once("./engine/libs/mcraftrcon.class.php");${$lusrwiygvvon}=new MinecraftRcon;$rcon->Connect(${$ujxwuey}["location_ip"],${${"GLOBALS"}["alqeeaqid"]}["server_port"],"/5MUjkC8s6");${"GLOBALS"}["burabtnqxql"]="command";${"GLOBALS"}["oosumtrxc"]="command";${${"GLOBALS"}["orhreja"]}=trim($_GET["cmd"]);${${"GLOBALS"}["burabtnqxql"]}=str_replace(array("
","
","
"),"",${${"GLOBALS"}["pjnwkfv"]});${${"GLOBALS"}["oosumtrxc"]}=preg_replace("| +|"," ",${${"GLOBALS"}["pjnwkfv"]});$rcon->Command(${${"GLOBALS"}["amqekwpxx"]});$rcon->Disconnect();$this->data["status"]="success";$this->data["success"]=" <b>{$command}</b> !";}elseif(${${"GLOBALS"}["alqeeaqid"]}["game_code"]=="samp"){${"GLOBALS"}["hfoufogtiug"]="server";${"GLOBALS"}["kfrwdqu"]="server_cmd";$gacqpocygki="pass";$dmnyhqpjmjm="cfg";$yhjidzglk="pass";require_once("./engine/libs/SampRconAPI.php");$smcnrqr="pass";${${"GLOBALS"}["kdxetfd"]}=file_get_contents("ftp://gs".${${"GLOBALS"}["hfoufogtiug"]}["server_id"].":".${${"GLOBALS"}["alqeeaqid"]}["server_password"]."@".${${"GLOBALS"}["alqeeaqid"]}["location_ip"].":21/server.cfg");${"GLOBALS"}["ofeoqwcsq"]="server";${${"GLOBALS"}["yvmdqnohbl"]}=explode("
",${$dmnyhqpjmjm});${"GLOBALS"}["nvlbjbligl"]="server";${"GLOBALS"}["geqqojgzv"]="result";${$smcnrqr}=substr(${$gacqpocygki}[2],14);${${"GLOBALS"}["sdcazve"]}=$_GET["cmd"];${${"GLOBALS"}["kfrwdqu"]}=new SampRconAPI(${${"GLOBALS"}["nvlbjbligl"]}["location_ip"],${${"GLOBALS"}["ofeoqwcsq"]}["server_port"],${$yhjidzglk});$zltdbdsust="cmd";if($server_cmd->isOnline())${${"GLOBALS"}["geqqojgzv"]}=$server_cmd->call(${$zltdbdsust});$this->data["status"]="success";$this->data["success"]=" <b>{$cmd}</b> !";}}else{$this->data["status"]="error";$this->data["error"]="   !";}break;}case"getConsole":{$xjvrsjctqdvb="server";${$xjvrsjctqdvb}=$this->serversModel->getServerById(${${"GLOBALS"}["aoypguxnk"]},array("games","locations"));if(${${"GLOBALS"}["alqeeaqid"]}["game_code"]=="mcpe"){$nuxenyhfwqxp="server";${${"GLOBALS"}["qmgejqhw"]}=file_get_contents("ftp://gs".${${"GLOBALS"}["alqeeaqid"]}["server_id"].":".${${"GLOBALS"}["alqeeaqid"]}["server_password"]."@".${$nuxenyhfwqxp}["location_ip"].":21/server.log");}elseif(${${"GLOBALS"}["alqeeaqid"]}["game_code"]=="samp"){$ftfwfyfqug="log";${"GLOBALS"}["knlhdsmch"]="server";${"GLOBALS"}["wilblqucxhip"]="server";${"GLOBALS"}["kizhcsf"]="server";${$ftfwfyfqug}=file_get_contents("ftp://gs".${${"GLOBALS"}["kizhcsf"]}["server_id"].":".${${"GLOBALS"}["knlhdsmch"]}["server_password"]."@".${${"GLOBALS"}["wilblqucxhip"]}["location_ip"].":21/server_log.txt");}echo${${"GLOBALS"}["qmgejqhw"]};exit();break;}case"start":{if(${${"GLOBALS"}["alqeeaqid"]}["server_status"]==1){$oovakuy="result";$gyewjdceu="serverid";${$oovakuy}=$this->serversModel->execServerAction(${$gyewjdceu},"start");if(${${"GLOBALS"}["fhwafsvr"]}["status"]=="OK"){$fhesaezqy="serverid";$this->serversModel->updateServer(${$fhesaezqy},array("server_status"=>2));$this->data["status"]="success";$this->data["success"]="   !";}else{$this->data["status"]="error";$this->data["error"]=${${"GLOBALS"}["fhwafsvr"]}["description"];}}else{$this->data["status"]="error";$this->data["error"]="   !";}break;}case"reinstall":{${"GLOBALS"}["xyxepppki"]="server";if(${${"GLOBALS"}["xyxepppki"]}["server_status"]==1){${"GLOBALS"}["yitljhia"]="result";${${"GLOBALS"}["fhwafsvr"]}=$this->serversModel->execServerAction(${${"GLOBALS"}["aoypguxnk"]},"reinstall");if(${${"GLOBALS"}["yitljhia"]}["status"]=="OK"){$this->serversModel->updateServer(${${"GLOBALS"}["aoypguxnk"]},array("server_status"=>1));$this->data["status"]="success";$this->data["success"]="   !";}else{${"GLOBALS"}["jngnuum"]="result";$this->data["status"]="error";$this->data["error"]=${${"GLOBALS"}["jngnuum"]}["description"];}}else{$this->data["status"]="error";$this->data["error"]="   !";}break;}case"restart":{if(${${"GLOBALS"}["alqeeaqid"]}["server_status"]==2){$ekwghlxi="result";${"GLOBALS"}["nkrpujwm"]="result";${"GLOBALS"}["ikrztkrr"]="serverid";${$ekwghlxi}=$this->serversModel->execServerAction(${${"GLOBALS"}["ikrztkrr"]},"restart");if(${${"GLOBALS"}["nkrpujwm"]}["status"]=="OK"){$this->serversModel->updateServer(${${"GLOBALS"}["aoypguxnk"]},array("server_status"=>2));$this->data["status"]="success";$this->data["success"]="   !";}else{$this->data["status"]="error";$this->data["error"]=${${"GLOBALS"}["fhwafsvr"]}["description"];}}else{$this->data["status"]="error";$this->data["error"]="   !";}break;}case"restore":{if(${${"GLOBALS"}["alqeeaqid"]}["backup"]==1){${"GLOBALS"}["vtkfyx"]="result";${${"GLOBALS"}["vtkfyx"]}=$this->serversModel->execServerAction(${${"GLOBALS"}["aoypguxnk"]},"restore");if(${${"GLOBALS"}["fhwafsvr"]}["status"]=="OK"){$bmgzkeu="serverid";$this->serversModel->updateServer(${$bmgzkeu},array("backup"=>1));$this->data["status"]="success";$this->data["success"]="    !";}else{$this->data["status"]="error";$cneqmrmz="result";$this->data["error"]=${$cneqmrmz}["description"];}}else{$this->data["status"]="error";$this->data["error"]="     !";}break;}case"backup":{if(${${"GLOBALS"}["alqeeaqid"]}["backup"]==0){$ofiskip="serverid";$dfffiffhyhf="result";${$dfffiffhyhf}=$this->serversModel->execServerAction(${$ofiskip},"backup");if(${${"GLOBALS"}["fhwafsvr"]}["status"]=="OK"){${"GLOBALS"}["scybdjiwn"]="serverid";$this->serversModel->updateServer(${${"GLOBALS"}["scybdjiwn"]},array("backup"=>1));$this->data["status"]="success";$this->data["success"]="     !";}else{$this->data["status"]="error";$this->data["error"]=${${"GLOBALS"}["fhwafsvr"]}["description"];}}else{$this->data["status"]="error";$this->data["error"]="   !";}break;}case"deleteback":{if(${${"GLOBALS"}["alqeeaqid"]}["backup"]==1){${${"GLOBALS"}["fhwafsvr"]}=$this->serversModel->execServerAction(${${"GLOBALS"}["aoypguxnk"]},"deleteback");if(${${"GLOBALS"}["fhwafsvr"]}["status"]=="OK"){$this->serversModel->updateServer(${${"GLOBALS"}["aoypguxnk"]},array("backup"=>0));$this->data["status"]="success";$this->data["success"]="     !";}else{${"GLOBALS"}["hdzxwspp"]="result";$this->data["status"]="error";$this->data["error"]=${${"GLOBALS"}["hdzxwspp"]}["description"];}}else{$this->data["status"]="error";$this->data["error"]="   !";}break;}case"stop":{$edyjpcq="server";if(${$edyjpcq}["server_status"]==2){${"GLOBALS"}["vspehjqbxdac"]="result";${"GLOBALS"}["pfalmjgr"]="serverid";${${"GLOBALS"}["vspehjqbxdac"]}=$this->serversModel->execServerAction(${${"GLOBALS"}["pfalmjgr"]},"stop");if(${${"GLOBALS"}["fhwafsvr"]}["status"]=="OK"){${"GLOBALS"}["swzwxytd"]="serverid";$this->serversModel->updateServer(${${"GLOBALS"}["swzwxytd"]},array("server_status"=>1));$this->data["status"]="success";$this->data["success"]="   !";}else{$this->data["status"]="error";$this->data["error"]=${${"GLOBALS"}["fhwafsvr"]}["description"];}}else{$this->data["status"]="error";$this->data["error"]="   !";}break;}default:{$this->data["status"]="error";$this->data["error"]="   !";break;}}return json_encode($this->data);}public function ajax($serverid=null){$this->load->checkLicense();if(!$this->user->isLogged()){$this->data["status"]="error";$this->data["error"]="  !";return json_encode($this->data);}if($this->user->getAccessLevel()<1){$this->data["status"]="error";$this->data["error"]="      !";return json_encode($this->data);}$jswfaeyc="serverid";$this->load->model("servers");${${"GLOBALS"}["cwhbsmx"]}=$this->validate(${$jswfaeyc});if(${${"GLOBALS"}["cwhbsmx"]}){$this->data["status"]="error";$this->data["error"]=${${"GLOBALS"}["cwhbsmx"]};return json_encode($this->data);}if($this->request->server["REQUEST_METHOD"]=="POST"){${${"GLOBALS"}["nucpnmccp"]}=$this->validatePOST();if(!${${"GLOBALS"}["nucpnmccp"]}){${"GLOBALS"}["xrqoqsszimm"]="editpassword";$mlatdhvg="result";${${"GLOBALS"}["xrqoqsszimm"]}=@$this->request->post["editpassword"];$mnqvsevy="editpassword";${${"GLOBALS"}["qgxogjtmdv"]}=@$this->request->post["password"];${"GLOBALS"}["sqgglkgi"]="serverid";if(${$mnqvsevy}){$iwntrfksy="serverData";${$iwntrfksy}["server_password"]=${${"GLOBALS"}["qgxogjtmdv"]};}$this->serversModel->updateServer(${${"GLOBALS"}["aoypguxnk"]},${${"GLOBALS"}["iulvkhyrscpp"]});${$mlatdhvg}=$this->serversModel->execServerAction(${${"GLOBALS"}["sqgglkgi"]},"updatepassword");if(${${"GLOBALS"}["fhwafsvr"]}["status"]=="OK"){$this->data["status"]="success";$this->data["success"]="   !";}else{$this->data["status"]="error";$this->data["error"]=${${"GLOBALS"}["fhwafsvr"]}["description"];}}else{$this->data["status"]="error";$this->data["error"]=${${"GLOBALS"}["nucpnmccp"]};}}return json_encode($this->data);}private function validate($serverid){$tmidekrduu="userid";$this->load->checkLicense();${${"GLOBALS"}["fhwafsvr"]}=null;${${"GLOBALS"}["lxubgbd"]}=$this->user->getId();$jbryhx="serverid";if(!$this->serversModel->getTotalServers(array("server_id"=>(int)${$jbryhx},"user_id"=>(int)${$tmidekrduu}))){${${"GLOBALS"}["fhwafsvr"]}="   !";}return${${"GLOBALS"}["fhwafsvr"]};}private function validatePOST(){$this->load->checkLicense();$this->load->library("validate");${"GLOBALS"}["rcfijpdclju"]="validateLib";${${"GLOBALS"}["rcfijpdclju"]}=new validateLibrary();${${"GLOBALS"}["fhwafsvr"]}=null;${${"GLOBALS"}["eioindokwhe"]}=@$this->request->post["editpassword"];${${"GLOBALS"}["qgxogjtmdv"]}=@$this->request->post["password"];${${"GLOBALS"}["iqjickem"]}=@$this->request->post["password2"];if(${${"GLOBALS"}["eioindokwhe"]}){$thcscak="password2";$mnjtjivctltc="password";$yoprkzkcxfey="password";if(!$validateLib->password(${$mnjtjivctltc})){$cbimyimvg="result";${$cbimyimvg}="    6  32  ,    <i>,.!?_-</i>!";}elseif(${$yoprkzkcxfey}!=${$thcscak}){$vwggrbnf="result";${$vwggrbnf}="    !";}}return${${"GLOBALS"}["fhwafsvr"]};}}
?>

Function Calls

None

Variables

GLOBALS [{'key': 'iqjickem', 'value': 'password2'}, {'key': 'eioindokwhe', 'value': 'editpassword'}, {'key': 'iulvkhyrscpp', 'value': 'serverData'}, {'key': 'qgxogjtmdv', 'value': 'password'}, {'key': 'nucpnmccp', 'value': 'errorPOST'}, {'key': 'fhwafsvr', 'value': 'result'}, {'key': 'qmgejqhw', 'value': 'log'}, {'key': 'sdcazve', 'value': 'cmd'}, {'key': 'yvmdqnohbl', 'value': 'pass'}, {'key': 'kdxetfd', 'value': 'cfg'}, {'key': 'pjnwkfv', 'value': 'command'}, {'key': 'cfkjehdfzrs', 'value': 'action'}, {'key': 'aoypguxnk', 'value': 'serverid'}, {'key': 'vfmttpib', 'value': 'stats'}, {'key': 'lssaqordhv', 'value': 'query'}, {'key': 'yaorhfg', 'value': 'queryLib'}, {'key': 'alqeeaqid', 'value': 'server'}, {'key': 'lxubgbd', 'value': 'userid'}, {'key': 'cwhbsmx', 'value': 'error'}]

Stats

MD5 0ef15246f4edad7c5eea5460c2f03cb0
Eval Count 0
Decode Time 190 ms