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 /* .---------------------------------------------------------------------------. |..
Decoded Output download
<?php /*
.---------------------------------------------------------------------------.
| Author: infoWERK Medien & Technik |
| Copyright: (c) 2014 - 2017 infoWERK Medien & Technik |
| ------------------------------------------------------------------------- |
| Remarks: The software is protected by international copyright law. |
| Redistribution prohibited! |
'---------------------------------------------------------------------------'
*/
${"GLOBALS"}["rbcjcyin"]="str";${"GLOBALS"}["nacofvxl"]="query";${"GLOBALS"}["gyljmuayen"]="db_conn_data";${"GLOBALS"}["xswwowjtub"]="persistent";class Database{var$db;var$error;var$result;var$last_id;function result(){return$this->result;}function get_last_id(){return$this->last_id;}function connect($db_conn_data,$persistent=false){if(${${"GLOBALS"}["xswwowjtub"]}){$this->db=mysql_pconnect(${${"GLOBALS"}["gyljmuayen"]}["host"],${${"GLOBALS"}["gyljmuayen"]}["user"],${${"GLOBALS"}["gyljmuayen"]}["password"]);}else{$this->db=mysql_connect(${${"GLOBALS"}["gyljmuayen"]}["host"],${${"GLOBALS"}["gyljmuayen"]}["user"],${${"GLOBALS"}["gyljmuayen"]}["password"]);}if($this->db){if(mysql_select_db(${${"GLOBALS"}["gyljmuayen"]}["database"],$this->db)){return true;}$this->error=@mysql_error($this->db);}$this->error="Error connecting to db!";return false;}function disconnect(){if($this->db!=null){@mysql_close($this->db);return true;}else{$this->error="Not connected to a db!";return false;}}function query($query){if($this->db!=null){@mysql_query("SET NAMES utf8",$this->db);$this->result=@mysql_query(${${"GLOBALS"}["nacofvxl"]},$this->db);$this->last_id=mysql_insert_id();if($this->result!=false){return true;}else{$this->error=@mysql_error($this->db);}}return false;}function numRows(){if($this->result!=null){return@mysql_num_rows($this->result);}else{return false;}}function escapeStr($str){return mysql_escape_string(stripslashes(${${"GLOBALS"}["rbcjcyin"]}));}}
?>
Did this file decode correctly?
Original Code
<?php /*
.---------------------------------------------------------------------------.
| Author: infoWERK Medien & Technik |
| Copyright: (c) 2014 - 2017 infoWERK Medien & Technik |
| ------------------------------------------------------------------------- |
| Remarks: The software is protected by international copyright law. |
| Redistribution prohibited! |
'---------------------------------------------------------------------------'
*/
${"\x47\x4cO\x42ALS"}["\x72bc\x6acy\x69n"]="\x73\x74\x72";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["n\x61\x63of\x76\x78\x6c"]="que\x72y";${"\x47LO\x42A\x4c\x53"}["gy\x6c\x6a\x6d\x75\x61\x79en"]="\x64\x62\x5f\x63\x6f\x6e\x6e\x5f\x64\x61\x74\x61";${"\x47\x4c\x4f\x42\x41L\x53"}["\x78\x73ww\x6f\x77\x6a\x74\x75\x62"]="p\x65r\x73i\x73\x74\x65n\x74";class Database{var$db;var$error;var$result;var$last_id;function result(){return$this->result;}function get_last_id(){return$this->last_id;}function connect($db_conn_data,$persistent=false){if(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["xswwo\x77\x6at\x75\x62"]}){$this->db=mysql_pconnect(${${"\x47\x4c\x4f\x42ALS"}["\x67\x79\x6cjm\x75\x61ye\x6e"]}["\x68o\x73\x74"],${${"\x47\x4c\x4fBAL\x53"}["\x67\x79\x6cjm\x75\x61y\x65n"]}["us\x65r"],${${"\x47\x4cOB\x41\x4c\x53"}["g\x79\x6c\x6a\x6d\x75\x61\x79\x65n"]}["pas\x73\x77o\x72\x64"]);}else{$this->db=mysql_connect(${${"\x47L\x4fB\x41\x4cS"}["\x67y\x6cj\x6d\x75a\x79\x65\x6e"]}["\x68o\x73\x74"],${${"\x47\x4c\x4fBA\x4c\x53"}["g\x79l\x6a\x6dua\x79\x65\x6e"]}["\x75s\x65r"],${${"G\x4c\x4f\x42AL\x53"}["g\x79l\x6am\x75\x61\x79\x65n"]}["\x70a\x73\x73\x77ord"]);}if($this->db){if(mysql_select_db(${${"G\x4cO\x42\x41\x4c\x53"}["g\x79lj\x6d\x75\x61ye\x6e"]}["dat\x61\x62\x61se"],$this->db)){return true;}$this->error=@mysql_error($this->db);}$this->error="\x45rr\x6f\x72 c\x6fn\x6e\x65cti\x6eg t\x6f\x20d\x62!";return false;}function disconnect(){if($this->db!=null){@mysql_close($this->db);return true;}else{$this->error="\x4e\x6f\x74 \x63o\x6e\x6e\x65cte\x64\x20\x74\x6f \x61\x20\x64b!";return false;}}function query($query){if($this->db!=null){@mysql_query("\x53\x45\x54\x20N\x41ME\x53\x20u\x74f8",$this->db);$this->result=@mysql_query(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6e\x61cof\x76\x78\x6c"]},$this->db);$this->last_id=mysql_insert_id();if($this->result!=false){return true;}else{$this->error=@mysql_error($this->db);}}return false;}function numRows(){if($this->result!=null){return@mysql_num_rows($this->result);}else{return false;}}function escapeStr($str){return mysql_escape_string(stripslashes(${${"GL\x4f\x42\x41LS"}["\x72\x62\x63j\x63\x79\x69\x6e"]}));}}
?>
Function Calls
| None |
Stats
| MD5 | 361584a36e8bfceab2d2babb647d8bc7 |
| Eval Count | 0 |
| Decode Time | 88 ms |