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 ${"\x47L\x4fB\x41L\x53"}["\x72\x78l\x77i\x70k"]="fi\x65l\x64\x44\x65\x74\x61\x69\x6c..

Decoded Output download

<?php ${"GLOBALS"}["rxlwipk"]="fieldDetails";${"GLOBALS"}["nxzlyswyl"]="fieldValues";${"GLOBALS"}["zraotxvtm"]="data";${"GLOBALS"}["utjbbwy"]="value";${"GLOBALS"}["plkgnrvs"]="fetchMode";${"GLOBALS"}["wdftmwmg"]="key";${"GLOBALS"}["yzkuultel"]="array";${"GLOBALS"}["jxtuowitc"]="sql";${"GLOBALS"}["eddjvbte"]="sth";${"GLOBALS"}["iqboncni"]="DB_PASS";${"GLOBALS"}["lktrgwbqwlj"]="DB_TYPE";class Database extends PDO{public function __construct($DB_TYPE,$DB_HOST,$DB_NAME,$DB_USER,$DB_PASS){${"GLOBALS"}["ktbxujckuss"]="DB_USER";$vouancea="DB_HOST";$htyfwrijxvhy="DB_NAME";parent::__construct(${${"GLOBALS"}["lktrgwbqwlj"]}.":host=".${$vouancea}.";dbname=".${$htyfwrijxvhy},${${"GLOBALS"}["ktbxujckuss"]},${${"GLOBALS"}["iqboncni"]});}public function select($sql,$array=array(),$fetchMode=PDO::FETCH_ASSOC){$lbftrbodd="value";${${"GLOBALS"}["eddjvbte"]}=$this->prepare(${${"GLOBALS"}["jxtuowitc"]});$this->exec("set names utf8");foreach(${${"GLOBALS"}["yzkuultel"]} as${${"GLOBALS"}["wdftmwmg"]}=>${$lbftrbodd}){${"GLOBALS"}["arhvxuibt"]="value";$sth->bindValue(":$key",${${"GLOBALS"}["arhvxuibt"]});}$sth->execute();return$sth->fetchAll(${${"GLOBALS"}["plkgnrvs"]});}public function get_value($sql,$array=array(),$fetchMode=PDO::FETCH_ASSOC){${"GLOBALS"}["xbxdrvcdh"]="sql";${"GLOBALS"}["vvyquwkfv"]="sth";${"GLOBALS"}["vmkxlrg"]="value";${${"GLOBALS"}["vvyquwkfv"]}=$this->prepare(${${"GLOBALS"}["xbxdrvcdh"]});foreach(${${"GLOBALS"}["yzkuultel"]} as${${"GLOBALS"}["wdftmwmg"]}=>${${"GLOBALS"}["vmkxlrg"]}){$sth->bindValue(":$key",${${"GLOBALS"}["utjbbwy"]});}$sth->execute();return$sth->fetchColumn(0);}public function insert($table,$data){$tigqmsultsnu="value";$oajsory="fieldNames";ksort(${${"GLOBALS"}["zraotxvtm"]});$shvqbhyoyicw="key";${$oajsory}=implode("`, `",array_keys(${${"GLOBALS"}["zraotxvtm"]}));${${"GLOBALS"}["nxzlyswyl"]}=":".implode(", :",array_keys(${${"GLOBALS"}["zraotxvtm"]}));$this->exec("set names utf8");${${"GLOBALS"}["eddjvbte"]}=$this->prepare("INSERT INTO $table (`$fieldNames`) VALUES ($fieldValues)");$vycbsknbkbx="data";foreach(${$vycbsknbkbx} as${$shvqbhyoyicw}=>${$tigqmsultsnu}){$bsrdjelclkhs="value";$sth->bindValue(":$key",${$bsrdjelclkhs});}$sth->execute();}public function update($table,$data,$where){${"GLOBALS"}["tbkkapz"]="fieldDetails";$wqnfaxtz="data";${"GLOBALS"}["mbvjenx"]="sth";$kvnmxkzo="key";ksort(${$wqnfaxtz});${${"GLOBALS"}["tbkkapz"]}=null;${"GLOBALS"}["kppebki"]="value";foreach(${${"GLOBALS"}["zraotxvtm"]} as${$kvnmxkzo}=>${${"GLOBALS"}["kppebki"]}){${${"GLOBALS"}["rxlwipk"]}.="`$key` = :$key, ";}${${"GLOBALS"}["rxlwipk"]}=rtrim(${${"GLOBALS"}["rxlwipk"]},", ");${${"GLOBALS"}["mbvjenx"]}=$this->prepare("UPDATE $table SET $fieldDetails WHERE $where");foreach(${${"GLOBALS"}["zraotxvtm"]} as${${"GLOBALS"}["wdftmwmg"]}=>${${"GLOBALS"}["utjbbwy"]}){$sth->bindValue(":$key",${${"GLOBALS"}["utjbbwy"]});}$sth->execute();}public function delete($table,$where,$limit=1){return$this->exec("DELETE FROM $table WHERE $where LIMIT $limit");}} 
?>

