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 namespace historical; require_once getcwd() . "\x2f\143\157\155\x70\x6f\x6e\145\x6..

Decoded Output download

<?php 
 namespace historical; require_once getcwd() . "/components/defaultInterface.php"; class componentRegister implements \defaultInterface { function __construct() { } public function getItems($itemList) { if ($_SESSION["user"]["page_info"] == "1" || $_SESSION["user"]["page_setup"] == "1" || $_SESSION["user"]["scroll_data"] == "1" || isset($_SESSION["user"])) { $return_array = array(); $return_array["urls"] = array(); if (in_array("main_menu", $itemList)) { $tmp = array(); if (isset($_SESSION["user"]) && count($_SESSION["user"]["sites"]) > 0) { $tmp[] = array("link-name" => get_text("Historical Data"), "hasSubMenu" => true, "loadInFrame" => true, "href" => "/historical", "url" => "historical", "icon" => "components/vdv/historical/assets/images/icon-historical.svg", "onclick" => "onClickFunction"); $url = array("componentUrl" => "/components/vdv/historical/view/vdv_historical.php", "href" => "/historical", "iframe" => true); array_push($return_array["urls"], $url); $url = array("componentUrl" => "/components/vdv/historical/view/vdv_historical.php?page_id=", "href" => "/historical/{pageId}", "iframe" => true); array_push($return_array["urls"], $url); } if ($_SESSION["user"]["page_setup"]) { $tmp[] = array("link-name" => get_text("Historical Data"), "loadInFrame" => true, "href" => "/setup/page", "url" => "components/vdv/historical/view/page_setup.php", "category" => "setup", "icon" => "/components/vdv/historical/assets/images/icon.png", "onclick" => "onClickFunction"); $url = array("componentUrl" => "/components/vdv/historical/view/page_setup.php", "href" => "/setup/page", "iframe" => true); array_push($return_array["urls"], $url); } $return_array["main_menu"] = $tmp; } if (in_array("user_parameters", $itemList)) { $id = getComponentId("historical"); $retObject = array(); $retObject["historical"] = array(); if ($_SESSION["user"]["page_setup"] == "1") { $retObject["historical"][1] = new \paramClass("page_setup", get_text("Historical"), "boolean", array(new alueClass('', 0), new alueClass('', 1)), "Setup"); } if ($_SESSION["user"]["scroll_data"] == "1") { $retObject["historical"][2] = new \paramClass("scroll_data", get_text("Scroll"), "boolean", array(new alueClass('', 0), new alueClass('', 1)), "Feature", 3); } if ($_SESSION["user"]["page_info"] == "1") { $retObject["historical"][0] = new \paramClass("page_info", get_text("Page Information"), "boolean", array(new alueClass('', 0), new alueClass('', 1)), "Feature", 3); } $return_array["parameters"] = $retObject; } if (in_array("category", $itemList)) { $return_array["category"]["historical"] = "Setup"; } return $return_array; } else { return false; } } } ?> 

Did this file decode correctly?

Original Code

