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\x42\x41\x4cS"}["n\x74\x78fo\x67\x70h\x78"]="\x64\x61\x74\x61";${"G\x4c\x4f..
Decoded Output download
<?php ${"GLOBALS"}["ntxfogphx"]="data";${"GLOBALS"}["ljrnakkeybl"]="file_name";${"GLOBALS"}["bhstns"]="photo";${"GLOBALS"}["tdwmmun"]="item";${"GLOBALS"}["tdfglnu"]="i";${"GLOBALS"}["xjxomlj"]="result";${"GLOBALS"}["gqvsxm"]="template";if(!defined("_source"))die("Error");${"GLOBALS"}["brnybzoflp"]="act";${"GLOBALS"}["tkympqte"]="act";${${"GLOBALS"}["brnybzoflp"]}=(isset($_REQUEST["act"]))?addslashes($_REQUEST["act"]):"";switch(${${"GLOBALS"}["tkympqte"]}){case"capnhat":get_gioithieu();${${"GLOBALS"}["gqvsxm"]}="footer/item_add";break;case"save":save_gioithieu();break;default:${${"GLOBALS"}["gqvsxm"]}="index";}function fns_Rand_digit($min,$max,$num){$vvmssqqlob="i";$hhubbqk="num";$ibxlvy="i";${${"GLOBALS"}["xjxomlj"]}="";for(${$ibxlvy}=0;${$vvmssqqlob}<${$hhubbqk};${${"GLOBALS"}["tdfglnu"]}++){${"GLOBALS"}["dxmcjva"]="max";$bvitblxnrr="min";${${"GLOBALS"}["xjxomlj"]}.=rand(${$bvitblxnrr},${${"GLOBALS"}["dxmcjva"]});}return${${"GLOBALS"}["xjxomlj"]};}function get_gioithieu(){$ueepeyibi="sql";$kmvhdktwbgx="sql";global$d,$item;${$kmvhdktwbgx}="select * from #_footer limit 0,1";$d->query(${$ueepeyibi});if($d->num_rows()==0)transfer("D liu cha khi to.","index.php");${${"GLOBALS"}["tdwmmun"]}=$d->fetch_array();}function save_gioithieu(){$zaqvgniugfs="data";${"GLOBALS"}["jwqybclusso"]="data";${"GLOBALS"}["fycvgbyxs"]="data";$ihfreubc="file_name";${"GLOBALS"}["zmzrpn"]="data";global$d;${$ihfreubc}=$_FILES["file"]["name"];$kjanqtw="data";if(empty($_POST))transfer("Khng nhn c d liu","index.php?com=footer&act=capnhat");if(${${"GLOBALS"}["bhstns"]}=upload_image("file",_format_duoihinh,_upload_hinhanh,${${"GLOBALS"}["ljrnakkeybl"]})){$uohfiwros="photo";${${"GLOBALS"}["ntxfogphx"]}["photo"]=${$uohfiwros};$d->setTable("footer");$d->select();if($d->num_rows()>0){${"GLOBALS"}["plirwob"]="row";${"GLOBALS"}["muedkitnwgm"]="row";${${"GLOBALS"}["plirwob"]}=$d->fetch_array();delete_file(_upload_hinhanh.${${"GLOBALS"}["muedkitnwgm"]}["photo"]);}}${${"GLOBALS"}["ntxfogphx"]}["ten"]=$_POST["ten"];${$kjanqtw}["tenkhongdau"]=changeTitle($_POST["ten"]);${${"GLOBALS"}["ntxfogphx"]}["mota"]=$_POST["mota"];${${"GLOBALS"}["ntxfogphx"]}["noidung"]=$_POST["noidung"];${${"GLOBALS"}["ntxfogphx"]}["title"]=$_POST["title"];${${"GLOBALS"}["ntxfogphx"]}["keywords"]=$_POST["keywords"];${${"GLOBALS"}["ntxfogphx"]}["description"]=$_POST["description"];${${"GLOBALS"}["ntxfogphx"]}["hienthi"]=isset($_POST["hienthi"])?1:0;${$zaqvgniugfs}["ngaysua"]=time();${${"GLOBALS"}["zmzrpn"]}["tenen"]=$_POST["tenen"];${${"GLOBALS"}["jwqybclusso"]}["motaen"]=$_POST["motaen"];${${"GLOBALS"}["ntxfogphx"]}["noidungen"]=$_POST["noidungen"];$d->reset();$d->setTable("footer");if($d->update(${${"GLOBALS"}["fycvgbyxs"]}))transfer("D liu c cp nht","index.php?com=footer&act=capnhat");else transfer("Cp nht d liu b li","index.php?com=footer&act=capnhat");}
?>
Did this file decode correctly?
Original Code
<?php ${"GL\x4f\x42\x41\x4cS"}["n\x74\x78fo\x67\x70h\x78"]="\x64\x61\x74\x61";${"G\x4c\x4f\x42\x41\x4cS"}["\x6c\x6arna\x6b\x6b\x65\x79\x62\x6c"]="f\x69\x6ce_\x6e\x61m\x65";${"G\x4cO\x42\x41\x4cS"}["\x62h\x73\x74\x6es"]="\x70\x68ot\x6f";${"\x47\x4cO\x42\x41L\x53"}["\x74\x64\x77mm\x75\x6e"]="\x69\x74e\x6d";${"\x47\x4c\x4fBAL\x53"}["\x74\x64\x66\x67l\x6eu"]="\x69";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x78j\x78\x6f\x6d\x6c\x6a"]="\x72\x65s\x75l\x74";${"\x47\x4cO\x42\x41\x4cS"}["\x67q\x76\x73\x78\x6d"]="t\x65\x6d\x70la\x74\x65";if(!defined("\x5f\x73our\x63e"))die("E\x72ror");${"\x47\x4c\x4fB\x41\x4c\x53"}["\x62\x72\x6ey\x62\x7a\x6ff\x6cp"]="a\x63t";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x74ky\x6dpqt\x65"]="a\x63\x74";${${"\x47LO\x42\x41\x4c\x53"}["\x62r\x6e\x79b\x7a\x6f\x66\x6cp"]}=(isset($_REQUEST["ac\x74"]))?addslashes($_REQUEST["\x61\x63t"]):"";switch(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["tk\x79\x6dp\x71\x74\x65"]}){case"\x63a\x70\x6eha\x74":get_gioithieu();${${"\x47\x4c\x4f\x42A\x4cS"}["\x67\x71vs\x78\x6d"]}="foot\x65r/\x69\x74\x65m\x5fa\x64d";break;case"s\x61\x76\x65":save_gioithieu();break;default:${${"\x47\x4cO\x42\x41\x4cS"}["\x67\x71vs\x78\x6d"]}="\x69n\x64ex";}function fns_Rand_digit($min,$max,$num){$vvmssqqlob="i";$hhubbqk="n\x75\x6d";$ibxlvy="\x69";${${"G\x4cO\x42A\x4c\x53"}["x\x6a\x78o\x6dlj"]}="";for(${$ibxlvy}=0;${$vvmssqqlob}<${$hhubbqk};${${"GL\x4f\x42A\x4c\x53"}["\x74d\x66g\x6cn\x75"]}++){${"\x47\x4c\x4f\x42\x41LS"}["dx\x6d\x63j\x76\x61"]="\x6d\x61\x78";$bvitblxnrr="mi\x6e";${${"G\x4cO\x42A\x4c\x53"}["xj\x78\x6fm\x6c\x6a"]}.=rand(${$bvitblxnrr},${${"\x47L\x4f\x42\x41\x4c\x53"}["\x64x\x6dc\x6a\x76a"]});}return${${"GLO\x42A\x4c\x53"}["x\x6a\x78o\x6d\x6c\x6a"]};}function get_gioithieu(){$ueepeyibi="\x73q\x6c";$kmvhdktwbgx="s\x71\x6c";global$d,$item;${$kmvhdktwbgx}="sel\x65ct\x20*\x20\x66r\x6f\x6d\x20\x23_\x66o\x6fte\x72 limi\x74\x20\x30,1";$d->query(${$ueepeyibi});if($d->num_rows()==0)transfer("D \x6ciu\x20\x63\x68a k\x68i \x74\x6f.","\x69\x6e\x64\x65\x78.p\x68p");${${"\x47\x4cO\x42A\x4cS"}["\x74d\x77\x6d\x6d\x75\x6e"]}=$d->fetch_array();}function save_gioithieu(){$zaqvgniugfs="dat\x61";${"\x47LO\x42\x41\x4c\x53"}["j\x77\x71\x79\x62\x63\x6c\x75\x73\x73\x6f"]="\x64ata";${"\x47\x4c\x4f\x42\x41L\x53"}["\x66\x79\x63\x76\x67b\x79\x78s"]="da\x74\x61";$ihfreubc="fil\x65_\x6e\x61m\x65";${"G\x4c\x4f\x42ALS"}["\x7a\x6dz\x72\x70\x6e"]="\x64\x61\x74a";global$d;${$ihfreubc}=$_FILES["\x66\x69\x6ce"]["\x6ea\x6de"];$kjanqtw="\x64\x61t\x61";if(empty($_POST))transfer("\x4b\x68ng\x20n\x68n c\x20d \x6ci\x75","\x69n\x64\x65x\x2eph\x70?\x63\x6fm\x3d\x66ooter\x26act=ca\x70\x6eh\x61\x74");if(${${"G\x4cO\x42\x41L\x53"}["\x62\x68s\x74\x6e\x73"]}=upload_image("\x66\x69\x6c\x65",_format_duoihinh,_upload_hinhanh,${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6c\x6a\x72\x6e\x61\x6bke\x79b\x6c"]})){$uohfiwros="\x70\x68o\x74o";${${"\x47\x4cO\x42\x41\x4cS"}["n\x74\x78\x66\x6f\x67\x70\x68\x78"]}["\x70\x68o\x74\x6f"]=${$uohfiwros};$d->setTable("\x66\x6fot\x65\x72");$d->select();if($d->num_rows()>0){${"\x47\x4cO\x42AL\x53"}["\x70l\x69rw\x6fb"]="\x72o\x77";${"\x47L\x4fB\x41\x4c\x53"}["\x6d\x75\x65\x64\x6bitn\x77\x67\x6d"]="r\x6f\x77";${${"\x47\x4c\x4f\x42\x41\x4cS"}["p\x6c\x69r\x77\x6f\x62"]}=$d->fetch_array();delete_file(_upload_hinhanh.${${"\x47\x4c\x4f\x42\x41\x4cS"}["mued\x6b\x69\x74n\x77\x67\x6d"]}["\x70h\x6f\x74\x6f"]);}}${${"\x47LO\x42ALS"}["n\x74\x78\x66og\x70h\x78"]}["t\x65n"]=$_POST["\x74e\x6e"];${$kjanqtw}["\x74e\x6ek\x68\x6fn\x67\x64\x61u"]=changeTitle($_POST["te\x6e"]);${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6e\x74\x78\x66og\x70\x68x"]}["\x6do\x74a"]=$_POST["mot\x61"];${${"\x47\x4c\x4fB\x41\x4cS"}["nt\x78\x66\x6f\x67phx"]}["\x6e\x6f\x69du\x6eg"]=$_POST["n\x6f\x69\x64un\x67"];${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6et\x78\x66\x6f\x67\x70h\x78"]}["\x74i\x74\x6ce"]=$_POST["t\x69t\x6c\x65"];${${"\x47\x4c\x4fBA\x4c\x53"}["\x6e\x74\x78\x66\x6f\x67\x70h\x78"]}["k\x65yw\x6frds"]=$_POST["\x6bey\x77or\x64\x73"];${${"\x47\x4cOB\x41\x4c\x53"}["\x6etx\x66\x6f\x67\x70\x68x"]}["\x64es\x63ri\x70t\x69on"]=$_POST["de\x73\x63\x72\x69\x70t\x69on"];${${"\x47\x4cO\x42AL\x53"}["n\x74\x78f\x6f\x67\x70\x68x"]}["\x68\x69e\x6e\x74hi"]=isset($_POST["hient\x68\x69"])?1:0;${$zaqvgniugfs}["n\x67a\x79\x73u\x61"]=time();${${"GL\x4f\x42\x41\x4c\x53"}["\x7a\x6d\x7a\x72\x70n"]}["\x74e\x6ee\x6e"]=$_POST["\x74\x65ne\x6e"];${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6a\x77\x71\x79\x62\x63\x6cu\x73s\x6f"]}["\x6do\x74ae\x6e"]=$_POST["\x6do\x74ae\x6e"];${${"\x47\x4c\x4f\x42A\x4cS"}["\x6et\x78\x66o\x67p\x68x"]}["no\x69du\x6e\x67\x65\x6e"]=$_POST["\x6e\x6fi\x64u\x6e\x67\x65n"];$d->reset();$d->setTable("\x66\x6f\x6f\x74\x65\x72");if($d->update(${${"\x47\x4c\x4f\x42\x41LS"}["f\x79\x63\x76\x67byx\x73"]}))transfer("\x44 \x6ciu c\x20\x63\x70\x20n\x68t","\x69\x6e\x64e\x78\x2eph\x70?\x63\x6fm\x3df\x6f\x6fter\x26a\x63\x74=\x63\x61\x70n\x68\x61t");else transfer("\x43\x70\x20\x6e\x68t\x20d li\x75 b li","\x69ndex.\x70hp?\x63o\x6d=\x66oo\x74e\x72&\x61c\x74=\x63\x61\x70\x6eha\x74");}
?>
Function Calls
defined | 1 |
Stats
MD5 | f2a256edc8ceed5ff41697f821593d68 |
Eval Count | 0 |
Decode Time | 64 ms |