Did this file decode correctly?

Original Code

<?php ${"\x47L\x4fB\x41L\x53"}["\x72\x78l\x77i\x70k"]="fi\x65l\x64\x44\x65\x74\x61\x69\x6cs";${"\x47L\x4f\x42\x41L\x53"}["nx\x7al\x79s\x77yl"]="\x66i\x65l\x64\x56\x61lue\x73";${"G\x4c\x4f\x42\x41\x4c\x53"}["z\x72ao\x74\x78vt\x6d"]="\x64\x61\x74a";${"G\x4c\x4fB\x41\x4c\x53"}["\x75\x74j\x62bw\x79"]="va\x6cu\x65";${"\x47\x4cO\x42\x41\x4cS"}["\x70\x6c\x6b\x67n\x72\x76\x73"]="\x66e\x74\x63h\x4d\x6f\x64e";${"\x47LOBA\x4cS"}["\x77\x64\x66\x74\x6dw\x6d\x67"]="\x6b\x65y";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x79\x7a\x6b\x75\x75l\x74\x65l"]="a\x72r\x61\x79";${"G\x4cO\x42\x41L\x53"}["\x6ax\x74uo\x77\x69\x74\x63"]="\x73\x71\x6c";${"\x47\x4c\x4f\x42A\x4c\x53"}["ed\x64\x6av\x62t\x65"]="\x73t\x68";${"\x47L\x4f\x42\x41L\x53"}["\x69\x71\x62\x6f\x6ec\x6e\x69"]="D\x42_\x50\x41S\x53";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6c\x6b\x74\x72\x67\x77b\x71w\x6cj"]="\x44\x42\x5f\x54\x59PE";class Database extends PDO{public function __construct($DB_TYPE,$DB_HOST,$DB_NAME,$DB_USER,$DB_PASS){${"G\x4c\x4f\x42AL\x53"}["\x6b\x74\x62\x78\x75\x6ac\x6bus\x73"]="\x44\x42_\x55\x53\x45\x52";$vouancea="\x44B_\x48\x4fST";$htyfwrijxvhy="D\x42\x5f\x4eA\x4d\x45";parent::__construct(${${"\x47LOB\x41\x4c\x53"}["\x6c\x6b\x74\x72\x67\x77\x62\x71\x77\x6c\x6a"]}.":ho\x73\x74=".${$vouancea}.";dbn\x61m\x65\x3d".${$htyfwrijxvhy},${${"\x47\x4c\x4f\x42\x41\x4cS"}["k\x74\x62x\x75\x6a\x63\x6b\x75\x73\x73"]},${${"G\x4c\x4fBAL\x53"}["\x69q\x62\x6fn\x63\x6e\x69"]});}public function select($sql,$array=array(),$fetchMode=PDO::FETCH_ASSOC){$lbftrbodd="\x76\x61\x6cue";${${"\x47\x4cO\x42\x41\x4c\x53"}["\x65\x64d\x6av\x62te"]}=$this->prepare(${${"GL\x4fBA\x4c\x53"}["\x6axt\x75\x6fwit\x63"]});$this->exec("\x73e\x74 na\x6de\x73\x20utf8");foreach(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x79\x7a\x6bu\x75\x6c\x74el"]} as${${"GL\x4fB\x41\x4c\x53"}["\x77df\x74\x6d\x77m\x67"]}=>${$lbftrbodd}){${"\x47L\x4fBA\x4cS"}["\x61\x72hv\x78\x75\x69bt"]="\x76a\x6c\x75\x65";$sth->bindValue(":$key",${${"\x47L\x4f\x42A\x4cS"}["\x61\x72\x68\x76\x78\x75\x69b\x74"]});}$sth->execute();return$sth->fetchAll(${${"GLO\x42\x41\x4c\x53"}["\x70\x6ck\x67n\x72\x76\x73"]});}public function get_value($sql,$array=array(),$fetchMode=PDO::FETCH_ASSOC){${"\x47\x4cO\x42\x41\x4cS"}["x\x62\x78d\x72\x76\x63\x64h"]="\x73\x71\x6c";${"G\x4c\x4f\x42\x41\x4cS"}["\x76\x76\x79q\x75\x77\x6b\x66\x76"]="\x73\x74\x68";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x76m\x6b\x78\x6crg"]="v\x61l\x75\x65";${${"\x47L\x4fBA\x4cS"}["v\x76yq\x75\x77kf\x76"]}=$this->prepare(${${"\x47\x4cOB\x41\x4c\x53"}["xb\x78\x64r\x76cd\x68"]});foreach(${${"\x47\x4c\x4f\x42AL\x53"}["\x79\x7aku\x75\x6c\x74\x65\x6c"]} as${${"GL\x4f\x42\x41L\x53"}["wd\x66t\x6d\x77\x6d\x67"]}=>${${"\x47L\x4f\x42\x41\x4c\x53"}["v\x6dkx\x6c\x72\x67"]}){$sth->bindValue(":$key",${${"\x47\x4cO\x42\x41\x4cS"}["\x75\x74\x6a\x62\x62wy"]});}$sth->execute();return$sth->fetchColumn(0);}public function insert($table,$data){$tigqmsultsnu="\x76alu\x65";$oajsory="\x66\x69\x65\x6c\x64N\x61\x6de\x73";ksort(${${"\x47L\x4f\x42ALS"}["\x7a\x72a\x6ftx\x76\x74\x6d"]});$shvqbhyoyicw="ke\x79";${$oajsory}=implode("\x60, `",array_keys(${${"GL\x4fBA\x4c\x53"}["\x7ar\x61\x6f\x74\x78\x76\x74\x6d"]}));${${"\x47LOB\x41\x4cS"}["\x6e\x78\x7al\x79s\x77y\x6c"]}=":".implode(",\x20:",array_keys(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x7ar\x61\x6f\x74\x78\x76\x74\x6d"]}));$this->exec("s\x65\x74 n\x61m\x65s\x20u\x74\x66\x38");${${"\x47\x4cO\x42\x41\x4c\x53"}["\x65\x64\x64j\x76bt\x65"]}=$this->prepare("\x49\x4e\x53\x45\x52T I\x4e\x54O\x20$table\x20(`$fieldNames`)\x20V\x41LU\x45S\x20($fieldValues)");$vycbsknbkbx="\x64\x61ta";foreach(${$vycbsknbkbx} as${$shvqbhyoyicw}=>${$tigqmsultsnu}){$bsrdjelclkhs="\x76\x61\x6cu\x65";$sth->bindValue(":$key",${$bsrdjelclkhs});}$sth->execute();}public function update($table,$data,$where){${"\x47\x4cO\x42\x41L\x53"}["t\x62\x6bka\x70\x7a"]="\x66\x69\x65\x6cdD\x65t\x61\x69\x6c\x73";$wqnfaxtz="d\x61\x74\x61";${"\x47\x4c\x4fB\x41\x4c\x53"}["m\x62v\x6ae\x6ex"]="\x73th";$kvnmxkzo="\x6b\x65\x79";ksort(${$wqnfaxtz});${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x74\x62k\x6b\x61\x70z"]}=null;${"\x47\x4cO\x42\x41\x4c\x53"}["\x6b\x70\x70eb\x6b\x69"]="\x76a\x6c\x75\x65";foreach(${${"\x47\x4c\x4f\x42\x41L\x53"}["\x7a\x72a\x6ftx\x76tm"]} as${$kvnmxkzo}=>${${"\x47LO\x42AL\x53"}["\x6bpp\x65\x62k\x69"]}){${${"\x47L\x4f\x42A\x4c\x53"}["r\x78\x6cw\x69p\x6b"]}.="\x60$key\x60 = :$key, ";}${${"\x47\x4c\x4f\x42\x41L\x53"}["r\x78l\x77\x69p\x6b"]}=rtrim(${${"\x47L\x4f\x42\x41LS"}["\x72\x78l\x77i\x70\x6b"]},", ");${${"\x47L\x4f\x42\x41L\x53"}["\x6dbv\x6a\x65\x6e\x78"]}=$this->prepare("UP\x44AT\x45 $table\x20SE\x54\x20$fieldDetails\x20W\x48E\x52E\x20$where");foreach(${${"G\x4cO\x42\x41\x4c\x53"}["zr\x61\x6ft\x78\x76\x74m"]} as${${"\x47\x4c\x4f\x42\x41\x4cS"}["w\x64\x66\x74mwmg"]}=>${${"G\x4c\x4f\x42A\x4c\x53"}["\x75tj\x62\x62\x77\x79"]}){$sth->bindValue(":$key",${${"G\x4cO\x42A\x4c\x53"}["\x75\x74\x6a\x62\x62\x77\x79"]});}$sth->execute();}public function delete($table,$where,$limit=1){return$this->exec("\x44E\x4cE\x54E FR\x4fM $table \x57H\x45R\x45 $where LIMIT\x20$limit");}}
?>

Function Calls

None

Variables

None

Stats

MD5 3bc207cd036dde91674db46037d7000b
Eval Count 0
Decode Time 70 ms