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 ${"GL\x4f\x42A\x4cS"}["\x6c\x6e\x74\x71\x65\x6c\x70"] = "\x70\x61\x67es"; ${"\x47\x..
Decoded Output download
<?php ${"GLOBALS"}["lntqelp"] = "pages";
${"GLOBALS"}["ggueoc"] = "page_title";
$wwdmpjgvsy = "is_online";
${"GLOBALS"}["lcgsioihtzl"] = "token";
${"GLOBALS"}["nhbhxqbbqqu"] = "page";
${"GLOBALS"}["misoeqmnjeju"] = "pages";
${"GLOBALS"}["suhrnuan"] = "valid";
${"GLOBALS"}["wopvgazdvrl"] = "main_domain";
${"GLOBALS"}["yonjjml"] = "is_online";
${"GLOBALS"}["yvjyxlfgpit"] = "data";
${"GLOBALS"}["nphmhnvgwt"] = "config";
define("BASEPATH", true);
require("system/init.php");
$jqgjjkmq = "config";
if (${$jqgjjkmq}["force_secure"] == 1 && !isset($_SERVER["HTTPS"]) || ${${"GLOBALS"}["nphmhnvgwt"]}["force_secure"] == 1 && $_SERVER["HTTPS"] != "on") {
header("Location: https://" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
exit;
}
$nkqmdldhm = "pages";
if (isset($_GET["logout"])) {
if (isset($_COOKIE["SesToken"])) {
unset($_COOKIE["SesToken"]);
setcookie("SesToken", "", time(), "/");
}
$db->Query("DELETE FROM `users_sessions` WHERE `uid`='" . ${${"GLOBALS"}["yvjyxlfgpit"]}["id"] . "'");
${"GLOBALS"}["axdnbxqv"] = "config";
if (isset($_COOKIE["SesHashKey"])) {
unset($_COOKIE["SesHashKey"]);
setcookie("SesHashKey", "", time(), "/");
}
session_destroy();
redirect(${${"GLOBALS"}["axdnbxqv"]}["secure_url"]);
}
if (!${${"GLOBALS"}["yonjjml"]} && isset($_SERVER["HTTP_REFERER"]) && !isset($_COOKIE["RefSource"])) {
${${"GLOBALS"}["wopvgazdvrl"]} = parse_url(${${"GLOBALS"}["nphmhnvgwt"]}["site_url"]);
$http_referer = parse_url($_SERVER["HTTP_REFERER"]);
if (isset($http_referer["host"]) && $http_referer["host"] != ${${"GLOBALS"}["wopvgazdvrl"]}["host"]) {
setcookie("RefSource", $db->EscapeString($_SERVER["HTTP_REFERER"]), time() + 1800);
}
}
if (file_exists(BASE_PATH . "/system/copyright.php")) {
include(BASE_PATH . "/system/copyright.php");
}
ob_start();
${$nkqmdldhm} = array("contact" => array(1, 2, "pages/contact", "Contact Us"), "offers" => array(1, 1, "pages/offers", "Earn Coins"), "activities" => array(1, 1, "pages/activities", "Activities"), "completed" => array(1, 1, "pages/completed", "Completed Offers"), "rejected" => array(1, 1, "pages/rejected", "Rejected Offers"), "canceled" => array(1, 1, "pages/canceled", "Canceled Offers"), "tos" => array(1, 2, "pages/tos", "Terms & Conditions"), "privacy" => array(1, 2, "pages/privacy", "Privacy Policy"), "account" => array(1, 1, "pages/account", "Edit Account"), "withdraw" => array(1, 1, "pages/withdraw", "Withdraw"), "register" => array(1, 0, "register", "Register", 1), "login" => array(1, 0, "login", "Login", 1));
${${"GLOBALS"}["suhrnuan"]} = false;
if (isset($_GET["page"]) && ${${"GLOBALS"}["misoeqmnjeju"]}[$_GET["page"]][0] == 1) {
${"GLOBALS"}["zwkypy"] = "is_online";
${"GLOBALS"}["kgrifc"] = "pages";
$qrhmtcinmy = "pages";
if (${${"GLOBALS"}["yonjjml"]} && ${${"GLOBALS"}["kgrifc"]}[$_GET["page"]][1] == 1) {
$cscgvta = "valid";
${$cscgvta} = true;
} elseif (!${${"GLOBALS"}["zwkypy"]} && ${${"GLOBALS"}["misoeqmnjeju"]}[$_GET["page"]][1] == 0) {
${${"GLOBALS"}["suhrnuan"]} = true;
} elseif (${$qrhmtcinmy}[$_GET["page"]][1] == 2) {
${${"GLOBALS"}["suhrnuan"]} = true;
}
}
$lrwycvtlz = "valid";
${${"GLOBALS"}["nhbhxqbbqqu"]} = (${${"GLOBALS"}["yonjjml"]} ? "pages/dashboard" : "home");
${${"GLOBALS"}["ggueoc"]} = "";
if (${$lrwycvtlz}) {
${"GLOBALS"}["jlbcrdfulhd"] = "config";
${"GLOBALS"}["cjfxscwl"] = "pages";
if (file_exists(BASE_PATH . "/template/" . ${${"GLOBALS"}["jlbcrdfulhd"]}["theme"] . "/" . ${${"GLOBALS"}["cjfxscwl"]}[$_GET["page"]][2] . ".php")) {
$evrjqpegh = "pages";
$lwmmuxwarl = "pages";
${${"GLOBALS"}["nhbhxqbbqqu"]} = ${$evrjqpegh}[$_GET["page"]][2];
${${"GLOBALS"}["ggueoc"]} = ${$lwmmuxwarl}[$_GET["page"]][3];
}
}
${${"GLOBALS"}["lcgsioihtzl"]} = GenGlobalToken();
if (${${"GLOBALS"}["yonjjml"]} || isset($_GET["page"]) && ${${"GLOBALS"}["misoeqmnjeju"]}[$_GET["page"]][1] == 2) {
$owyfxe = "config";
require(BASE_PATH . "/template/" . ${$owyfxe}["theme"] . "/common/header.php");
}
require(BASE_PATH . "/template/" . ${${"GLOBALS"}["nphmhnvgwt"]}["theme"] . "/" . ${${"GLOBALS"}["nhbhxqbbqqu"]} . ".php");
if (${$wwdmpjgvsy} || isset($_GET["page"]) && ${${"GLOBALS"}["lntqelp"]}[$_GET["page"]][1] == 2) {
${"GLOBALS"}["rjrskw"] = "config";
require(BASE_PATH . "/template/" . ${${"GLOBALS"}["rjrskw"]}["theme"] . "/common/footer.php");
}
ob_end_flush();
?>
Did this file decode correctly?
Original Code
<?php ${"GL\x4f\x42A\x4cS"}["\x6c\x6e\x74\x71\x65\x6c\x70"] = "\x70\x61\x67es";
${"\x47\x4c\x4fB\x41\x4cS"}["g\x67ue\x6f\x63"] = "\x70\x61\x67\x65_t\x69t\x6c\x65";
$wwdmpjgvsy = "\x69\x73\x5f\x6f\x6e\x6c\x69\x6e\x65";
${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6cc\x67\x73\x69\x6f\x69ht\x7a\x6c"] = "\x74oke\x6e";
${"\x47L\x4f\x42A\x4c\x53"}["\x6e\x68b\x68x\x71bb\x71\x71\x75"] = "\x70\x61ge";
${"\x47\x4cO\x42\x41\x4c\x53"}["\x6di\x73o\x65\x71\x6dn\x6a\x65\x6au"] = "\x70\x61\x67es";
${"G\x4c\x4fB\x41LS"}["su\x68\x72n\x75\x61\x6e"] = "\x76a\x6ci\x64";
${"\x47LOB\x41LS"}["\x77\x6fpv\x67azdvr\x6c"] = "mai\x6e_d\x6fm\x61\x69\x6e";
${"GL\x4f\x42\x41LS"}["\x79\x6f\x6ej\x6a\x6d\x6c"] = "\x69\x73_\x6fnli\x6e\x65";
${"\x47LOBA\x4c\x53"}["y\x76jyx\x6c\x66\x67pi\x74"] = "\x64a\x74\x61";
${"G\x4c\x4f\x42\x41\x4c\x53"}["n\x70\x68m\x68\x6e\x76\x67w\x74"] = "\x63\x6fnfig";
define("B\x41\x53\x45\x50A\x54H", true);
require("s\x79s\x74em/i\x6ei\x74.\x70\x68p");
$jqgjjkmq = "con\x66\x69\x67";
if (${$jqgjjkmq}["\x66or\x63\x65\x5f\x73\x65\x63ur\x65"] == 1 && !isset($_SERVER["\x48\x54T\x50S"]) || ${${"\x47L\x4fB\x41\x4c\x53"}["\x6e\x70\x68\x6dh\x6e\x76\x67w\x74"]}["f\x6fr\x63e_\x73e\x63\x75\x72\x65"] == 1 && $_SERVER["H\x54\x54\x50S"] != "o\x6e") {
header("Loca\x74\x69\x6f\x6e:\x20ht\x74ps://" . $_SERVER["\x48\x54TP_HOS\x54"] . $_SERVER["\x52E\x51\x55E\x53\x54_\x55RI"]);
exit;
}
$nkqmdldhm = "p\x61\x67\x65s";
if (isset($_GET["l\x6fg\x6fut"])) {
if (isset($_COOKIE["S\x65\x73\x54o\x6ben"])) {
unset($_COOKIE["\x53es\x54\x6fke\x6e"]);
setcookie("Se\x73\x54oke\x6e", "", time(), "/");
}
$db->Query("DELETE\x20F\x52O\x4d \x60\x75se\x72s_\x73ess\x69\x6f\x6es`\x20WHE\x52E \x60uid`\x3d'" . ${${"G\x4cO\x42\x41\x4c\x53"}["\x79vj\x79\x78l\x66g\x70\x69\x74"]}["i\x64"] . "\x27");
${"\x47\x4cO\x42AL\x53"}["\x61\x78d\x6e\x62\x78q\x76"] = "\x63\x6f\x6ef\x69g";
if (isset($_COOKIE["S\x65\x73H\x61\x73\x68\x4b\x65\x79"])) {
unset($_COOKIE["Se\x73\x48\x61shK\x65\x79"]);
setcookie("\x53\x65s\x48ashK\x65y", "", time(), "/");
}
session_destroy();
redirect(${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x61x\x64n\x62\x78q\x76"]}["se\x63ur\x65\x5f\x75r\x6c"]);
}
if (!${${"\x47LO\x42\x41\x4c\x53"}["\x79o\x6ejjml"]} && isset($_SERVER["\x48T\x54\x50_\x52E\x46ER\x45\x52"]) && !isset($_COOKIE["\x52e\x66Sou\x72c\x65"])) {
${${"\x47\x4c\x4fB\x41\x4c\x53"}["wopvgaz\x64\x76\x72\x6c"]} = parse_url(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6ephmh\x6e\x76\x67wt"]}["\x73\x69\x74\x65_\x75\x72l"]);
$http_referer = parse_url($_SERVER["HT\x54\x50_RE\x46\x45RER"]);
if (isset($http_referer["\x68o\x73\x74"]) && $http_referer["\x68os\x74"] != ${${"\x47LO\x42A\x4cS"}["\x77\x6f\x70v\x67\x61\x7ad\x76r\x6c"]}["h\x6f\x73\x74"]) {
setcookie("\x52efS\x6fu\x72\x63\x65", $db->EscapeString($_SERVER["\x48\x54T\x50\x5fREFERE\x52"]), time() + 1800);
}
}
if (file_exists(BASE_PATH . "/sys\x74\x65\x6d/c\x6f\x70yrigh\x74\x2ep\x68p")) {
include(BASE_PATH . "/sys\x74e\x6d/\x63opyr\x69\x67\x68t.p\x68p");
}
ob_start();
${$nkqmdldhm} = array("\x63\x6fnt\x61\x63t" => array(1, 2, "\x70ages/con\x74a\x63\x74", "Cont\x61\x63t \x55s"), "\x6f\x66f\x65rs" => array(1, 1, "\x70ag\x65\x73/off\x65rs", "\x45a\x72\x6e \x43\x6fi\x6es"), "\x61c\x74iv\x69t\x69e\x73" => array(1, 1, "\x70a\x67e\x73/\x61ctiv\x69\x74ies", "\x41c\x74\x69\x76itie\x73"), "comple\x74e\x64" => array(1, 1, "pag\x65\x73/c\x6f\x6d\x70\x6c\x65t\x65d", "\x43omple\x74e\x64\x20O\x66fe\x72s"), "\x72\x65\x6a\x65\x63te\x64" => array(1, 1, "\x70\x61\x67\x65s/rej\x65ct\x65d", "\x52e\x6aec\x74\x65d\x20Offers"), "c\x61\x6e\x63el\x65\x64" => array(1, 1, "p\x61g\x65s/c\x61\x6e\x63e\x6c\x65\x64", "Ca\x6ec\x65\x6ce\x64 O\x66fe\x72s"), "\x74o\x73" => array(1, 2, "pa\x67e\x73/\x74os", "T\x65r\x6ds\x20\x26 \x43o\x6e\x64\x69\x74\x69on\x73"), "\x70\x72\x69v\x61\x63y" => array(1, 2, "\x70a\x67e\x73/\x70r\x69va\x63\x79", "\x50\x72i\x76acy Pol\x69c\x79"), "ac\x63o\x75\x6et" => array(1, 1, "\x70a\x67\x65\x73/\x61\x63c\x6f\x75\x6et", "Edi\x74\x20A\x63\x63\x6f\x75\x6et"), "withd\x72\x61\x77" => array(1, 1, "pag\x65s/\x77ith\x64\x72aw", "W\x69th\x64r\x61\x77"), "\x72\x65\x67\x69\x73\x74er" => array(1, 0, "re\x67\x69ster", "Regist\x65\x72", 1), "log\x69\x6e" => array(1, 0, "l\x6f\x67in", "Lo\x67in", 1));
${${"\x47\x4cOBAL\x53"}["\x73\x75h\x72\x6e\x75\x61n"]} = false;
if (isset($_GET["\x70\x61\x67\x65"]) && ${${"\x47\x4cOBALS"}["m\x69\x73\x6f\x65\x71m\x6e\x6a\x65\x6a\x75"]}[$_GET["p\x61ge"]][0] == 1) {
${"\x47\x4cOBA\x4c\x53"}["\x7a\x77\x6b\x79\x70\x79"] = "\x69\x73\x5fo\x6e\x6c\x69\x6e\x65";
${"\x47\x4cOBA\x4c\x53"}["k\x67rif\x63"] = "p\x61\x67es";
$qrhmtcinmy = "\x70a\x67\x65s";
if (${${"\x47\x4cO\x42AL\x53"}["\x79\x6f\x6e\x6a\x6a\x6d\x6c"]} && ${${"\x47\x4c\x4f\x42A\x4cS"}["k\x67rif\x63"]}[$_GET["pa\x67e"]][1] == 1) {
$cscgvta = "va\x6c\x69\x64";
${$cscgvta} = true;
} elseif (!${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x7awk\x79\x70\x79"]} && ${${"\x47\x4c\x4f\x42A\x4cS"}["\x6d\x69\x73\x6fe\x71\x6d\x6ejej\x75"]}[$_GET["pa\x67\x65"]][1] == 0) {
${${"\x47L\x4f\x42A\x4c\x53"}["su\x68\x72\x6eua\x6e"]} = true;
} elseif (${$qrhmtcinmy}[$_GET["\x70a\x67e"]][1] == 2) {
${${"\x47LO\x42\x41LS"}["\x73\x75\x68\x72\x6e\x75\x61\x6e"]} = true;
}
}
$lrwycvtlz = "\x76\x61li\x64";
${${"\x47L\x4f\x42A\x4cS"}["\x6ehbh\x78q\x62\x62\x71\x71u"]} = (${${"G\x4cO\x42\x41\x4c\x53"}["y\x6f\x6e\x6a\x6a\x6dl"]} ? "p\x61ges/d\x61sh\x62\x6fard" : "\x68\x6f\x6de");
${${"\x47L\x4f\x42\x41\x4c\x53"}["\x67\x67\x75e\x6f\x63"]} = "";
if (${$lrwycvtlz}) {
${"\x47\x4cO\x42A\x4cS"}["\x6a\x6c\x62\x63\x72df\x75\x6c\x68\x64"] = "\x63onf\x69g";
${"\x47\x4cO\x42A\x4c\x53"}["c\x6a\x66\x78sc\x77l"] = "p\x61\x67e\x73";
if (file_exists(BASE_PATH . "/\x74\x65mp\x6c\x61\x74e/" . ${${"GL\x4f\x42\x41\x4cS"}["\x6alb\x63\x72\x64\x66u\x6c\x68\x64"]}["t\x68\x65m\x65"] . "/" . ${${"\x47\x4c\x4f\x42\x41L\x53"}["\x63\x6a\x66xs\x63\x77\x6c"]}[$_GET["\x70\x61g\x65"]][2] . "\x2e\x70hp")) {
$evrjqpegh = "\x70ag\x65\x73";
$lwmmuxwarl = "\x70\x61g\x65\x73";
${${"\x47\x4cO\x42\x41\x4c\x53"}["\x6eh\x62h\x78\x71\x62\x62\x71\x71u"]} = ${$evrjqpegh}[$_GET["pa\x67\x65"]][2];
${${"GLO\x42\x41\x4cS"}["\x67g\x75\x65\x6f\x63"]} = ${$lwmmuxwarl}[$_GET["\x70\x61ge"]][3];
}
}
${${"\x47L\x4fB\x41\x4c\x53"}["l\x63gs\x69\x6f\x69\x68\x74\x7a\x6c"]} = GenGlobalToken();
if (${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["y\x6fn\x6a\x6a\x6d\x6c"]} || isset($_GET["\x70a\x67\x65"]) && ${${"\x47\x4cO\x42A\x4c\x53"}["mi\x73\x6f\x65qm\x6e\x6ae\x6au"]}[$_GET["pa\x67\x65"]][1] == 2) {
$owyfxe = "c\x6f\x6ef\x69\x67";
require(BASE_PATH . "/\x74e\x6d\x70l\x61t\x65/" . ${$owyfxe}["\x74h\x65me"] . "/com\x6don/\x68e\x61d\x65r.p\x68\x70");
}
require(BASE_PATH . "/t\x65m\x70l\x61te/" . ${${"\x47L\x4f\x42A\x4c\x53"}["\x6e\x70\x68\x6d\x68\x6evgw\x74"]}["th\x65me"] . "/" . ${${"\x47L\x4f\x42A\x4c\x53"}["nhb\x68\x78\x71b\x62\x71qu"]} . ".\x70h\x70");
if (${$wwdmpjgvsy} || isset($_GET["page"]) && ${${"\x47\x4cO\x42\x41\x4c\x53"}["\x6c\x6etqel\x70"]}[$_GET["pag\x65"]][1] == 2) {
${"\x47\x4cO\x42A\x4c\x53"}["rj\x72\x73kw"] = "\x63\x6f\x6e\x66\x69\x67";
require(BASE_PATH . "/\x74\x65m\x70late/" . ${${"\x47L\x4f\x42\x41\x4c\x53"}["\x72j\x72\x73\x6b\x77"]}["\x74heme"] . "/co\x6d\x6d\x6f\x6e/\x66\x6f\x6fter\x2ephp");
}
ob_end_flush();
?>
Function Calls
define | 1 |
Stats
MD5 | 2e6de37aeb7e46f9d4026572371b16e5 |
Eval Count | 0 |
Decode Time | 118 ms |