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 /* ________________________________________ | GarudaCBT ..
Decoded Output download
<?php
/* ________________________________________
| GarudaCBT |
| https://github.com/garudacbt/cbt |
|________________________________________|
*/
defined("BASEPATH") or exit("No direct script access allowed"); class Settings_model extends CI_Model { public function not_admin() { goto AG13v; thDon: $this->db->from("users a"); goto JUWdS; AG13v: $this->db->select("a.id"); goto thDon; JUWdS: $this->db->join("users_groups b", "a.id=b.user_id"); goto yL3UI; szj55: return $this->db->get()->result(); goto yGYyA; yL3UI: $this->db->where_not_in("b.group_id", ["1"]); goto szj55; yGYyA: } public function truncate($table) { goto kB8Zu; MzlUu: delete_files("./uploads/bank_soal/"); goto GX5SW; ev6xr: EHuBv: goto aj4TY; wWifL: foreach ($table as $tb) { $this->db->truncate($tb); E5gVs: } goto ev6xr; hcXyi: EdS1C: goto K3qmH; bHqfE: foreach ($users as $user) { $this->db->delete("users", array("id" => $user->id)); PYYLT: } goto hcXyi; LZb0t: $this->db->query("SET FOREIGN_KEY_CHECKS = 0"); goto wWifL; K3qmH: return; goto BbaXY; aj4TY: $this->db->query("SET FOREIGN_KEY_CHECKS = 1"); goto MzlUu; kB8Zu: $this->load->helper("file"); goto LZb0t; GX5SW: $users = $this->not_admin(); goto bHqfE; BbaXY: } public function getSetting() { return $this->db->get("setting")->row(); } function toJSON($table) { $query = $this->db->get($table); return json_encode($query->result(), JSON_PRETTY_PRINT); } function rowSize($table) { $query = $this->db->get($table); return $query->num_rows(); } }
?>
Did this file decode correctly?
Original Code
<?php
/* ________________________________________
| GarudaCBT |
| https://github.com/garudacbt/cbt |
|________________________________________|
*/
defined("\102\101\x53\105\120\x41\x54\x48") or exit("\x4e\157\40\x64\151\162\145\x63\x74\40\x73\143\x72\151\160\x74\40\141\143\x63\x65\163\163\40\141\154\x6c\x6f\167\x65\144"); class Settings_model extends CI_Model { public function not_admin() { goto AG13v; thDon: $this->db->from("\x75\163\145\162\163\x20\x61"); goto JUWdS; AG13v: $this->db->select("\141\x2e\x69\x64"); goto thDon; JUWdS: $this->db->join("\165\163\x65\x72\x73\137\147\162\x6f\165\160\x73\40\x62", "\x61\56\151\x64\75\142\x2e\165\163\x65\x72\137\x69\144"); goto yL3UI; szj55: return $this->db->get()->result(); goto yGYyA; yL3UI: $this->db->where_not_in("\x62\56\147\x72\x6f\x75\160\x5f\x69\x64", ["\61"]); goto szj55; yGYyA: } public function truncate($table) { goto kB8Zu; MzlUu: delete_files("\56\x2f\165\x70\x6c\157\141\144\x73\57\x62\x61\156\153\137\x73\x6f\x61\x6c\57"); goto GX5SW; ev6xr: EHuBv: goto aj4TY; wWifL: foreach ($table as $tb) { $this->db->truncate($tb); E5gVs: } goto ev6xr; hcXyi: EdS1C: goto K3qmH; bHqfE: foreach ($users as $user) { $this->db->delete("\165\163\x65\x72\x73", array("\x69\144" => $user->id)); PYYLT: } goto hcXyi; LZb0t: $this->db->query("\123\x45\x54\x20\x46\x4f\122\x45\111\107\x4e\x5f\113\x45\131\x5f\x43\110\105\103\x4b\x53\40\x3d\x20\60"); goto wWifL; K3qmH: return; goto BbaXY; aj4TY: $this->db->query("\123\x45\124\x20\x46\x4f\122\105\111\107\x4e\137\113\x45\x59\137\x43\110\x45\x43\x4b\123\x20\75\40\x31"); goto MzlUu; kB8Zu: $this->load->helper("\146\x69\154\145"); goto LZb0t; GX5SW: $users = $this->not_admin(); goto bHqfE; BbaXY: } public function getSetting() { return $this->db->get("\163\x65\164\164\x69\x6e\x67")->row(); } function toJSON($table) { $query = $this->db->get($table); return json_encode($query->result(), JSON_PRETTY_PRINT); } function rowSize($table) { $query = $this->db->get($table); return $query->num_rows(); } }
Function Calls
None |
Stats
MD5 | 59bfd90cb0255862cbd9794905034fad |
Eval Count | 0 |
Decode Time | 35 ms |