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\x4fB\x41LS"}["\x76\x65\x62\x79\x79\x67dr\x70\x6c\x62"]="\x72\x65\x73\x65..

Decoded Output download

<?php ${"GLOBALS"}["vebyygdrplb"]="reset_token";${"GLOBALS"}["ktpywmxtl"]="user";${"GLOBALS"}["hebgtkyi"]="data_1";${"GLOBALS"}["khbefudby"]="time";${"GLOBALS"}["hxqwvnpbhuto"]="array";${"GLOBALS"}["xbdpnscuxv"]="remember";${"GLOBALS"}["kfblfpvilt"]="login_token";${"GLOBALS"}["ivkkhgc"]="query";${"GLOBALS"}["quwlwk"]="data";defined("BASEPATH")OR exit("No direct script access allowed");class Users_model extends MY_Model{public$table="users";public function attempt($data){$sjeaiilgrcjg="data";$this->db->where("username",${${"GLOBALS"}["quwlwk"]}["username"]);$this->db->or_where("email",${$sjeaiilgrcjg}["username"]);${${"GLOBALS"}["ivkkhgc"]}=$this->db->get($this->table);if(!empty(${${"GLOBALS"}["ivkkhgc"]})&&$query->num_rows()>0){if($query->row()->password==hash("sha256",${${"GLOBALS"}["quwlwk"]}["password"])){if($query->row()->status=="1")return"valid";else return"not_allowed";}else return"invalid_password";}return false;}public function login($row,$remember=false){$cgvsmmx="result1";${"GLOBALS"}["uzmtxh"]="time";$epzpowrc="time";${${"GLOBALS"}["uzmtxh"]}=time();${${"GLOBALS"}["kfblfpvilt"]}=sha1($row->id.$row->password.${$epzpowrc});if(${${"GLOBALS"}["xbdpnscuxv"]}==false){$ezfrkxn="login_token";${${"GLOBALS"}["hxqwvnpbhuto"]}=["login"=>true,"login_token"=>${$ezfrkxn},"logged"=>["id"=>$row->id,"aminSe"=>$row->aminSe,"time"=>${${"GLOBALS"}["khbefudby"]},]];$this->session->set_userdata(${${"GLOBALS"}["hxqwvnpbhuto"]});}else{$cjfmijihbwf="data";${"GLOBALS"}["blpuzmvxsfuq"]="expiry";$ybnwchtxhkj="expiry";${"GLOBALS"}["orvpqsviwfo"]="expiry";${"GLOBALS"}["icqrwsbpp"]="expiry";${$cjfmijihbwf}=["id"=>$row->id,"aminSe"=>$row->aminSe,"time"=>time(),];$ywfwzeqdwin="login_token";$ysukxccf="data";${${"GLOBALS"}["blpuzmvxsfuq"]}=strtotime("+7 days");set_cookie("login",true,${$ybnwchtxhkj});set_cookie("logged",json_encode(${$ysukxccf}),${${"GLOBALS"}["icqrwsbpp"]});set_cookie("login_token",${$ywfwzeqdwin},${${"GLOBALS"}["orvpqsviwfo"]});}setUserlang("en");$this->update($row->id,["last_login"=>$this->sym->TodayDate()]);$this->activity_model->add($row->name." (".$row->username.") Logged in",$row->id);${"GLOBALS"}["jdlhwi"]="data_1";${${"GLOBALS"}["jdlhwi"]}=array("Name"=>$this->sym->TodayDate(),);${$cgvsmmx}=$this->db_op->Update_Tbl("tbl_sys_data","dataType","Today",${${"GLOBALS"}["hebgtkyi"]},"No");}public function logout(){$this->session->unset_userdata("login");$this->session->unset_userdata("logged");delete_cookie("login");delete_cookie("logged");delete_cookie("login_token");}public function resetPassword($data){${"GLOBALS"}["qiozur"]="reset_token";$xxzqghd="data";${"GLOBALS"}["ybchbhpgsx"]="data";$this->db->where("username",${$xxzqghd}["username"]);$this->db->or_where("email",${${"GLOBALS"}["ybchbhpgsx"]}["username"]);${${"GLOBALS"}["ktpywmxtl"]}=$this->db->get_where($this->table)->row();if(!empty(${${"GLOBALS"}["ktpywmxtl"]})){}else{return"invalid";}${${"GLOBALS"}["qiozur"]}=password_hash((time().$user->id),PASSWORD_BCRYPT);$this->db->where("id",$user->id);$this->db->update($this->table,compact("reset_token"));$xsdgfxnfqh="reset_link";$this->email->from(setting("company_email"),setting("company_name"));$this->email->to($user->email);$this->email->subject("Reset Your Account Password | ".setting("company_name"));${$xsdgfxnfqh}=url("login/new_password?token=".${${"GLOBALS"}["vebyygdrplb"]});return$user->email;}public function appendToSelectStr(){return NULL;}public function fromTableStr(){return"users";}public function joinArray(){return NULL;}public function whereClauseArray(){return NULL;}} 
?>