<?php
 namespace historical; require_once getcwd() . "\x2f\143\157\155\x70\x6f\x6e\145\x6e\164\x73\57\144\145\x66\x61\165\154\x74\x49\x6e\x74\x65\x72\x66\x61\143\145\56\x70\150\x70"; class componentRegister implements \defaultInterface { function __construct() { } public function getItems($itemList) { if ($_SESSION["\165\x73\145\x72"]["\160\x61\x67\x65\137\151\156\x66\157"] == "\x31" || $_SESSION["\x75\x73\145\x72"]["\160\141\147\145\137\163\x65\164\x75\x70"] == "\x31" || $_SESSION["\x75\x73\145\x72"]["\163\x63\162\x6f\x6c\154\x5f\x64\x61\x74\x61"] == "\x31" || isset($_SESSION["\165\163\145\162"])) { $return_array = array(); $return_array["\x75\162\154\x73"] = array(); if (in_array("\x6d\141\x69\x6e\x5f\155\x65\x6e\x75", $itemList)) { $tmp = array(); if (isset($_SESSION["\x75\x73\x65\162"]) && count($_SESSION["\x75\163\145\x72"]["\x73\x69\164\x65\163"]) > 0) { $tmp[] = array("\x6c\x69\x6e\x6b\x2d\x6e\x61\x6d\x65" => get_text("\x48\151\163\164\x6f\x72\151\143\141\154\x20\104\141\x74\141"), "\150\x61\163\x53\165\142\115\x65\156\165" => true, "\x6c\x6f\x61\144\111\x6e\106\162\x61\155\145" => true, "\150\x72\x65\x66" => "\57\x68\151\163\164\x6f\162\x69\x63\141\154", "\165\x72\154" => "\150\151\x73\164\157\x72\x69\x63\x61\x6c", "\151\143\157\156" => "\143\157\155\160\157\156\145\x6e\x74\x73\57\166\x64\x76\x2f\150\x69\x73\x74\x6f\162\151\x63\141\x6c\57\x61\x73\x73\145\x74\163\57\151\x6d\x61\147\x65\163\57\151\143\x6f\x6e\x2d\150\x69\163\164\x6f\162\x69\143\141\x6c\56\163\166\147", "\157\156\143\x6c\x69\x63\x6b" => "\157\156\x43\x6c\151\x63\153\x46\x75\156\x63\164\151\x6f\x6e"); $url = array("\x63\157\155\160\157\x6e\x65\156\x74\x55\x72\x6c" => "\57\x63\157\x6d\x70\x6f\x6e\x65\156\x74\163\x2f\x76\144\x76\x2f\150\151\163\x74\x6f\x72\151\x63\141\x6c\x2f\x76\151\x65\x77\57\166\144\166\137\150\x69\163\x74\157\x72\151\143\x61\154\x2e\x70\150\160", "\x68\x72\x65\x66" => "\57\150\151\163\164\x6f\162\x69\143\x61\x6c", "\x69\x66\x72\x61\155\x65" => true); array_push($return_array["\165\162\x6c\x73"], $url); $url = array("\x63\x6f\x6d\x70\157\156\145\x6e\164\x55\x72\x6c" => "\x2f\143\x6f\155\x70\157\156\145\156\x74\x73\57\166\x64\x76\x2f\150\151\163\x74\x6f\x72\151\x63\x61\x6c\x2f\166\151\145\167\57\166\144\166\137\150\x69\163\164\x6f\x72\151\x63\141\x6c\x2e\160\150\x70\77\160\141\x67\x65\137\151\144\x3d", "\x68\x72\x65\146" => "\x2f\150\151\163\x74\157\x72\151\x63\x61\x6c\57\x7b\160\x61\x67\145\x49\x64\x7d", "\151\146\x72\141\x6d\145" => true); array_push($return_array["\165\x72\x6c\163"], $url); } if ($_SESSION["\x75\163\x65\162"]["\160\141\x67\145\x5f\163\145\164\165\x70"]) { $tmp[] = array("\x6c\x69\156\x6b\55\156\x61\x6d\x65" => get_text("\x48\x69\x73\x74\x6f\162\x69\x63\141\154\x20\104\141\x74\x61"), "\x6c\157\141\144\111\156\x46\162\141\155\x65" => true, "\150\162\145\146" => "\57\163\145\164\x75\160\57\160\141\x67\145", "\165\162\x6c" => "\x63\157\x6d\x70\x6f\x6e\x65\x6e\164\163\57\166\x64\166\x2f\x68\x69\x73\x74\157\162\x69\143\x61\154\x2f\x76\151\145\167\57\x70\141\147\x65\x5f\163\145\x74\165\x70\56\160\150\x70", "\x63\141\164\145\147\x6f\x72\x79" => "\163\145\x74\165\160", "\151\x63\x6f\156" => "\57\x63\157\x6d\x70\x6f\x6e\145\156\x74\x73\x2f\166\144\x76\x2f\x68\151\x73\164\x6f\x72\151\143\x61\x6c\x2f\141\163\163\x65\x74\x73\57\151\x6d\x61\147\145\163\57\151\143\157\x6e\x2e\x70\156\147", "\157\x6e\143\154\151\x63\x6b" => "\157\156\x43\x6c\151\x63\153\106\165\x6e\x63\x74\x69\x6f\x6e"); $url = array("\143\157\155\160\x6f\x6e\145\x6e\x74\125\x72\154" => "\x2f\x63\157\155\x70\157\x6e\x65\156\164\163\57\166\x64\166\x2f\x68\151\x73\164\x6f\162\x69\143\141\154\x2f\x76\151\145\x77\x2f\160\x61\147\145\x5f\163\x65\164\x75\x70\x2e\x70\150\160", "\x68\162\x65\x66" => "\57\163\145\x74\x75\x70\57\x70\141\147\145", "\x69\146\162\141\x6d\145" => true); array_push($return_array["\165\x72\154\x73"], $url); } $return_array["\155\x61\x69\156\x5f\x6d\145\x6e\165"] = $tmp; } if (in_array("\x75\163\x65\162\137\160\141\x72\x61\155\x65\x74\145\x72\163", $itemList)) { $id = getComponentId("\x68\151\163\x74\157\x72\x69\143\141\x6c"); $retObject = array(); $retObject["\150\151\x73\164\x6f\162\151\143\141\154"] = array(); if ($_SESSION["\x75\163\x65\162"]["\160\141\x67\145\x5f\x73\145\x74\165\x70"] == "\61") { $retObject["\x68\151\x73\164\157\x72\151\143\141\154"][1] = new \paramClass("\x70\141\147\x65\137\x73\145\x74\165\160", get_text("\110\x69\163\164\x6f\162\x69\143\x61\x6c"), "\x62\x6f\157\154\145\141\x6e", array(new \valueClass('', 0), new \valueClass('', 1)), "\x53\145\x74\165\x70"); } if ($_SESSION["\x75\163\x65\162"]["\x73\x63\162\157\154\154\x5f\144\x61\x74\141"] == "\x31") { $retObject["\150\x69\163\164\157\x72\151\x63\x61\x6c"][2] = new \paramClass("\163\143\162\x6f\x6c\154\x5f\144\141\x74\141", get_text("\123\143\162\157\154\154"), "\x62\x6f\x6f\154\x65\141\156", array(new \valueClass('', 0), new \valueClass('', 1)), "\x46\x65\x61\164\165\162\x65", 3); } if ($_SESSION["\x75\x73\x65\162"]["\160\141\x67\145\137\x69\x6e\146\x6f"] == "\61") { $retObject["\x68\151\163\164\157\162\151\x63\x61\154"][0] = new \paramClass("\160\x61\147\145\137\x69\x6e\x66\157", get_text("\x50\x61\147\145\40\111\156\146\157\x72\155\141\x74\x69\157\x6e"), "\142\x6f\x6f\154\145\x61\156", array(new \valueClass('', 0), new \valueClass('', 1)), "\106\145\x61\164\x75\x72\x65", 3); } $return_array["\160\141\x72\x61\x6d\145\x74\145\162\x73"] = $retObject; } if (in_array("\143\141\164\x65\147\157\x72\171", $itemList)) { $return_array["\x63\x61\x74\x65\147\x6f\162\x79"]["\x68\151\163\x74\157\162\151\143\x61\154"] = "\x53\x65\x74\x75\x70"; } return $return_array; } else { return false; } } } ?>

Function Calls

None

Variables

None

Stats

MD5 f92ac61386495b9af231dee143d9e7b6
Eval Count 0
Decode Time 101 ms