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 ${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6d\x64\x70f\x68\x63\x61\x78\x79\x72\x67"]="\x69..
Decoded Output download
<?php ${"GLOBALS"}["mdpfhcaxyrg"]="idTin";${"GLOBALS"}["whotyrvse"]="listid";${"GLOBALS"}["ixgvocgntr"]="row";${"GLOBALS"}["dvhuulhpig"]="data";${"GLOBALS"}["budlqbqwnvq"]="photo";${"GLOBALS"}["jrjbrsk"]="id";${"GLOBALS"}["bnpewon"]="file_name";${"GLOBALS"}["gxufujei"]="offset";${"GLOBALS"}["xjsrinxs"]="pageSize";${"GLOBALS"}["tnicqvsjcadb"]="page";${"GLOBALS"}["ultdesh"]="totalRows";${"GLOBALS"}["vhbotxkct"]="dem";${"GLOBALS"}["wwpgxuwcmf"]="sql";${"GLOBALS"}["soufty"]="where";${"GLOBALS"}["jewcyslbgkar"]="i";${"GLOBALS"}["xvbfbc"]="result";${"GLOBALS"}["apjhukez"]="template";${"GLOBALS"}["pomscve"]="template";$ilvcogj="template";${"GLOBALS"}["dwategwpxy"]="act";${"GLOBALS"}["qqlnxrkuy"]="urlcu";$dvecytudwhh="urlcu";$fkgrifdpzbqt="act";if(!defined("_source"))die("Error");${$fkgrifdpzbqt}=(isset($_REQUEST["act"]))?addslashes($_REQUEST["act"]):"";${${"GLOBALS"}["qqlnxrkuy"]}="";${"GLOBALS"}["mdnbdifqli"]="template";${$dvecytudwhh}.=(isset($_REQUEST["p"]))?"&p=".addslashes($_REQUEST["p"]):"";switch(${${"GLOBALS"}["dwategwpxy"]}){case"man":get_items();${${"GLOBALS"}["mdnbdifqli"]}="com/items";break;case"add":${${"GLOBALS"}["apjhukez"]}="com/item_add";break;case"edit":get_item();${${"GLOBALS"}["pomscve"]}="com/item_add";break;case"save":save_item();break;case"savestt":savestt_item();break;case"delete":delete_item();break;default:${$ilvcogj}="index";}function fns_Rand_digit($min,$max,$num){$dcvqcmtec="i";$hvjehr="i";$nrptcz="num";${${"GLOBALS"}["xvbfbc"]}="";for(${$hvjehr}=0;${$dcvqcmtec}<${$nrptcz};${${"GLOBALS"}["jewcyslbgkar"]}++){$fnxuuccjk="result";${"GLOBALS"}["ohymxwg"]="max";${"GLOBALS"}["mgocjyjofdx"]="min";${$fnxuuccjk}.=rand(${${"GLOBALS"}["mgocjyjofdx"]},${${"GLOBALS"}["ohymxwg"]});}return${${"GLOBALS"}["xvbfbc"]};}function get_items(){$hplmgbhtq="sql";global$d,$items,$url_link,$totalRows,$pageSize,$offset,$paging,$urlcu;if($_REQUEST["key"]!=""){${${"GLOBALS"}["soufty"]}.=" and ten like '%".$_REQUEST["key"]."%'";}${${"GLOBALS"}["soufty"]}.=" order by stt,id desc";${${"GLOBALS"}["wwpgxuwcmf"]}="SELECT count(id) AS numrows FROM #_com where id<>0 $where";${"GLOBALS"}["uhpeudisuarq"]="pageSize";$d->query(${$hplmgbhtq});${"GLOBALS"}["soscdxmdsx"]="page";${${"GLOBALS"}["vhbotxkct"]}=$d->fetch_array();$dqywia="page";$dqqcpngvpv="items";${${"GLOBALS"}["ultdesh"]}=${${"GLOBALS"}["vhbotxkct"]}["numrows"];${${"GLOBALS"}["tnicqvsjcadb"]}=$_GET["p"];${"GLOBALS"}["xagmxety"]="sql";${"GLOBALS"}["qhlojlis"]="page";$nfvnlomd="page";$jetitwkruyh="bg";${${"GLOBALS"}["xjsrinxs"]}=20;${${"GLOBALS"}["gxufujei"]}=10;if(${$dqywia}=="")${${"GLOBALS"}["qhlojlis"]}=1;else${$nfvnlomd}=$_GET["p"];${${"GLOBALS"}["tnicqvsjcadb"]}--;${$jetitwkruyh}=${${"GLOBALS"}["uhpeudisuarq"]}*${${"GLOBALS"}["soscdxmdsx"]};${"GLOBALS"}["odpluukuag"]="url_link";${${"GLOBALS"}["xagmxety"]}="select * from #_com where id<>0 $where limit $bg,$pageSize";$d->query(${${"GLOBALS"}["wwpgxuwcmf"]});${"GLOBALS"}["pmjvffdjpb"]="urlcu";${$dqqcpngvpv}=$d->result_array();${${"GLOBALS"}["odpluukuag"]}="index.php?com=com&act=man".${${"GLOBALS"}["pmjvffdjpb"]};}function get_item(){${"GLOBALS"}["keomib"]="id";global$d,$item,$urlcu;${"GLOBALS"}["iphwejn"]="sql";$bmqjgu="id";$kwfjtus="urlcu";$hhyhdacr="item";${"GLOBALS"}["ewhqrrhwmwo"]="id";${${"GLOBALS"}["ewhqrrhwmwo"]}=isset($_GET["id"])?themdau($_GET["id"]):"";if(!${$bmqjgu})transfer("Khng nhn c d liu","index.php?com=com&act=man".${$kwfjtus});${${"GLOBALS"}["iphwejn"]}="select * from #_com where id='".${${"GLOBALS"}["keomib"]}."'";${"GLOBALS"}["bkuujjdwcd"]="urlcu";$d->query(${${"GLOBALS"}["wwpgxuwcmf"]});if($d->num_rows()==0)transfer("D liu khng c thc","index.php?com=com&act=man".${${"GLOBALS"}["bkuujjdwcd"]});${$hhyhdacr}=$d->fetch_array();}function save_item(){${"GLOBALS"}["ohwteefqfhc"]="id";global$d,$urlcu;${"GLOBALS"}["fueinxox"]="urlcu";${${"GLOBALS"}["bnpewon"]}=$_FILES["file"]["name"];if(empty($_POST))transfer("Khng nhn c d liu","index.php?com=com&act=man".${${"GLOBALS"}["fueinxox"]});${${"GLOBALS"}["jrjbrsk"]}=isset($_POST["id"])?themdau($_POST["id"]):"";if(${${"GLOBALS"}["ohwteefqfhc"]}){$bbgtcj="id";${"GLOBALS"}["xgzjsbh"]="data";${$bbgtcj}=themdau($_POST["id"]);if(${${"GLOBALS"}["budlqbqwnvq"]}=upload_image("file",_format_duoihinh,_upload_khac,${${"GLOBALS"}["bnpewon"]})){$tqcxkxhk="id";${${"GLOBALS"}["dvhuulhpig"]}["photo"]=${${"GLOBALS"}["budlqbqwnvq"]};$d->setTable("com");$d->setWhere("id",${$tqcxkxhk});$d->select();if($d->num_rows()>0){$doknxmoz="row";${$doknxmoz}=$d->fetch_array();delete_file(_upload_khac.${${"GLOBALS"}["ixgvocgntr"]}["photo"]);}}${${"GLOBALS"}["dvhuulhpig"]}["ten"]=$_POST["ten"];${${"GLOBALS"}["dvhuulhpig"]}["tenkhongdau"]=changeTitle($_POST["ten"]);${${"GLOBALS"}["dvhuulhpig"]}["link"]=$_POST["link"];${"GLOBALS"}["tvufrvgrquh"]="data";${${"GLOBALS"}["dvhuulhpig"]}["stt"]=$_POST["stt"];${"GLOBALS"}["xjzmsfop"]="data";${"GLOBALS"}["mitxgsl"]="id";$lsrtcjvihoom="data";${${"GLOBALS"}["tvufrvgrquh"]}["com"]=$_POST["ten_com"];${${"GLOBALS"}["dvhuulhpig"]}["act"]=$_POST["ten_act"];${${"GLOBALS"}["xjzmsfop"]}["type"]=$_POST["type"];${$lsrtcjvihoom}["hienthi"]=isset($_POST["hienthi"])?1:0;${${"GLOBALS"}["dvhuulhpig"]}["noibat"]=isset($_POST["noibat"])?1:0;${${"GLOBALS"}["xgzjsbh"]}["ngaysua"]=time();$d->setTable("com");$d->setWhere("id",${${"GLOBALS"}["mitxgsl"]});if($d->update(${${"GLOBALS"}["dvhuulhpig"]}))redirect("index.php?com=com&act=man".${${"GLOBALS"}["qqlnxrkuy"]});else transfer("Cp nht d liu b li","index.php?com=com&act=man".${${"GLOBALS"}["qqlnxrkuy"]});}else{$philollejr="file_name";$crnvgrjln="data";${"GLOBALS"}["rthtwexbs"]="urlcu";$ywnbnxdgbs="data";${"GLOBALS"}["nmfflev"]="data";$ehunyesk="data";if(${${"GLOBALS"}["budlqbqwnvq"]}=upload_image("file",_format_duoihinh,_upload_khac,${$philollejr})){$lhzdbnwl="data";${"GLOBALS"}["rqemyvct"]="photo";${$lhzdbnwl}["photo"]=${${"GLOBALS"}["rqemyvct"]};}$iqqlrhh="data";$jbqpvzlbfq="data";${$ywnbnxdgbs}["ten"]=$_POST["ten"];${$iqqlrhh}["tenkhongdau"]=changeTitle($_POST["ten"]);${$ehunyesk}["link"]=$_POST["link"];${"GLOBALS"}["jdvsvdr"]="data";${${"GLOBALS"}["dvhuulhpig"]}["stt"]=$_POST["stt"];$hykbevf="data";${$crnvgrjln}["com"]=$_POST["ten_com"];${${"GLOBALS"}["dvhuulhpig"]}["act"]=$_POST["ten_act"];${$jbqpvzlbfq}["type"]=$_POST["type"];${${"GLOBALS"}["jdvsvdr"]}["hienthi"]=isset($_POST["hienthi"])?1:0;${${"GLOBALS"}["dvhuulhpig"]}["noibat"]=isset($_POST["noibat"])?1:0;${${"GLOBALS"}["nmfflev"]}["ngaytao"]=time();$d->setTable("com");if($d->insert(${$hykbevf}))redirect("index.php?com=com&act=man".${${"GLOBALS"}["qqlnxrkuy"]});else transfer("Lu d liu b li","index.php?com=com&act=man".${${"GLOBALS"}["rthtwexbs"]});}}function delete_item(){$mjyyyrnqjjm="urlcu";global$d,$urlcu;if(isset($_GET["id"])){${"GLOBALS"}["cetqhchwzdy"]="sql";${"GLOBALS"}["nyuybsn"]="sql";${"GLOBALS"}["paoyzql"]="sql";$ejccsvrgnbo="id";${$ejccsvrgnbo}=themdau($_GET["id"]);$tgycrmaizh="id";$d->reset();${${"GLOBALS"}["cetqhchwzdy"]}="select * from #_com where id='".${$tgycrmaizh}."'";$d->query(${${"GLOBALS"}["paoyzql"]});if($d->num_rows()>0){while(${${"GLOBALS"}["ixgvocgntr"]}=$d->fetch_array()){$urkvoqacgl="row";delete_file(_upload_khac.${$urkvoqacgl}["photo"]);}${${"GLOBALS"}["wwpgxuwcmf"]}="delete from #_com where id='".${${"GLOBALS"}["jrjbrsk"]}."'";$d->query(${${"GLOBALS"}["wwpgxuwcmf"]});}if($d->query(${${"GLOBALS"}["nyuybsn"]}))redirect("index.php?com=com&act=man");else transfer("Xa d liu b li","index.php?com=com&act=man".${${"GLOBALS"}["qqlnxrkuy"]});}elseif(isset($_GET["listid"])==true){$gguknvem="i";$qirxxx="listid";${"GLOBALS"}["sbbqvkyqsbb"]="urlcu";$hxcsicfr="i";$phlheglukivq="i";${$qirxxx}=explode(",",$_GET["listid"]);for(${$hxcsicfr}=0;${$gguknvem}<count(${${"GLOBALS"}["whotyrvse"]});${$phlheglukivq}++){$eqkjcfif="id";${"GLOBALS"}["eoxktbyymyj"]="idTin";${"GLOBALS"}["kdindqgd"]="i";${${"GLOBALS"}["mdpfhcaxyrg"]}=${${"GLOBALS"}["whotyrvse"]}[${${"GLOBALS"}["kdindqgd"]}];${${"GLOBALS"}["jrjbrsk"]}=themdau(${${"GLOBALS"}["eoxktbyymyj"]});${"GLOBALS"}["wzgpgis"]="sql";$d->reset();${${"GLOBALS"}["wzgpgis"]}="select * from #_com where id='".${$eqkjcfif}."'";$d->query(${${"GLOBALS"}["wwpgxuwcmf"]});if($d->num_rows()>0){while(${${"GLOBALS"}["ixgvocgntr"]}=$d->fetch_array()){${"GLOBALS"}["hswhwkedee"]="row";delete_file(_upload_khac.${${"GLOBALS"}["hswhwkedee"]}["photo"]);}${${"GLOBALS"}["wwpgxuwcmf"]}="delete from #_com where id='".${${"GLOBALS"}["jrjbrsk"]}."'";$d->query(${${"GLOBALS"}["wwpgxuwcmf"]});}}redirect("index.php?com=com&act=man".${${"GLOBALS"}["sbbqvkyqsbb"]});}else transfer("Khng nhn c d liu","index.php?com=com&act=man".${$mjyyyrnqjjm});}echo "
";
?>
Did this file decode correctly?
Original Code
<?php ${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6d\x64\x70f\x68\x63\x61\x78\x79\x72\x67"]="\x69\x64\x54\x69\x6e";${"\x47\x4cO\x42AL\x53"}["\x77ho\x74\x79\x72v\x73e"]="\x6cist\x69d";${"G\x4cO\x42\x41LS"}["\x69x\x67\x76\x6fc\x67\x6e\x74\x72"]="ro\x77";${"G\x4c\x4fBA\x4c\x53"}["\x64\x76\x68\x75\x75lhp\x69g"]="\x64\x61\x74a";${"G\x4c\x4fB\x41\x4c\x53"}["bu\x64\x6c\x71b\x71\x77\x6ev\x71"]="\x70\x68\x6fto";${"\x47\x4c\x4f\x42A\x4c\x53"}["j\x72\x6a\x62\x72s\x6b"]="\x69\x64";${"\x47\x4c\x4fBALS"}["\x62n\x70\x65\x77\x6fn"]="f\x69\x6ce\x5fname";${"G\x4c\x4fBA\x4c\x53"}["g\x78\x75\x66\x75\x6a\x65i"]="\x6ff\x66\x73\x65\x74";${"GLOBAL\x53"}["x\x6a\x73\x72\x69nx\x73"]="\x70a\x67\x65S\x69\x7a\x65";${"GLOB\x41L\x53"}["\x74ni\x63q\x76\x73\x6a\x63a\x64\x62"]="\x70\x61g\x65";${"\x47\x4cOB\x41\x4c\x53"}["\x75l\x74d\x65\x73h"]="t\x6ft\x61\x6c\x52\x6fw\x73";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["v\x68\x62\x6f\x74\x78\x6bct"]="de\x6d";${"G\x4c\x4fB\x41\x4c\x53"}["\x77\x77\x70\x67\x78\x75\x77c\x6d\x66"]="\x73\x71\x6c";${"\x47\x4cO\x42A\x4c\x53"}["\x73\x6fuf\x74y"]="\x77\x68\x65\x72e";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6a\x65\x77\x63\x79sl\x62g\x6b\x61r"]="\x69";${"G\x4c\x4fBA\x4c\x53"}["x\x76\x62\x66\x62\x63"]="re\x73\x75\x6ct";${"G\x4c\x4fBAL\x53"}["\x61pj\x68\x75\x6b\x65\x7a"]="t\x65\x6d\x70\x6cat\x65";${"GL\x4f\x42\x41\x4c\x53"}["p\x6f\x6d\x73\x63\x76e"]="\x74\x65\x6d\x70lat\x65";$ilvcogj="t\x65\x6dp\x6c\x61\x74\x65";${"\x47\x4cOBALS"}["\x64wa\x74\x65\x67\x77\x70\x78\x79"]="ac\x74";${"\x47\x4c\x4f\x42A\x4c\x53"}["\x71q\x6cn\x78\x72k\x75\x79"]="u\x72l\x63\x75";$dvecytudwhh="\x75rl\x63\x75";$fkgrifdpzbqt="\x61\x63\x74";if(!defined("_\x73\x6f\x75r\x63\x65"))die("E\x72\x72o\x72");${$fkgrifdpzbqt}=(isset($_REQUEST["\x61\x63t"]))?addslashes($_REQUEST["\x61ct"]):"";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x71q\x6cn\x78\x72\x6b\x75\x79"]}="";${"G\x4c\x4f\x42\x41\x4cS"}["m\x64\x6e\x62\x64i\x66q\x6ci"]="t\x65\x6d\x70\x6c\x61t\x65";${$dvecytudwhh}.=(isset($_REQUEST["p"]))?"\x26\x70=".addslashes($_REQUEST["\x70"]):"";switch(${${"\x47\x4c\x4fB\x41LS"}["d\x77\x61t\x65\x67\x77p\x78y"]}){case"m\x61\x6e":get_items();${${"\x47LO\x42\x41LS"}["\x6d\x64\x6e\x62\x64\x69f\x71l\x69"]}="c\x6f\x6d/i\x74e\x6ds";break;case"a\x64d":${${"\x47L\x4f\x42\x41\x4c\x53"}["\x61\x70\x6a\x68u\x6b\x65z"]}="\x63om/\x69\x74em\x5f\x61d\x64";break;case"\x65d\x69t":get_item();${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x70o\x6d\x73\x63\x76\x65"]}="\x63o\x6d/\x69t\x65\x6d\x5fad\x64";break;case"\x73\x61ve":save_item();break;case"\x73\x61\x76e\x73\x74t":savestt_item();break;case"d\x65l\x65te":delete_item();break;default:${$ilvcogj}="i\x6edex";}function fns_Rand_digit($min,$max,$num){$dcvqcmtec="\x69";$hvjehr="\x69";$nrptcz="\x6e\x75\x6d";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x78\x76\x62\x66\x62\x63"]}="";for(${$hvjehr}=0;${$dcvqcmtec}<${$nrptcz};${${"\x47\x4cO\x42\x41L\x53"}["\x6a\x65\x77c\x79\x73\x6cb\x67\x6b\x61\x72"]}++){$fnxuuccjk="\x72\x65\x73u\x6c\x74";${"\x47L\x4f\x42AL\x53"}["\x6fh\x79m\x78\x77\x67"]="\x6d\x61\x78";${"G\x4c\x4fB\x41L\x53"}["\x6dgo\x63\x6ay\x6a\x6f\x66d\x78"]="min";${$fnxuuccjk}.=rand(${${"\x47\x4c\x4fBA\x4c\x53"}["\x6d\x67\x6f\x63\x6a\x79j\x6ffd\x78"]},${${"GLO\x42A\x4c\x53"}["\x6f\x68\x79m\x78\x77\x67"]});}return${${"G\x4c\x4f\x42A\x4cS"}["\x78\x76\x62\x66\x62c"]};}function get_items(){$hplmgbhtq="sq\x6c";global$d,$items,$url_link,$totalRows,$pageSize,$offset,$paging,$urlcu;if($_REQUEST["key"]!=""){${${"\x47LOBA\x4cS"}["\x73ouf\x74\x79"]}.="\x20\x61\x6e\x64 t\x65n\x20\x6cike\x20\x27%".$_REQUEST["key"]."%'";}${${"\x47\x4c\x4f\x42AL\x53"}["\x73o\x75\x66\x74\x79"]}.=" o\x72\x64e\x72 \x62y\x20st\x74,\x69\x64\x20\x64es\x63";${${"\x47\x4cO\x42\x41\x4c\x53"}["ww\x70\x67\x78\x75\x77c\x6d\x66"]}="S\x45\x4c\x45\x43T\x20\x63o\x75nt(i\x64)\x20AS\x20nu\x6d\x72ows FROM #_\x63\x6f\x6d w\x68er\x65 \x69\x64\x3c>0 $where";${"\x47L\x4f\x42\x41\x4c\x53"}["u\x68\x70\x65\x75\x64\x69\x73\x75\x61r\x71"]="\x70ag\x65\x53\x69z\x65";$d->query(${$hplmgbhtq});${"\x47\x4cO\x42\x41\x4c\x53"}["\x73\x6f\x73c\x64\x78\x6d\x64\x73\x78"]="\x70\x61\x67e";${${"\x47LO\x42\x41\x4c\x53"}["v\x68\x62ot\x78\x6bc\x74"]}=$d->fetch_array();$dqywia="\x70\x61\x67\x65";$dqqcpngvpv="\x69\x74e\x6d\x73";${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x75\x6c\x74d\x65sh"]}=${${"\x47LO\x42\x41\x4c\x53"}["\x76\x68bo\x74x\x6b\x63\x74"]}["\x6eum\x72\x6fws"];${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x74\x6e\x69\x63q\x76s\x6ac\x61\x64\x62"]}=$_GET["p"];${"GL\x4f\x42AL\x53"}["\x78\x61\x67m\x78\x65\x74y"]="\x73\x71\x6c";${"\x47LOBA\x4c\x53"}["q\x68l\x6f\x6a\x6c\x69\x73"]="\x70age";$nfvnlomd="\x70\x61g\x65";$jetitwkruyh="\x62\x67";${${"\x47\x4c\x4f\x42\x41LS"}["\x78js\x72in\x78\x73"]}=20;${${"\x47\x4c\x4f\x42\x41LS"}["g\x78\x75f\x75\x6a\x65\x69"]}=10;if(${$dqywia}=="")${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x71\x68l\x6f\x6a\x6c\x69\x73"]}=1;else${$nfvnlomd}=$_GET["\x70"];${${"\x47LO\x42\x41\x4c\x53"}["\x74\x6eic\x71\x76s\x6a\x63\x61\x64b"]}--;${$jetitwkruyh}=${${"\x47\x4cO\x42\x41L\x53"}["\x75\x68pe\x75\x64\x69s\x75\x61\x72\x71"]}*${${"GLO\x42\x41\x4c\x53"}["\x73o\x73c\x64\x78\x6dds\x78"]};${"\x47\x4cO\x42A\x4cS"}["\x6fdp\x6c\x75u\x6b\x75a\x67"]="\x75r\x6c_\x6c\x69n\x6b";${${"G\x4cOB\x41L\x53"}["\x78\x61gm\x78\x65\x74y"]}="\x73e\x6cec\x74\x20*\x20\x66\x72\x6fm\x20\x23\x5f\x63\x6fm\x20\x77\x68ere i\x64<>\x30\x20$where\x20l\x69m\x69\x74\x20$bg,$pageSize";$d->query(${${"\x47L\x4f\x42AL\x53"}["\x77\x77\x70\x67x\x75\x77\x63\x6df"]});${"\x47\x4c\x4f\x42\x41\x4cS"}["\x70m\x6a\x76\x66f\x64\x6apb"]="u\x72\x6c\x63\x75";${$dqqcpngvpv}=$d->result_array();${${"G\x4c\x4fBAL\x53"}["o\x64\x70l\x75\x75k\x75ag"]}="i\x6ed\x65\x78\x2ep\x68\x70?\x63\x6fm\x3d\x63om&act\x3dm\x61n".${${"\x47\x4c\x4fBA\x4c\x53"}["p\x6d\x6a\x76\x66f\x64\x6ap\x62"]};}function get_item(){${"\x47\x4cO\x42\x41L\x53"}["\x6b\x65o\x6d\x69\x62"]="\x69\x64";global$d,$item,$urlcu;${"G\x4c\x4f\x42AL\x53"}["ip\x68w\x65\x6a\x6e"]="\x73q\x6c";$bmqjgu="\x69d";$kwfjtus="\x75\x72l\x63\x75";$hhyhdacr="\x69t\x65m";${"\x47\x4c\x4f\x42\x41LS"}["ew\x68\x71\x72\x72\x68\x77\x6d\x77o"]="\x69\x64";${${"GL\x4f\x42\x41\x4cS"}["\x65\x77h\x71\x72rh\x77\x6dw\x6f"]}=isset($_GET["id"])?themdau($_GET["i\x64"]):"";if(!${$bmqjgu})transfer("\x4b\x68\x6eg \x6ehn c\x20d \x6c\x69\x75","\x69\x6e\x64e\x78.p\x68\x70?\x63o\x6d\x3d\x63\x6fm\x26\x61c\x74\x3d\x6d\x61n".${$kwfjtus});${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x69\x70h\x77\x65\x6an"]}="\x73e\x6ce\x63t * \x66\x72o\x6d #_\x63om wher\x65\x20\x69\x64='".${${"\x47L\x4f\x42\x41\x4cS"}["\x6be\x6f\x6di\x62"]}."'";${"\x47L\x4fB\x41\x4cS"}["\x62\x6b\x75\x75\x6aj\x64\x77\x63\x64"]="\x75\x72\x6c\x63\x75";$d->query(${${"\x47L\x4f\x42\x41\x4c\x53"}["\x77\x77\x70\x67\x78u\x77c\x6d\x66"]});if($d->num_rows()==0)transfer("D liu k\x68n\x67 \x63 \x74\x68c","i\x6edex\x2ephp?\x63om\x3d\x63\x6fm&ac\x74\x3dm\x61n".${${"G\x4c\x4f\x42A\x4c\x53"}["\x62\x6b\x75\x75\x6ajd\x77c\x64"]});${$hhyhdacr}=$d->fetch_array();}function save_item(){${"\x47\x4c\x4f\x42\x41\x4c\x53"}["oh\x77t\x65\x65\x66\x71\x66hc"]="i\x64";global$d,$urlcu;${"GLOB\x41\x4cS"}["f\x75\x65i\x6ex\x6fx"]="\x75\x72\x6c\x63u";${${"\x47L\x4fBALS"}["b\x6e\x70e\x77\x6f\x6e"]}=$_FILES["file"]["\x6e\x61m\x65"];if(empty($_POST))transfer("Khn\x67 nh\x6e c\x20\x64\x20\x6c\x69\x75","i\x6e\x64e\x78\x2e\x70hp?co\x6d=c\x6fm&a\x63t=\x6d\x61\x6e".${${"\x47\x4cO\x42A\x4c\x53"}["\x66\x75e\x69\x6e\x78\x6f\x78"]});${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6a\x72\x6a\x62\x72sk"]}=isset($_POST["\x69\x64"])?themdau($_POST["\x69\x64"]):"";if(${${"\x47\x4c\x4fB\x41L\x53"}["\x6f\x68w\x74\x65e\x66\x71\x66\x68c"]}){$bbgtcj="\x69\x64";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x78gz\x6as\x62\x68"]="\x64\x61ta";${$bbgtcj}=themdau($_POST["\x69d"]);if(${${"\x47L\x4fB\x41L\x53"}["\x62u\x64lq\x62\x71w\x6ev\x71"]}=upload_image("\x66il\x65",_format_duoihinh,_upload_khac,${${"GL\x4fBA\x4c\x53"}["\x62\x6e\x70ewon"]})){$tqcxkxhk="\x69\x64";${${"\x47L\x4f\x42\x41\x4c\x53"}["\x64\x76h\x75\x75\x6c\x68\x70i\x67"]}["p\x68o\x74\x6f"]=${${"\x47L\x4f\x42\x41LS"}["\x62\x75\x64\x6c\x71\x62\x71\x77\x6evq"]};$d->setTable("co\x6d");$d->setWhere("\x69d",${$tqcxkxhk});$d->select();if($d->num_rows()>0){$doknxmoz="r\x6f\x77";${$doknxmoz}=$d->fetch_array();delete_file(_upload_khac.${${"\x47L\x4f\x42\x41\x4cS"}["\x69xg\x76o\x63g\x6e\x74\x72"]}["p\x68ot\x6f"]);}}${${"G\x4cO\x42AL\x53"}["dv\x68\x75u\x6c\x68p\x69\x67"]}["te\x6e"]=$_POST["\x74\x65n"];${${"\x47L\x4f\x42A\x4c\x53"}["\x64\x76\x68\x75\x75\x6c\x68p\x69g"]}["t\x65\x6ekh\x6fn\x67\x64\x61\x75"]=changeTitle($_POST["t\x65n"]);${${"\x47L\x4f\x42\x41L\x53"}["\x64v\x68\x75\x75\x6c\x68\x70i\x67"]}["l\x69n\x6b"]=$_POST["\x6c\x69n\x6b"];${"\x47L\x4f\x42\x41LS"}["\x74\x76\x75\x66rv\x67r\x71u\x68"]="\x64a\x74\x61";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["d\x76h\x75\x75\x6chp\x69\x67"]}["s\x74t"]=$_POST["stt"];${"\x47\x4c\x4f\x42\x41LS"}["\x78\x6az\x6d\x73f\x6f\x70"]="\x64\x61\x74a";${"\x47L\x4fBA\x4c\x53"}["\x6d\x69tx\x67\x73\x6c"]="\x69d";$lsrtcjvihoom="\x64\x61\x74\x61";${${"\x47\x4cO\x42\x41\x4c\x53"}["\x74\x76ufr\x76g\x72\x71\x75\x68"]}["\x63\x6f\x6d"]=$_POST["ten_\x63\x6f\x6d"];${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["d\x76h\x75ul\x68\x70\x69g"]}["\x61\x63\x74"]=$_POST["t\x65n_\x61c\x74"];${${"GL\x4f\x42\x41LS"}["\x78\x6azm\x73\x66o\x70"]}["t\x79p\x65"]=$_POST["\x74\x79\x70e"];${$lsrtcjvihoom}["hienth\x69"]=isset($_POST["\x68\x69en\x74\x68\x69"])?1:0;${${"GL\x4f\x42A\x4c\x53"}["\x64\x76\x68u\x75lhp\x69g"]}["\x6e\x6fi\x62at"]=isset($_POST["n\x6f\x69\x62\x61t"])?1:0;${${"\x47\x4c\x4f\x42AL\x53"}["\x78\x67\x7aj\x73\x62\x68"]}["n\x67a\x79sua"]=time();$d->setTable("com");$d->setWhere("id",${${"\x47\x4cO\x42\x41L\x53"}["mi\x74\x78\x67\x73l"]});if($d->update(${${"\x47\x4cOB\x41L\x53"}["\x64\x76\x68\x75\x75\x6c\x68pig"]}))redirect("\x69\x6e\x64e\x78\x2e\x70h\x70?\x63\x6f\x6d=c\x6f\x6d\x26a\x63t\x3dm\x61\x6e".${${"\x47\x4c\x4f\x42A\x4cS"}["\x71\x71\x6c\x6ex\x72\x6b\x75y"]});else transfer("\x43\x70\x20\x6e\x68\x74 d\x20\x6ci\x75 \x62\x20l\x69","\x69ndex.p\x68p?com\x3dc\x6f\x6d&act=\x6dan".${${"\x47LOB\x41\x4c\x53"}["\x71\x71\x6c\x6exr\x6b\x75y"]});}else{$philollejr="file\x5fnam\x65";$crnvgrjln="\x64\x61\x74\x61";${"G\x4cOB\x41\x4c\x53"}["r\x74\x68\x74\x77e\x78\x62\x73"]="\x75r\x6c\x63\x75";$ywnbnxdgbs="\x64\x61t\x61";${"\x47\x4c\x4f\x42A\x4cS"}["n\x6d\x66\x66\x6c\x65\x76"]="d\x61\x74a";$ehunyesk="d\x61\x74\x61";if(${${"\x47L\x4f\x42\x41\x4c\x53"}["bu\x64\x6cq\x62\x71\x77\x6ev\x71"]}=upload_image("f\x69\x6ce",_format_duoihinh,_upload_khac,${$philollejr})){$lhzdbnwl="da\x74a";${"\x47\x4cOB\x41LS"}["\x72\x71e\x6d\x79\x76\x63\x74"]="\x70\x68\x6fto";${$lhzdbnwl}["ph\x6fto"]=${${"G\x4c\x4f\x42\x41\x4c\x53"}["r\x71\x65\x6d\x79v\x63\x74"]};}$iqqlrhh="\x64a\x74\x61";$jbqpvzlbfq="d\x61\x74\x61";${$ywnbnxdgbs}["ten"]=$_POST["t\x65\x6e"];${$iqqlrhh}["t\x65n\x6b\x68ong\x64\x61\x75"]=changeTitle($_POST["t\x65\x6e"]);${$ehunyesk}["li\x6ek"]=$_POST["\x6c\x69\x6ek"];${"G\x4c\x4f\x42\x41\x4c\x53"}["j\x64\x76svd\x72"]="\x64\x61\x74\x61";${${"\x47\x4c\x4f\x42\x41L\x53"}["\x64\x76\x68\x75\x75\x6c\x68\x70\x69\x67"]}["s\x74\x74"]=$_POST["st\x74"];$hykbevf="\x64at\x61";${$crnvgrjln}["\x63\x6fm"]=$_POST["te\x6e\x5fc\x6fm"];${${"\x47LOBALS"}["dvhuu\x6c\x68\x70i\x67"]}["ac\x74"]=$_POST["\x74\x65n_a\x63\x74"];${$jbqpvzlbfq}["ty\x70\x65"]=$_POST["ty\x70\x65"];${${"G\x4c\x4f\x42\x41L\x53"}["jd\x76\x73\x76\x64r"]}["hie\x6e\x74hi"]=isset($_POST["h\x69\x65\x6et\x68i"])?1:0;${${"\x47\x4c\x4f\x42\x41L\x53"}["dv\x68\x75\x75l\x68pi\x67"]}["\x6eo\x69\x62\x61\x74"]=isset($_POST["n\x6fi\x62\x61t"])?1:0;${${"\x47\x4cOB\x41\x4cS"}["\x6e\x6d\x66f\x6c\x65\x76"]}["\x6ega\x79\x74ao"]=time();$d->setTable("co\x6d");if($d->insert(${$hykbevf}))redirect("\x69\x6ede\x78.p\x68p?com\x3d\x63\x6fm&a\x63\x74=m\x61n".${${"\x47\x4c\x4fBA\x4c\x53"}["\x71\x71\x6c\x6ex\x72\x6bu\x79"]});else transfer("Lu\x20d l\x69\x75\x20\x62 \x6c\x69","in\x64\x65\x78\x2ephp?\x63\x6fm\x3d\x63om&\x61\x63\x74\x3dma\x6e".${${"\x47L\x4fB\x41\x4c\x53"}["\x72t\x68\x74\x77\x65\x78\x62s"]});}}function delete_item(){$mjyyyrnqjjm="u\x72\x6ccu";global$d,$urlcu;if(isset($_GET["\x69\x64"])){${"\x47\x4cO\x42\x41\x4c\x53"}["\x63\x65t\x71\x68\x63\x68\x77\x7ad\x79"]="\x73\x71l";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6e\x79\x75\x79b\x73n"]="\x73\x71\x6c";${"\x47L\x4fB\x41\x4cS"}["p\x61o\x79\x7a\x71\x6c"]="s\x71l";$ejccsvrgnbo="i\x64";${$ejccsvrgnbo}=themdau($_GET["\x69d"]);$tgycrmaizh="id";$d->reset();${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["c\x65tq\x68\x63hw\x7a\x64y"]}="s\x65l\x65ct\x20* \x66\x72om\x20#\x5fc\x6f\x6d\x20whe\x72\x65\x20id\x3d\x27".${$tgycrmaizh}."\x27";$d->query(${${"\x47\x4cOB\x41L\x53"}["p\x61\x6f\x79\x7a\x71\x6c"]});if($d->num_rows()>0){while(${${"\x47\x4c\x4f\x42\x41\x4cS"}["i\x78\x67\x76\x6fc\x67\x6etr"]}=$d->fetch_array()){$urkvoqacgl="\x72o\x77";delete_file(_upload_khac.${$urkvoqacgl}["\x70h\x6ft\x6f"]);}${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["w\x77\x70g\x78\x75w\x63m\x66"]}="d\x65\x6c\x65t\x65 \x66\x72o\x6d \x23_\x63o\x6d \x77h\x65re i\x64\x3d'".${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6a\x72\x6a\x62r\x73\x6b"]}."'";$d->query(${${"GLO\x42\x41\x4cS"}["\x77w\x70\x67\x78u\x77c\x6df"]});}if($d->query(${${"G\x4c\x4f\x42\x41L\x53"}["ny\x75\x79bsn"]}))redirect("\x69n\x64\x65x\x2e\x70hp?c\x6f\x6d\x3d\x63o\x6d\x26\x61c\x74\x3dm\x61\x6e");else transfer("X\x61\x20d\x20l\x69u b \x6c\x69","i\x6e\x64\x65x\x2e\x70\x68p?c\x6f\x6d\x3d\x63o\x6d&act\x3d\x6d\x61n".${${"GLO\x42A\x4c\x53"}["\x71ql\x6e\x78r\x6b\x75\x79"]});}elseif(isset($_GET["l\x69s\x74i\x64"])==true){$gguknvem="i";$qirxxx="l\x69\x73ti\x64";${"\x47L\x4fB\x41\x4cS"}["\x73\x62\x62\x71v\x6b\x79\x71\x73\x62\x62"]="\x75\x72lc\x75";$hxcsicfr="\x69";$phlheglukivq="\x69";${$qirxxx}=explode(",",$_GET["l\x69st\x69d"]);for(${$hxcsicfr}=0;${$gguknvem}<count(${${"GLO\x42\x41\x4cS"}["w\x68\x6fty\x72vse"]});${$phlheglukivq}++){$eqkjcfif="\x69\x64";${"\x47\x4c\x4f\x42A\x4cS"}["\x65\x6f\x78k\x74b\x79y\x6d\x79\x6a"]="\x69\x64\x54\x69\x6e";${"GLO\x42\x41\x4c\x53"}["kd\x69\x6edq\x67d"]="\x69";${${"G\x4c\x4fB\x41\x4cS"}["m\x64\x70\x66\x68c\x61\x78\x79\x72g"]}=${${"GL\x4f\x42\x41\x4c\x53"}["w\x68\x6f\x74y\x72v\x73e"]}[${${"GLO\x42\x41L\x53"}["\x6b\x64\x69nd\x71g\x64"]}];${${"\x47L\x4f\x42\x41LS"}["jrjbr\x73\x6b"]}=themdau(${${"\x47LOB\x41L\x53"}["\x65\x6f\x78k\x74by\x79m\x79\x6a"]});${"\x47\x4c\x4fB\x41\x4c\x53"}["\x77zg\x70g\x69\x73"]="\x73\x71\x6c";$d->reset();${${"\x47\x4cO\x42A\x4cS"}["w\x7a\x67p\x67\x69s"]}="\x73e\x6c\x65\x63\x74\x20*\x20f\x72\x6f\x6d\x20#_\x63\x6f\x6d\x20w\x68\x65re\x20\x69\x64='".${$eqkjcfif}."'";$d->query(${${"\x47L\x4fB\x41L\x53"}["wwpg\x78\x75\x77c\x6d\x66"]});if($d->num_rows()>0){while(${${"\x47L\x4f\x42\x41\x4cS"}["i\x78\x67v\x6f\x63g\x6e\x74\x72"]}=$d->fetch_array()){${"\x47\x4c\x4f\x42\x41L\x53"}["h\x73\x77\x68\x77\x6b\x65\x64\x65\x65"]="\x72\x6f\x77";delete_file(_upload_khac.${${"\x47\x4cO\x42\x41\x4cS"}["\x68s\x77\x68w\x6be\x64ee"]}["\x70hoto"]);}${${"\x47\x4c\x4f\x42\x41LS"}["\x77w\x70gx\x75\x77\x63\x6df"]}="\x64\x65l\x65\x74e\x20\x66ro\x6d #\x5f\x63\x6f\x6d\x20w\x68\x65r\x65 \x69d\x3d\x27".${${"\x47\x4cOBA\x4c\x53"}["\x6a\x72\x6a\x62\x72\x73\x6b"]}."'";$d->query(${${"\x47\x4c\x4fB\x41\x4c\x53"}["w\x77pg\x78\x75\x77c\x6df"]});}}redirect("i\x6ed\x65\x78\x2ep\x68\x70?c\x6f\x6d=\x63\x6fm\x26\x61\x63t\x3d\x6da\x6e".${${"\x47L\x4f\x42\x41L\x53"}["\x73\x62bq\x76k\x79\x71\x73\x62b"]});}else transfer("\x4b\x68n\x67 n\x68\x6e\x20\x63 d \x6c\x69\x75","\x69\x6ede\x78\x2e\x70hp?\x63o\x6d=\x63\x6fm&\x61\x63\x74=ma\x6e".${$mjyyyrnqjjm});}echo "\n\n";
?>
Function Calls
defined | 1 |
Stats
MD5 | 48155a253a6a3b07c60df8b880a08e3f |
Eval Count | 0 |
Decode Time | 103 ms |