/* Decoded by unphp.net */ 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: } } ?>