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    | 
    |________________________________________| 
*/ 
 class Log_model extends CI_Model { function __construct() { parent::__construct(); $this->load->library("user_agent"); } public function saveLog($type, $desc) { goto Mv3Tv; xtOf4: $ip = $this->input->ip_address(); goto ed0Np; TSzVX: WRqTA: goto jKb1g; f6IJx: $group = $this->ion_auth->get_users_groups($user_id)->row(); goto DSkqK; yQCww: $os = $this->agent->platform(); goto xtOf4; ed0Np: $this->insertLog($user_id, $group->id, $group->name, $type, $desc, $agent, $os, $ip); goto YXGbT; wv6ID: $agent = "Data user gagal di dapatkan"; goto rhQma; FgZA3: goto fRnRm; goto TSzVX; rhQma: goto fRnRm; goto B9f3N; DSkqK: if ($this->agent->is_browser()) { goto on85r; } goto rffSe; oY1An: $agent = $this->agent->browser() . " " . $this->agent->version(); goto FgZA3; fTTAm: fRnRm: goto yQCww; jKb1g: $agent = $this->agent->mobile(); goto fTTAm; Mv3Tv: $user_id = $this->ion_auth->user()->row()->id; goto f6IJx; B9f3N: on85r: goto oY1An; rffSe: if ($this->agent->is_mobile()) { goto WRqTA; } goto wv6ID; YXGbT: } private function insertLog($id_user, $group_id, $group_name, $type, $desc, $agent, $os, $ip) { $data = array("id_user" => $id_user, "id_group" => $group_id, "name_group" => $group_name, "log_desc" => $desc, "address" => $ip, "agent" => $agent, "device" => $os); $this->db->insert("log", $data); } public function loadNotifikasi() { } public function loadChat() { } public function loadAktifitas($limit = null) { goto cRU0T; pDY2k: $this->db->order_by("a.log_time", "DESC"); goto eaOmR; dJz5E: Fr3se: goto pDY2k; NA0RI: return $result; goto vX3b8; ctGGx: $this->db->join("groups d", "d.id=a.id_group"); goto Rf92L; v098A: $this->db->from("log a"); goto TFNSG; cRU0T: $this->db->query("SET SQL_BIG_SELECTS=1"); goto rxqoq; rxqoq: $this->db->select("a.*, b.first_name, b.last_name, d.name"); goto v098A; Uit67: $this->db->limit($limit, 0); goto dJz5E; Rf92L: if (!($limit != null)) { goto Fr3se; } goto Uit67; TFNSG: $this->db->join("users b", "b.id=a.id_user", "left"); goto ctGGx; eaOmR: $result = $this->db->get()->result(); goto NA0RI; vX3b8: } public function loadAktifitasSiswa($limit = null) { goto YLLC7; y6JP_: $result = $this->db->get()->result(); goto nqmoN; J4EIE: $this->db->order_by("a.log_time", "DESC"); goto y6JP_; rnh0z: $this->db->limit($limit, 0); goto q2LAs; YLLC7: $this->db->query("SET SQL_BIG_SELECTS=1"); goto c4jz6; d4mIz: $this->db->join("users b", "b.id=a.id_user", "left"); goto SHwC_; sGmFz: if (!($limit != null)) { goto ZJW2X; } goto rnh0z; SHwC_: $this->db->join("groups d", "d.id=a.id_group"); goto sGmFz; c4jz6: $this->db->select("a.*, b.first_name, b.last_name, d.name"); goto QFs1b; nqmoN: return $result; goto Sf3m8; q2LAs: ZJW2X: goto US1k1; US1k1: $this->db->where("a.id_group", "3"); goto J4EIE; QFs1b: $this->db->from("log a"); goto d4mIz; Sf3m8: } } 
 ?>

Did this file decode correctly?

Original Code

