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 /* Copyright (c) 2012 Motion-M Co. If you want to obtain license for this product,..

Decoded Output download

<?php /* 
Copyright (c) 2012 Motion-M Co. 
If you want to obtain license for this product, go to http://www.motion-m.com 
*/ 
${"GLOBALS"}["jmjdaknhqccb"]="session_life";${"GLOBALS"}["oinlcb"]="moreIdleTime";${"GLOBALS"}["vpkduk"]="inactive";${"GLOBALS"}["vlwgyfyb"]="debug_mode";${"GLOBALS"}["mdhgafw"]="auth";${"GLOBALS"}["gqoxfkvwbk"]="db_login";${"GLOBALS"}["kkgcgmsoksv"]="auth_db";${"GLOBALS"}["sxtqpphhbng"]="root";$asnnvok="import_path";${"GLOBALS"}["mxkootzs"]="uploaded_files_path";ob_start();setlocale(LC_ALL,"hu_HU");require __DIR__."/src/core/vendor/autoload.php";require __DIR__."/MyRoles.php";${"GLOBALS"}["vwvusn"]="root";$jgbwpjmoh="inactive";require __DIR__."/src/core/scripts/PdoDatabase.php";require __DIR__."/src/core/scripts/Auth.php";$hczywsw="adminMode";${"GLOBALS"}["uxkzgwuhwgv"]="auth_db";${${"GLOBALS"}["vwvusn"]}=$_SERVER["DOCUMENT_ROOT"];${$asnnvok}=${${"GLOBALS"}["sxtqpphhbng"]}."/../imports.php";${${"GLOBALS"}["mxkootzs"]}=dirname($_SERVER["DOCUMENT_ROOT"])."/uploaded_files";define("random_length","24");$errpzchmxze="inactive";define("uploaded_files_path",str_replace("\","/",dirname($_SERVER["DOCUMENT_ROOT"])."/uploaded_files"));${${"GLOBALS"}["kkgcgmsoksv"]}=new\Delight\Db\PdoDsn("pgsql:dbname=aluerp;host=postgres;port=5432","postgres","54XBj5fAWBu62CYg");${${"GLOBALS"}["gqoxfkvwbk"]}=\Delight\Db\PdoDatabase2::fromDsn(${${"GLOBALS"}["kkgcgmsoksv"]});${"GLOBALS"}["qhkqlli"]="freezeDB";$mkgmki="maxImageSizeInPx";${${"GLOBALS"}["mdhgafw"]}=new\Delight\Auth\Auth2(${${"GLOBALS"}["uxkzgwuhwgv"]});${$mkgmki}=700;${${"GLOBALS"}["vlwgyfyb"]}=true;${${"GLOBALS"}["qhkqlli"]}=false;${$hczywsw}=true;if(!isset(${$errpzchmxze}))${${"GLOBALS"}["vpkduk"]}=900;if($auth->isLoggedIn()){${"GLOBALS"}["wodikvmcyg"]="db";$oguyqxkmi="inactive";${"GLOBALS"}["bgifslbcj"]="id";${"GLOBALS"}["ikphanoocih"]="moreIdleTime";${${"GLOBALS"}["wodikvmcyg"]}=${${"GLOBALS"}["gqoxfkvwbk"]};${${"GLOBALS"}["bgifslbcj"]}=$auth->getUserId();if(!isset($_SESSION["impersonating_u"]))$_SESSION["impersonating_u"]="";${${"GLOBALS"}["oinlcb"]}=$db->selectValue("SELECT moreidletime FROM users where id=".$auth->getUserId());${"GLOBALS"}["pyqyvuyk"]="inactive";if(${${"GLOBALS"}["ikphanoocih"]})${$oguyqxkmi}=43200;else${${"GLOBALS"}["pyqyvuyk"]}=900;}require_once("src/core/scripts/functions_general.php");require_once("src/core/scripts/printGrid.php");require_once("src/core/scripts/printMsgGrid.php");require_once("src/core/scripts/editableGrid.php");require_once("src/core/scripts/file_handling/handleFileUploads.php");if(!isset($_SESSION["lastSeen"])and$auth->isLoggedIn())$_SESSION["lastSeen"]=time()+${$jgbwpjmoh};if(isset($_SESSION["lastSeen"])){${${"GLOBALS"}["jmjdaknhqccb"]}=time()-$_SESSION["lastSeen"];if(${${"GLOBALS"}["jmjdaknhqccb"]}>${${"GLOBALS"}["vpkduk"]}){session_destroy();exit();}elseif(!isset($_POST["noRenewSess"]))$_SESSION["lastSeen"]=time();} 
?>

Did this file decode correctly?

Original Code

<?php /*
Copyright (c) 2012 Motion-M Co.
If you want to obtain license for this product, go to http://www.motion-m.com
*/
${"\x47\x4cOB\x41\x4c\x53"}["j\x6d\x6a\x64\x61k\x6e\x68\x71\x63\x63b"]="se\x73\x73\x69\x6f\x6e\x5fli\x66e";${"\x47\x4c\x4fB\x41L\x53"}["oi\x6e\x6c\x63\x62"]="\x6d\x6fr\x65I\x64\x6ce\x54i\x6d\x65";${"G\x4cOB\x41\x4cS"}["\x76p\x6bd\x75k"]="i\x6e\x61\x63ti\x76e";${"\x47L\x4f\x42A\x4c\x53"}["\x76l\x77\x67yf\x79\x62"]="d\x65b\x75\x67\x5f\x6d\x6f\x64\x65";${"G\x4c\x4f\x42\x41L\x53"}["\x6d\x64h\x67\x61fw"]="au\x74\x68";${"G\x4c\x4f\x42\x41L\x53"}["g\x71oxf\x6b\x76\x77\x62k"]="d\x62\x5f\x6co\x67in";${"\x47LOBA\x4c\x53"}["\x6bk\x67\x63\x67\x6d\x73\x6f\x6b\x73v"]="\x61u\x74\x68\x5f\x64b";${"\x47\x4c\x4fB\x41\x4cS"}["s\x78t\x71\x70\x70\x68h\x62\x6e\x67"]="\x72\x6f\x6f\x74";$asnnvok="\x69\x6d\x70or\x74\x5f\x70\x61\x74\x68";${"\x47\x4c\x4f\x42A\x4cS"}["m\x78\x6bo\x6f\x74\x7as"]="\x75\x70\x6c\x6f\x61\x64ed\x5f\x66\x69les_\x70\x61t\x68";ob_start();setlocale(LC_ALL,"hu\x5fH\x55");require __DIR__."/\x73\x72c/\x63\x6f\x72e/\x76\x65\x6edo\x72/autol\x6f\x61\x64.\x70hp";require __DIR__."/\x4d\x79\x52ole\x73.p\x68p";${"\x47\x4c\x4f\x42A\x4c\x53"}["v\x77\x76\x75\x73\x6e"]="r\x6fo\x74";$jgbwpjmoh="\x69nac\x74\x69\x76e";require __DIR__."/sr\x63/c\x6fre/\x73\x63\x72\x69\x70t\x73/\x50\x64o\x44a\x74ab\x61\x73\x65.\x70\x68\x70";require __DIR__."/s\x72c/\x63\x6fr\x65/s\x63\x72ipt\x73/\x41u\x74h\x2ep\x68p";$hczywsw="a\x64\x6d\x69nMo\x64\x65";${"\x47\x4c\x4f\x42\x41\x4cS"}["ux\x6b\x7a\x67\x77\x75h\x77gv"]="\x61\x75t\x68_\x64\x62";${${"\x47\x4c\x4f\x42A\x4cS"}["\x76\x77v\x75s\x6e"]}=$_SERVER["\x44\x4fC\x55\x4d\x45NT\x5f\x52O\x4f\x54"];${$asnnvok}=${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["sxt\x71pp\x68h\x62ng"]}."/\x2e./\x69\x6dpor\x74\x73\x2e\x70\x68\x70";${${"\x47LOB\x41\x4cS"}["\x6d\x78k\x6f\x6ft\x7a\x73"]}=dirname($_SERVER["D\x4fC\x55\x4d\x45\x4e\x54_\x52OOT"])."/u\x70\x6c\x6fa\x64ed\x5f\x66\x69\x6c\x65s";define("ra\x6e\x64o\x6d_l\x65ngth","2\x34");$errpzchmxze="\x69n\x61\x63\x74i\x76\x65";define("upl\x6fa\x64ed_f\x69l\x65s\x5fp\x61\x74\x68",str_replace("\\","/",dirname($_SERVER["\x44\x4fC\x55M\x45\x4eT_RO\x4fT"])."/u\x70l\x6fa\x64\x65\x64_f\x69l\x65\x73"));${${"\x47\x4c\x4f\x42\x41\x4cS"}["k\x6b\x67\x63\x67\x6d\x73\x6f\x6b\x73\x76"]}=new\Delight\Db\PdoDsn("\x70gs\x71\x6c:db\x6eam\x65\x3da\x6c\x75e\x72\x70;\x68os\x74=\x70\x6fst\x67r\x65s;p\x6frt=\x35\x34\x33\x32","p\x6fstg\x72e\x73","\x354\x58B\x6a5fAW\x42u\x362\x43\x59\x67");${${"\x47LO\x42\x41L\x53"}["\x67\x71oxf\x6bvwbk"]}=\Delight\Db\PdoDatabase2::fromDsn(${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x6bk\x67cg\x6d\x73\x6f\x6b\x73\x76"]});${"\x47\x4c\x4fBAL\x53"}["\x71h\x6b\x71\x6c\x6ci"]="fr\x65\x65\x7a\x65D\x42";$mkgmki="\x6dax\x49m\x61\x67e\x53\x69\x7ae\x49\x6ePx";${${"GL\x4f\x42A\x4c\x53"}["\x6d\x64\x68\x67a\x66\x77"]}=new\Delight\Auth\Auth2(${${"GLO\x42AL\x53"}["\x75\x78k\x7ag\x77\x75\x68w\x67\x76"]});${$mkgmki}=700;${${"G\x4cO\x42A\x4c\x53"}["\x76\x6cwg\x79\x66\x79\x62"]}=true;${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x71\x68k\x71l\x6c\x69"]}=false;${$hczywsw}=true;if(!isset(${$errpzchmxze}))${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x76\x70k\x64u\x6b"]}=900;if($auth->isLoggedIn()){${"G\x4cO\x42\x41L\x53"}["\x77\x6fdi\x6b\x76\x6dc\x79\x67"]="d\x62";$oguyqxkmi="\x69\x6ea\x63\x74i\x76e";${"GLO\x42\x41\x4c\x53"}["\x62\x67\x69f\x73\x6cb\x63\x6a"]="\x69\x64";${"G\x4cOB\x41\x4c\x53"}["\x69\x6b\x70h\x61\x6eo\x6f\x63i\x68"]="mo\x72e\x49\x64l\x65\x54\x69\x6d\x65";${${"GL\x4f\x42A\x4c\x53"}["w\x6f\x64\x69\x6bv\x6d\x63\x79\x67"]}=${${"\x47\x4cO\x42\x41L\x53"}["\x67qo\x78f\x6b\x76wb\x6b"]};${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x62g\x69\x66sl\x62\x63j"]}=$auth->getUserId();if(!isset($_SESSION["i\x6d\x70\x65\x72s\x6fn\x61tin\x67\x5fu"]))$_SESSION["\x69mp\x65\x72s\x6fn\x61\x74i\x6e\x67\x5fu"]="";${${"\x47\x4c\x4f\x42\x41LS"}["\x6fi\x6e\x6c\x63\x62"]}=$db->selectValue("SE\x4cE\x43\x54 m\x6f\x72\x65id\x6c\x65t\x69\x6d\x65 F\x52OM u\x73e\x72s\x20\x77her\x65\x20i\x64=".$auth->getUserId());${"\x47L\x4f\x42\x41\x4cS"}["\x70\x79\x71\x79vuy\x6b"]="\x69\x6ea\x63\x74iv\x65";if(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["i\x6bp\x68\x61\x6e\x6fo\x63\x69\x68"]})${$oguyqxkmi}=43200;else${${"\x47LO\x42\x41\x4c\x53"}["py\x71\x79\x76\x75y\x6b"]}=900;}require_once("\x73r\x63/cor\x65/sc\x72\x69p\x74\x73/\x66\x75\x6ec\x74\x69\x6fn\x73_g\x65nera\x6c.p\x68\x70");require_once("\x73\x72\x63/\x63\x6fr\x65/s\x63\x72\x69\x70ts/\x70ri\x6etGri\x64.php");require_once("s\x72\x63/cor\x65/\x73\x63\x72\x69p\x74s/p\x72in\x74\x4ds\x67Gr\x69d.\x70hp");require_once("s\x72\x63/c\x6f\x72e/\x73\x63r\x69pts/\x65di\x74able\x47r\x69d.p\x68\x70");require_once("\x73rc/c\x6fre/s\x63\x72ip\x74s/\x66ile\x5f\x68a\x6ed\x6ci\x6e\x67/ha\x6e\x64l\x65\x46i\x6c\x65\x55plo\x61\x64s.p\x68\x70");if(!isset($_SESSION["\x6c\x61st\x53\x65\x65n"])and$auth->isLoggedIn())$_SESSION["\x6c\x61s\x74\x53e\x65\x6e"]=time()+${$jgbwpjmoh};if(isset($_SESSION["la\x73\x74Se\x65\x6e"])){${${"\x47LOBA\x4cS"}["jm\x6a\x64\x61kn\x68q\x63\x63\x62"]}=time()-$_SESSION["l\x61\x73tS\x65\x65\x6e"];if(${${"\x47L\x4f\x42\x41\x4c\x53"}["jmj\x64\x61kn\x68\x71\x63\x63b"]}>${${"G\x4cOB\x41\x4c\x53"}["\x76\x70\x6bd\x75\x6b"]}){session_destroy();exit();}elseif(!isset($_POST["no\x52\x65\x6e\x65w\x53\x65\x73s"]))$_SESSION["\x6cas\x74S\x65\x65n"]=time();}
?>

Function Calls

ob_start 1

Variables

GLOBALS [{'key': 'jmjdaknhqccb', 'value': 'session_life'}, {'key': 'oinlcb', 'value': 'moreIdleTime'}, {'key': 'vpkduk', 'value': 'inactive'}, {'key': 'vlwgyfyb', 'value': 'debug_mode'}, {'key': 'mdhgafw', 'value': 'auth'}, {'key': 'gqoxfkvwbk', 'value': 'db_login'}, {'key': 'kkgcgmsoksv', 'value': 'auth_db'}, {'key': 'sxtqpphhbng', 'value': 'root'}, {'key': 'mxkootzs', 'value': 'uploaded_files_path'}]
$asnnvok import_path

Stats

MD5 fa138b5f6c7beb299bdb82da22eeae34
Eval Count 0
Decode Time 112 ms