Did this file decode correctly?

Original Code

<?php ${"\x47\x4c\x4fB\x41LS"}["\x76\x65\x62\x79\x79\x67dr\x70\x6c\x62"]="\x72\x65\x73\x65t_\x74\x6f\x6b\x65\x6e";${"\x47\x4c\x4f\x42\x41L\x53"}["\x6b\x74\x70y\x77m\x78\x74l"]="\x75ser";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["h\x65b\x67\x74k\x79\x69"]="\x64\x61\x74\x61_1";${"G\x4cO\x42A\x4c\x53"}["kh\x62\x65\x66\x75d\x62\x79"]="ti\x6d\x65";${"GL\x4fB\x41L\x53"}["hx\x71wvn\x70b\x68u\x74o"]="ar\x72ay";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x78\x62\x64\x70\x6e\x73\x63\x75xv"]="re\x6d\x65\x6d\x62er";${"GL\x4f\x42A\x4c\x53"}["k\x66\x62\x6c\x66p\x76i\x6c\x74"]="l\x6f\x67\x69\x6e_\x74\x6f\x6b\x65\x6e";${"\x47L\x4fB\x41\x4c\x53"}["\x69v\x6bk\x68g\x63"]="q\x75e\x72\x79";${"G\x4c\x4f\x42\x41L\x53"}["qu\x77\x6c\x77\x6b"]="\x64a\x74a";defined("\x42\x41SEP\x41\x54\x48")OR exit("No\x20d\x69\x72\x65\x63t \x73\x63rip\x74\x20\x61\x63\x63\x65\x73s \x61l\x6co\x77e\x64");class Users_model extends MY_Model{public$table="u\x73er\x73";public function attempt($data){$sjeaiilgrcjg="\x64a\x74\x61";$this->db->where("\x75s\x65\x72n\x61m\x65",${${"\x47\x4cO\x42AL\x53"}["\x71\x75wl\x77k"]}["u\x73er\x6e\x61\x6d\x65"]);$this->db->or_where("\x65m\x61i\x6c",${$sjeaiilgrcjg}["use\x72\x6ea\x6d\x65"]);${${"\x47\x4cO\x42\x41\x4c\x53"}["\x69vk\x6b\x68gc"]}=$this->db->get($this->table);if(!empty(${${"\x47\x4cOB\x41L\x53"}["i\x76\x6bk\x68\x67\x63"]})&&$query->num_rows()>0){if($query->row()->password==hash("sha\x32\x356",${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["quw\x6c\x77\x6b"]}["\x70as\x73w\x6f\x72d"])){if($query->row()->status=="\x31")return"v\x61\x6ci\x64";else return"n\x6ft_\x61ll\x6fwe\x64";}else return"\x69n\x76\x61lid_pa\x73\x73\x77\x6f\x72d";}return false;}public function login($row,$remember=false){$cgvsmmx="\x72es\x75\x6c\x741";${"G\x4c\x4f\x42\x41\x4c\x53"}["\x75zm\x74\x78\x68"]="\x74i\x6de";$epzpowrc="\x74\x69\x6d\x65";${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x75\x7amtxh"]}=time();${${"\x47\x4cOB\x41\x4cS"}["k\x66\x62\x6c\x66\x70v\x69\x6ct"]}=sha1($row->id.$row->password.${$epzpowrc});if(${${"GLO\x42A\x4c\x53"}["x\x62\x64\x70\x6es\x63\x75\x78v"]}==false){$ezfrkxn="l\x6fgi\x6e\x5f\x74\x6fk\x65\x6e";${${"\x47\x4cO\x42\x41\x4c\x53"}["h\x78q\x77\x76\x6e\x70\x62\x68\x75\x74o"]}=["\x6cog\x69n"=>true,"l\x6f\x67\x69\x6e_t\x6f\x6b\x65n"=>${$ezfrkxn},"\x6c\x6f\x67g\x65\x64"=>["i\x64"=>$row->id,"a\x6d\x69n\x53e"=>$row->aminSe,"\x74\x69m\x65"=>${${"\x47L\x4fB\x41\x4c\x53"}["\x6bhb\x65f\x75d\x62\x79"]},]];$this->session->set_userdata(${${"\x47\x4c\x4f\x42ALS"}["\x68x\x71wv\x6e\x70\x62\x68\x75\x74\x6f"]});}else{$cjfmijihbwf="\x64\x61ta";${"G\x4cOB\x41L\x53"}["\x62\x6cpuzm\x76\x78\x73fuq"]="\x65\x78p\x69\x72y";$ybnwchtxhkj="\x65\x78\x70\x69\x72\x79";${"G\x4c\x4f\x42\x41\x4c\x53"}["o\x72vpq\x73\x76\x69w\x66o"]="e\x78\x70\x69r\x79";${"\x47L\x4f\x42\x41L\x53"}["i\x63q\x72wsb\x70p"]="\x65x\x70\x69\x72\x79";${$cjfmijihbwf}=["\x69d"=>$row->id,"\x61\x6d\x69\x6eS\x65"=>$row->aminSe,"ti\x6d\x65"=>time(),];$ywfwzeqdwin="lo\x67\x69n_\x74\x6f\x6be\x6e";$ysukxccf="d\x61\x74\x61";${${"\x47\x4c\x4f\x42AL\x53"}["\x62\x6cp\x75z\x6dvxsf\x75q"]}=strtotime("+\x37\x20\x64a\x79s");set_cookie("l\x6f\x67\x69n",true,${$ybnwchtxhkj});set_cookie("\x6c\x6f\x67ge\x64",json_encode(${$ysukxccf}),${${"\x47\x4c\x4f\x42A\x4c\x53"}["i\x63\x71r\x77\x73\x62p\x70"]});set_cookie("\x6c\x6f\x67\x69n\x5f\x74o\x6b\x65n",${$ywfwzeqdwin},${${"GL\x4f\x42\x41L\x53"}["\x6fr\x76\x70\x71\x73\x76\x69\x77\x66\x6f"]});}setUserlang("\x65\x6e");$this->update($row->id,["\x6cas\x74_\x6cogin"=>$this->sym->TodayDate()]);$this->activity_model->add($row->name." (".$row->username.") L\x6fg\x67\x65d i\x6e",$row->id);${"\x47\x4c\x4f\x42AL\x53"}["j\x64lhw\x69"]="\x64\x61ta_1";${${"\x47\x4c\x4fB\x41L\x53"}["\x6ad\x6c\x68\x77\x69"]}=array("\x4e\x61\x6de"=>$this->sym->TodayDate(),);${$cgvsmmx}=$this->db_op->Update_Tbl("t\x62l\x5fsy\x73_\x64ata","d\x61t\x61\x54\x79pe","To\x64\x61y",${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x68ebgt\x6b\x79i"]},"\x4e\x6f");}public function logout(){$this->session->unset_userdata("\x6co\x67in");$this->session->unset_userdata("lo\x67\x67e\x64");delete_cookie("lo\x67\x69n");delete_cookie("l\x6fgg\x65d");delete_cookie("l\x6fg\x69\x6e_t\x6fke\x6e");}public function resetPassword($data){${"\x47\x4c\x4f\x42A\x4c\x53"}["qio\x7au\x72"]="\x72\x65\x73\x65t_\x74\x6fk\x65\x6e";$xxzqghd="\x64\x61\x74\x61";${"G\x4c\x4f\x42\x41LS"}["\x79\x62\x63\x68\x62\x68p\x67\x73\x78"]="d\x61t\x61";$this->db->where("\x75s\x65\x72n\x61\x6d\x65",${$xxzqghd}["\x75s\x65r\x6e\x61m\x65"]);$this->db->or_where("email",${${"\x47\x4cO\x42A\x4c\x53"}["\x79b\x63\x68\x62h\x70g\x73\x78"]}["us\x65r\x6e\x61\x6de"]);${${"\x47\x4c\x4f\x42AL\x53"}["\x6b\x74p\x79\x77\x6d\x78\x74\x6c"]}=$this->db->get_where($this->table)->row();if(!empty(${${"\x47L\x4f\x42\x41\x4c\x53"}["ktp\x79\x77m\x78tl"]})){}else{return"\x69\x6ev\x61lid";}${${"G\x4cOBA\x4c\x53"}["q\x69\x6fz\x75\x72"]}=password_hash((time().$user->id),PASSWORD_BCRYPT);$this->db->where("id",$user->id);$this->db->update($this->table,compact("re\x73et\x5ft\x6f\x6b\x65n"));$xsdgfxnfqh="r\x65\x73\x65t\x5fl\x69\x6e\x6b";$this->email->from(setting("\x63\x6f\x6d\x70\x61\x6e\x79\x5f\x65ma\x69l"),setting("com\x70an\x79\x5f\x6e\x61m\x65"));$this->email->to($user->email);$this->email->subject("\x52eset \x59o\x75\x72 A\x63c\x6fun\x74 P\x61\x73\x73\x77or\x64 | ".setting("co\x6d\x70\x61\x6e\x79_n\x61me"));${$xsdgfxnfqh}=url("\x6cog\x69\x6e/\x6eew_pass\x77\x6f\x72\x64?t\x6f\x6b\x65\x6e=".${${"\x47L\x4fBA\x4c\x53"}["\x76e\x62\x79\x79\x67\x64rp\x6c\x62"]});return$user->email;}public function appendToSelectStr(){return NULL;}public function fromTableStr(){return"us\x65r\x73";}public function joinArray(){return NULL;}public function whereClauseArray(){return NULL;}}
?>

Function Calls

None

Variables

None

Stats

MD5 d252f09ce17346909a6a726c31df30dd
Eval Count 0
Decode Time 62 ms