<?php
/*   ________________________________________
    |                 GarudaCBT              |
    |    https://github.com/garudacbt/cbt    |
    |________________________________________|
*/
 class Log_model extends CI_Model { function __construct() { parent::__construct(); $this->load->library("\165\163\145\162\x5f\141\147\x65\x6e\x74"); } public function saveLog($type, $desc) { goto Mv3Tv; xtOf4: $ip = $this->input->ip_address(); goto ed0Np; TSzVX: WRqTA: goto jKb1g; f6IJx: $group = $this->ion_auth->get_users_groups($user_id)->row(); goto DSkqK; yQCww: $os = $this->agent->platform(); goto xtOf4; ed0Np: $this->insertLog($user_id, $group->id, $group->name, $type, $desc, $agent, $os, $ip); goto YXGbT; wv6ID: $agent = "\x44\141\x74\141\x20\165\x73\145\162\x20\147\x61\x67\141\x6c\40\144\151\40\144\x61\x70\x61\x74\153\141\x6e"; goto rhQma; FgZA3: goto fRnRm; goto TSzVX; rhQma: goto fRnRm; goto B9f3N; DSkqK: if ($this->agent->is_browser()) { goto on85r; } goto rffSe; oY1An: $agent = $this->agent->browser() . "\x20" . $this->agent->version(); goto FgZA3; fTTAm: fRnRm: goto yQCww; jKb1g: $agent = $this->agent->mobile(); goto fTTAm; Mv3Tv: $user_id = $this->ion_auth->user()->row()->id; goto f6IJx; B9f3N: on85r: goto oY1An; rffSe: if ($this->agent->is_mobile()) { goto WRqTA; } goto wv6ID; YXGbT: } private function insertLog($id_user, $group_id, $group_name, $type, $desc, $agent, $os, $ip) { $data = array("\151\x64\137\165\163\145\x72" => $id_user, "\x69\x64\x5f\147\x72\157\165\x70" => $group_id, "\156\141\x6d\145\x5f\x67\x72\157\x75\160" => $group_name, "\154\157\x67\137\x64\145\163\143" => $desc, "\x61\144\x64\162\x65\x73\x73" => $ip, "\141\147\145\156\164" => $agent, "\144\145\166\x69\143\145" => $os); $this->db->insert("\154\157\x67", $data); } public function loadNotifikasi() { } public function loadChat() { } public function loadAktifitas($limit = null) { goto cRU0T; pDY2k: $this->db->order_by("\x61\56\x6c\x6f\x67\x5f\x74\151\x6d\145", "\x44\x45\123\103"); goto eaOmR; dJz5E: Fr3se: goto pDY2k; NA0RI: return $result; goto vX3b8; ctGGx: $this->db->join("\x67\x72\157\165\x70\163\x20\144", "\x64\56\x69\x64\x3d\141\x2e\x69\x64\137\147\x72\157\x75\160"); goto Rf92L; v098A: $this->db->from("\x6c\x6f\x67\x20\141"); goto TFNSG; cRU0T: $this->db->query("\x53\x45\124\x20\123\121\x4c\x5f\x42\111\x47\137\x53\105\114\105\x43\124\123\x3d\x31"); goto rxqoq; rxqoq: $this->db->select("\141\x2e\52\x2c\40\x62\x2e\x66\x69\162\x73\164\137\156\141\x6d\145\x2c\40\x62\x2e\154\141\163\x74\x5f\x6e\x61\x6d\x65\x2c\x20\144\x2e\156\x61\155\145"); goto v098A; Uit67: $this->db->limit($limit, 0); goto dJz5E; Rf92L: if (!($limit != null)) { goto Fr3se; } goto Uit67; TFNSG: $this->db->join("\x75\163\x65\x72\x73\x20\142", "\x62\56\151\144\x3d\141\56\x69\x64\x5f\x75\x73\145\x72", "\x6c\x65\146\x74"); goto ctGGx; eaOmR: $result = $this->db->get()->result(); goto NA0RI; vX3b8: } public function loadAktifitasSiswa($limit = null) { goto YLLC7; y6JP_: $result = $this->db->get()->result(); goto nqmoN; J4EIE: $this->db->order_by("\141\x2e\x6c\x6f\147\137\x74\x69\155\x65", "\x44\105\123\x43"); goto y6JP_; rnh0z: $this->db->limit($limit, 0); goto q2LAs; YLLC7: $this->db->query("\123\x45\124\x20\123\x51\114\137\102\x49\107\137\123\x45\114\x45\x43\124\123\x3d\x31"); goto c4jz6; d4mIz: $this->db->join("\165\x73\145\x72\x73\x20\x62", "\x62\x2e\x69\x64\75\141\56\151\144\x5f\165\163\x65\x72", "\x6c\145\146\x74"); goto SHwC_; sGmFz: if (!($limit != null)) { goto ZJW2X; } goto rnh0z; SHwC_: $this->db->join("\x67\x72\157\x75\x70\163\40\x64", "\x64\x2e\151\144\x3d\x61\x2e\x69\144\137\x67\162\x6f\x75\160"); goto sGmFz; c4jz6: $this->db->select("\x61\x2e\52\54\40\x62\56\146\x69\162\x73\x74\x5f\x6e\x61\155\145\x2c\x20\142\56\154\x61\x73\164\x5f\x6e\141\x6d\145\x2c\x20\x64\56\x6e\x61\155\x65"); goto QFs1b; nqmoN: return $result; goto Sf3m8; q2LAs: ZJW2X: goto US1k1; US1k1: $this->db->where("\141\56\x69\144\x5f\147\x72\x6f\165\x70", "\x33"); goto J4EIE; QFs1b: $this->db->from("\x6c\157\147\x20\141"); goto d4mIz; Sf3m8: } }

Function Calls

None

Variables

None

Stats

MD5 6ae47645479f3292daf1317da7bddf54
Eval Count 0
Decode Time 44 ms