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 ${"G\x4c\x4fB\x41\x4c\x53"}["\x70\x72b\x64\x6d\x6ap\x76\x6d\x77d"]="\x62ase";${"\x47..
Decoded Output download
<?php ${"GLOBALS"}["prbdmjpvmwd"]="base";${"GLOBALS"}["mweexidy"]="config";${"GLOBALS"}["dqrlbfjxo"]="application_folder";${"GLOBALS"}["xwbkrmek"]="system_path";${"GLOBALS"}["irnjikeuvw"]="_temp";${"GLOBALS"}["kceqjfm"]="view_folder";if(file_exists("../lic.php")){if(!ini_get("date.timezone")){date_default_timezone_set("GMT");}${"GLOBALS"}["osozqwkntdk"]="system_path";define("ENVIRONMENT",isset($_SERVER["CI_ENV"])?$_SERVER["CI_ENV"]:"development");$glgjsisiuxz="application_folder";${"GLOBALS"}["dlojlbnoq"]="view_folder";$vbbmsue="view_folder";switch(ENVIRONMENT){case"development":error_reporting(-1);ini_set("display_errors",1);break;case"testing":case"production":ini_set("display_errors",0);if(version_compare(PHP_VERSION,"5.3",">=")){error_reporting(E_ALL&~E_NOTICE&~E_DEPRECATED&~E_STRICT&~E_USER_NOTICE&~E_USER_DEPRECATED);}else{error_reporting(E_ALL&~E_NOTICE&~E_STRICT&~E_USER_NOTICE);}break;default:header("HTTP/1.1 503 Service Unavailable.",TRUE,503);echo"The application environment is not set correctly.";exit(1);}${${"GLOBALS"}["osozqwkntdk"]}="system";${$glgjsisiuxz}="application";$tcpygpxpy="system_path";${${"GLOBALS"}["kceqjfm"]}="";if(defined("STDIN")){chdir(dirname(__FILE__));}${"GLOBALS"}["xmvxdirw"]="system_path";if((${${"GLOBALS"}["irnjikeuvw"]}=realpath(${$tcpygpxpy}))!==FALSE){${"GLOBALS"}["hmfuikjz"]="system_path";${"GLOBALS"}["kgkinxferdf"]="_temp";${${"GLOBALS"}["hmfuikjz"]}=${${"GLOBALS"}["kgkinxferdf"]}."/";}else{${"GLOBALS"}["rvbyrsvgkkuv"]="system_path";${${"GLOBALS"}["rvbyrsvgkkuv"]}=rtrim(${${"GLOBALS"}["xwbkrmek"]},"/")."/";}$iznxcvlu="system_path";if(!is_dir(${${"GLOBALS"}["xmvxdirw"]})){header("HTTP/1.1 503 Service Unavailable.",TRUE,503);echo"Your system folder path does not appear to be set correctly. Please open the following file and correct this: ".pathinfo(__FILE__,PATHINFO_BASENAME);exit(3);}define("SELF",pathinfo(__FILE__,PATHINFO_BASENAME));define("BASEPATH",str_replace("\","/",${$iznxcvlu}));define("FCPATH",dirname(__FILE__)."/");define("SYSDIR",trim(strrchr(trim(BASEPATH,"/"),"/"),"/"));if(is_dir(${${"GLOBALS"}["dqrlbfjxo"]})){${"GLOBALS"}["myxgujm"]="_temp";${"GLOBALS"}["xewrqjs"]="application_folder";if((${${"GLOBALS"}["myxgujm"]}=realpath(${${"GLOBALS"}["xewrqjs"]}))!==FALSE){${"GLOBALS"}["lsbpvozjjw"]="application_folder";${${"GLOBALS"}["lsbpvozjjw"]}=${${"GLOBALS"}["irnjikeuvw"]};}define("APPPATH",${${"GLOBALS"}["dqrlbfjxo"]}.DIRECTORY_SEPARATOR);}else{$noexmbkg="application_folder";${"GLOBALS"}["indfngp"]="application_folder";if(!is_dir(BASEPATH.${${"GLOBALS"}["indfngp"]}.DIRECTORY_SEPARATOR)){header("HTTP/1.1 503 Service Unavailable.",TRUE,503);echo"Your application folder path does not appear to be set correctly. Please open the following file and correct this: ".SELF;exit(3);}define("APPPATH",BASEPATH.${$noexmbkg}.DIRECTORY_SEPARATOR);}if(!is_dir(${$vbbmsue})){$chekvcjjlgr="view_folder";$cslyaxju="view_folder";if(!empty(${$chekvcjjlgr})&&is_dir(APPPATH.${$cslyaxju}.DIRECTORY_SEPARATOR)){${"GLOBALS"}["cfqlortrto"]="view_folder";${${"GLOBALS"}["cfqlortrto"]}=APPPATH.${${"GLOBALS"}["kceqjfm"]};}elseif(!is_dir(APPPATH."views".DIRECTORY_SEPARATOR)){header("HTTP/1.1 503 Service Unavailable.",TRUE,503);echo"Your view folder path does not appear to be set correctly. Please open the following file and correct this: ".SELF;exit(3);}else{$zyitzurh="view_folder";${$zyitzurh}=APPPATH."views";}}if((${${"GLOBALS"}["irnjikeuvw"]}=realpath(${${"GLOBALS"}["dlojlbnoq"]}))!==FALSE){$wisublt="view_folder";${"GLOBALS"}["kouctjpvvdml"]="_temp";${$wisublt}=${${"GLOBALS"}["kouctjpvvdml"]}.DIRECTORY_SEPARATOR;}else{${${"GLOBALS"}["kceqjfm"]}=rtrim(${${"GLOBALS"}["kceqjfm"]},"/\").DIRECTORY_SEPARATOR;}define("VIEWPATH",${${"GLOBALS"}["kceqjfm"]});require_once BASEPATH."core/CodeIgniter.php";}else{${"GLOBALS"}["uyibaiomnk"]="base";${${"GLOBALS"}["mweexidy"]}["base_url"]=((isset($_SERVER["HTTPS"])&&$_SERVER["HTTPS"]=="on")?"https":"http");${"GLOBALS"}["ikntkktbqx"]="base";$yedxouhuaa="config";${${"GLOBALS"}["mweexidy"]}["base_url"].="://".$_SERVER["HTTP_HOST"];$thfifuypf="config";${"GLOBALS"}["hjtsiuitjdn"]="base";${$yedxouhuaa}["base_url"].=str_replace(basename($_SERVER["SCRIPT_NAME"]),"",$_SERVER["SCRIPT_NAME"]);${${"GLOBALS"}["hjtsiuitjdn"]}=${$thfifuypf}["base_url"];${${"GLOBALS"}["uyibaiomnk"]}=str_replace("store","install",${${"GLOBALS"}["ikntkktbqx"]});header("Location: ".${${"GLOBALS"}["prbdmjpvmwd"]});}
?>
Did this file decode correctly?
Original Code
<?php ${"G\x4c\x4fB\x41\x4c\x53"}["\x70\x72b\x64\x6d\x6ap\x76\x6d\x77d"]="\x62ase";${"\x47L\x4fB\x41L\x53"}["\x6d\x77\x65\x65\x78\x69\x64\x79"]="\x63\x6f\x6e\x66ig";${"\x47\x4c\x4fBA\x4cS"}["\x64\x71\x72\x6cb\x66\x6axo"]="\x61\x70p\x6ci\x63a\x74\x69o\x6e_\x66o\x6cde\x72";${"\x47LO\x42\x41\x4cS"}["xw\x62\x6brmek"]="sy\x73\x74em\x5f\x70a\x74h";${"\x47\x4c\x4f\x42A\x4c\x53"}["i\x72n\x6ai\x6b\x65\x75vw"]="\x5fte\x6dp";${"G\x4c\x4f\x42\x41\x4c\x53"}["\x6b\x63\x65\x71\x6afm"]="\x76\x69\x65w\x5f\x66o\x6cd\x65r";if(file_exists("\x2e\x2e/\x6c\x69c.\x70hp")){if(!ini_get("\x64at\x65.t\x69\x6d\x65\x7a\x6f\x6ee")){date_default_timezone_set("\x47MT");}${"\x47\x4c\x4f\x42A\x4c\x53"}["oso\x7a\x71\x77k\x6e\x74d\x6b"]="\x73\x79s\x74em_p\x61\x74\x68";define("\x45N\x56\x49\x52\x4fN\x4dE\x4e\x54",isset($_SERVER["\x43I_\x45\x4eV"])?$_SERVER["\x43\x49_ENV"]:"\x64\x65vel\x6f\x70\x6d\x65n\x74");$glgjsisiuxz="a\x70\x70lic\x61\x74\x69o\x6e_\x66\x6f\x6c\x64er";${"\x47\x4cO\x42A\x4cS"}["d\x6c\x6f\x6a\x6c\x62n\x6fq"]="\x76ie\x77\x5f\x66o\x6c\x64e\x72";$vbbmsue="\x76i\x65w\x5ff\x6f\x6cd\x65r";switch(ENVIRONMENT){case"de\x76\x65l\x6fpm\x65nt":error_reporting(-1);ini_set("\x64is\x70la\x79\x5ferr\x6f\x72\x73",1);break;case"\x74\x65s\x74\x69\x6e\x67":case"\x70r\x6f\x64uc\x74\x69o\x6e":ini_set("\x64i\x73\x70\x6cay_e\x72r\x6f\x72s",0);if(version_compare(PHP_VERSION,"\x35\x2e\x33","\x3e=")){error_reporting(E_ALL&~E_NOTICE&~E_DEPRECATED&~E_STRICT&~E_USER_NOTICE&~E_USER_DEPRECATED);}else{error_reporting(E_ALL&~E_NOTICE&~E_STRICT&~E_USER_NOTICE);}break;default:header("H\x54\x54\x50/\x31\x2e\x31 \x35\x303 \x53\x65r\x76\x69\x63\x65\x20\x55\x6ea\x76\x61\x69\x6c\x61b\x6ce\x2e",TRUE,503);echo"\x54\x68\x65\x20\x61\x70\x70\x6c\x69\x63\x61t\x69\x6fn \x65\x6e\x76ir\x6fnme\x6et i\x73\x20n\x6ft set\x20\x63orre\x63\x74ly.";exit(1);}${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6fs\x6f\x7a\x71\x77\x6bnt\x64\x6b"]}="\x73y\x73te\x6d";${$glgjsisiuxz}="a\x70pli\x63\x61t\x69o\x6e";$tcpygpxpy="\x73y\x73t\x65\x6d_\x70\x61th";${${"GL\x4fB\x41\x4c\x53"}["\x6bce\x71\x6af\x6d"]}="";if(defined("ST\x44IN")){chdir(dirname(__FILE__));}${"GL\x4f\x42\x41LS"}["\x78mv\x78d\x69\x72w"]="s\x79s\x74\x65m\x5fp\x61\x74\x68";if((${${"GL\x4fB\x41L\x53"}["ir\x6ej\x69k\x65u\x76\x77"]}=realpath(${$tcpygpxpy}))!==FALSE){${"GL\x4f\x42\x41\x4c\x53"}["h\x6dfu\x69kjz"]="\x73\x79s\x74\x65\x6d\x5f\x70a\x74\x68";${"G\x4cO\x42\x41\x4cS"}["\x6b\x67ki\x6ex\x66e\x72d\x66"]="\x5f\x74\x65m\x70";${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x68mfu\x69\x6b\x6a\x7a"]}=${${"\x47L\x4fBA\x4c\x53"}["k\x67\x6bi\x6ex\x66erd\x66"]}."/";}else{${"G\x4c\x4fB\x41\x4c\x53"}["\x72\x76\x62\x79r\x73v\x67\x6b\x6b\x75\x76"]="s\x79s\x74e\x6d_\x70\x61\x74\x68";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x72\x76b\x79\x72\x73\x76\x67\x6bk\x75v"]}=rtrim(${${"GL\x4f\x42A\x4c\x53"}["\x78w\x62\x6b\x72\x6d\x65\x6b"]},"/")."/";}$iznxcvlu="s\x79\x73\x74\x65\x6d\x5f\x70a\x74\x68";if(!is_dir(${${"\x47LO\x42A\x4c\x53"}["\x78\x6d\x76\x78\x64\x69\x72\x77"]})){header("\x48TTP/1.1 503 \x53\x65\x72v\x69ce \x55nav\x61\x69la\x62\x6c\x65.",TRUE,503);echo"Y\x6f\x75\x72 \x73yst\x65\x6d fo\x6c\x64\x65r \x70a\x74\x68 d\x6fes n\x6ft\x20a\x70\x70ear\x20to be s\x65\x74\x20\x63o\x72r\x65\x63tl\x79.\x20P\x6ce\x61\x73\x65 o\x70e\x6e\x20t\x68e \x66\x6f\x6c\x6cowi\x6e\x67 \x66ile an\x64 \x63o\x72re\x63t \x74hi\x73:\x20".pathinfo(__FILE__,PATHINFO_BASENAME);exit(3);}define("\x53EL\x46",pathinfo(__FILE__,PATHINFO_BASENAME));define("B\x41\x53E\x50ATH",str_replace("\\","/",${$iznxcvlu}));define("FC\x50A\x54H",dirname(__FILE__)."/");define("SYSDIR",trim(strrchr(trim(BASEPATH,"/"),"/"),"/"));if(is_dir(${${"\x47L\x4f\x42\x41L\x53"}["d\x71\x72\x6c\x62\x66jxo"]})){${"\x47\x4c\x4fBALS"}["my\x78\x67\x75j\x6d"]="\x5f\x74\x65\x6dp";${"G\x4c\x4fBALS"}["x\x65wr\x71j\x73"]="ap\x70l\x69\x63\x61\x74i\x6f\x6e_\x66old\x65\x72";if((${${"\x47\x4cO\x42\x41\x4c\x53"}["m\x79x\x67\x75jm"]}=realpath(${${"\x47LO\x42AL\x53"}["x\x65\x77\x72\x71\x6as"]}))!==FALSE){${"G\x4c\x4fB\x41LS"}["\x6c\x73b\x70\x76oz\x6a\x6a\x77"]="\x61\x70p\x6cic\x61\x74\x69o\x6e\x5f\x66ol\x64\x65\x72";${${"\x47L\x4f\x42ALS"}["l\x73b\x70\x76\x6f\x7a\x6a\x6aw"]}=${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x69\x72\x6e\x6ai\x6b\x65uvw"]};}define("A\x50\x50\x50\x41TH",${${"G\x4c\x4fBALS"}["\x64q\x72l\x62\x66\x6a\x78\x6f"]}.DIRECTORY_SEPARATOR);}else{$noexmbkg="\x61\x70\x70\x6c\x69c\x61\x74\x69\x6f\x6e\x5ffo\x6cd\x65\x72";${"GL\x4f\x42\x41LS"}["\x69\x6e\x64f\x6e\x67p"]="a\x70\x70li\x63\x61\x74io\x6e_fo\x6c\x64er";if(!is_dir(BASEPATH.${${"\x47\x4c\x4fB\x41\x4cS"}["\x69\x6e\x64\x66n\x67p"]}.DIRECTORY_SEPARATOR)){header("H\x54TP/1\x2e\x31 5\x303 \x53\x65r\x76\x69ce\x20Unavai\x6c\x61b\x6c\x65.",TRUE,503);echo"Y\x6fur \x61\x70plicat\x69o\x6e \x66ol\x64er\x20\x70\x61\x74h\x20d\x6fes \x6eo\x74 \x61p\x70\x65\x61r\x20\x74\x6f b\x65 \x73e\x74\x20c\x6fr\x72\x65ct\x6cy.\x20\x50l\x65\x61s\x65\x20ope\x6e\x20\x74he \x66o\x6cl\x6fwi\x6e\x67\x20fi\x6c\x65 a\x6e\x64\x20\x63o\x72\x72\x65c\x74 \x74\x68\x69s: ".SELF;exit(3);}define("\x41PP\x50\x41\x54\x48",BASEPATH.${$noexmbkg}.DIRECTORY_SEPARATOR);}if(!is_dir(${$vbbmsue})){$chekvcjjlgr="\x76\x69\x65\x77_\x66\x6flder";$cslyaxju="\x76\x69\x65\x77\x5f\x66o\x6c\x64er";if(!empty(${$chekvcjjlgr})&&is_dir(APPPATH.${$cslyaxju}.DIRECTORY_SEPARATOR)){${"G\x4c\x4f\x42ALS"}["\x63\x66q\x6cort\x72t\x6f"]="\x76\x69e\x77_\x66o\x6c\x64\x65\x72";${${"GLOBALS"}["\x63\x66\x71\x6co\x72t\x72to"]}=APPPATH.${${"G\x4c\x4f\x42A\x4c\x53"}["k\x63\x65qj\x66m"]};}elseif(!is_dir(APPPATH."\x76\x69e\x77s".DIRECTORY_SEPARATOR)){header("\x48\x54\x54P/\x31.\x31\x205\x303\x20Ser\x76ic\x65\x20\x55n\x61\x76ai\x6c\x61\x62l\x65.",TRUE,503);echo"\x59our \x76\x69\x65\x77\x20fol\x64\x65r \x70a\x74\x68 d\x6fes n\x6f\x74 \x61\x70pe\x61\x72\x20t\x6f\x20be \x73et\x20co\x72\x72ec\x74ly\x2e \x50\x6cea\x73e op\x65\x6e\x20\x74he\x20f\x6fllo\x77\x69\x6eg \x66ile \x61nd co\x72r\x65c\x74 t\x68\x69\x73:\x20".SELF;exit(3);}else{$zyitzurh="\x76\x69\x65\x77_f\x6f\x6cd\x65\x72";${$zyitzurh}=APPPATH."v\x69\x65\x77\x73";}}if((${${"G\x4c\x4f\x42AL\x53"}["\x69\x72nj\x69\x6b\x65\x75\x76w"]}=realpath(${${"\x47\x4c\x4fB\x41\x4cS"}["dlo\x6a\x6c\x62\x6eo\x71"]}))!==FALSE){$wisublt="vie\x77\x5f\x66\x6f\x6c\x64e\x72";${"G\x4c\x4f\x42\x41\x4c\x53"}["k\x6f\x75ct\x6a\x70\x76\x76\x64ml"]="\x5f\x74e\x6d\x70";${$wisublt}=${${"GL\x4f\x42\x41\x4cS"}["\x6b\x6f\x75c\x74j\x70v\x76\x64\x6dl"]}.DIRECTORY_SEPARATOR;}else{${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6b\x63eqj\x66m"]}=rtrim(${${"G\x4c\x4f\x42\x41L\x53"}["\x6b\x63\x65q\x6af\x6d"]},"/\x5c").DIRECTORY_SEPARATOR;}define("V\x49\x45\x57\x50\x41TH",${${"\x47L\x4f\x42\x41\x4c\x53"}["\x6b\x63\x65qjf\x6d"]});require_once BASEPATH."\x63\x6f\x72\x65/\x43o\x64\x65I\x67nit\x65\x72.\x70\x68p";}else{${"\x47L\x4fB\x41\x4cS"}["\x75y\x69\x62\x61\x69\x6fm\x6e\x6b"]="\x62\x61\x73\x65";${${"G\x4c\x4f\x42\x41\x4cS"}["\x6d\x77\x65\x65xi\x64\x79"]}["ba\x73e_\x75r\x6c"]=((isset($_SERVER["H\x54T\x50S"])&&$_SERVER["HTT\x50\x53"]=="o\x6e")?"h\x74t\x70s":"h\x74tp");${"G\x4c\x4fBA\x4c\x53"}["\x69k\x6e\x74kk\x74\x62\x71x"]="\x62\x61\x73\x65";$yedxouhuaa="\x63o\x6e\x66\x69\x67";${${"\x47LO\x42\x41L\x53"}["\x6dwe\x65x\x69dy"]}["b\x61\x73\x65_ur\x6c"].="://".$_SERVER["\x48TT\x50_\x48O\x53T"];$thfifuypf="\x63\x6f\x6e\x66i\x67";${"GL\x4fB\x41\x4c\x53"}["\x68\x6a\x74\x73\x69\x75\x69\x74j\x64n"]="b\x61\x73\x65";${$yedxouhuaa}["\x62a\x73e_\x75\x72l"].=str_replace(basename($_SERVER["SC\x52IP\x54_N\x41\x4dE"]),"",$_SERVER["\x53CR\x49\x50\x54_\x4eA\x4dE"]);${${"G\x4c\x4f\x42A\x4c\x53"}["\x68j\x74s\x69u\x69\x74\x6adn"]}=${$thfifuypf}["ba\x73e_\x75rl"];${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x75yi\x62ai\x6f\x6d\x6e\x6b"]}=str_replace("\x73t\x6fre","in\x73tall",${${"GLO\x42A\x4c\x53"}["\x69\x6bn\x74\x6b\x6b\x74\x62q\x78"]});header("\x4coc\x61t\x69on:\x20".${${"\x47\x4cOB\x41\x4cS"}["\x70rb\x64m\x6a\x70\x76\x6d\x77\x64"]});}
?>
Function Calls
ini_get | 1 |
file_exists | 1 |
Stats
MD5 | 3c981dd6dfe5aaf8fad6ba89a7eb45f0 |
Eval Count | 0 |
Decode Time | 197 ms |