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 Kelasstatus extends CI_Controller { public function __construct() { goto JxBIl; N4Da7: $this->load->model("Dashboard_model", "dashboard"); goto x07eQ; CkSvd: redirect("auth"); goto hTWcA; hTWcA: we5b9: goto eBaR2; OVDXT: show_error("Hanya Administrator yang diberi hak untuk mengakses halaman ini, <a href="" . base_url("dashboard") . "">Kembali ke menu awal</a>", 403, "Akses Terlarang"); goto viop4; eBaR2: $this->load->library(["datatables", "form_validation"]); goto Nc_H2; JxBIl: parent::__construct(); goto LVl2Q; viop4: iyyAz: goto F7gHx; C3D_d: FXrsf: goto CkSvd; LVl2Q: if (!$this->ion_auth->logged_in()) { goto FXrsf; } goto BYslL; UpzEJ: $this->form_validation->set_error_delimiters('', ''); goto H1_pv; x07eQ: $this->load->model("Dropdown_model", "dropdown"); goto iVFl8; Nc_H2: $this->load->model("Master_model", "master"); goto N4Da7; iVFl8: $this->load->model("Kelas_model", "kelas"); goto UpzEJ; F7gHx: goto we5b9; goto C3D_d; BYslL: if (!(!$this->ion_auth->is_admin() && !$this->ion_auth->in_group("guru"))) { goto iyyAz; } goto OVDXT; H1_pv: } public function output_json($data, $encode = true) { goto f1rT6; a2OV0: $this->output->set_content_type("application/json")->set_output($data); goto nzj2r; f1rT6: if (!$encode) { goto wLh3j; } goto Bb51o; Bb51o: $data = json_encode($data); goto vNWLQ; vNWLQ: wLh3j: goto a2OV0; nzj2r: } public function index() { goto skuFl; MgACO: $this->load->view("members/guru/templates/header", $data); goto HxHsh; C2b0k: if (!($mapel != null)) { goto jq86P; } goto EtXic; QiOW7: $smt = $this->dashboard->getSemesterActive(); goto dZ8En; YmGVa: $data["mapels"] = $arrMapel; goto AGMyl; YTlvL: crxUb: goto Sa4zf; Z6op3: $nguru[$guru->id_guru] = $guru->nama_guru; goto d8uhZ; HLlnp: $data["mapels"] = $this->dropdown->getAllMapel(); goto I2vx6; EtXic: foreach ($mapel[0]->kelas_mapel as $id_mapel) { array_push($arrId, $id_mapel->kelas); Of6yH: } goto bpdga; LAL8M: $mapel = json_decode(json_encode(unserialize($mapel_guru->mapel_kelas))); goto NbbgW; igUMy: $this->load->view("kelas/status/data"); goto U19al; d8uhZ: $data["guru"] = $guru; goto SNnOk; afcER: if ($this->ion_auth->is_admin()) { goto crxUb; } goto ukXuS; HhUxy: $data["smt_active"] = $smt; goto afcER; ukXuS: $guru = $this->dashboard->getDataGuruByUserId($user->id, $tp->id_tp, $smt->id_smt); goto Z6op3; pJuV0: foreach ($mapel as $m) { goto GKQeA; QlKxi: dRD7B: goto yaOIk; AJ13D: foreach ($m->kelas_mapel as $kls) { $arrKelas[$kls->kelas] = $this->dropdown->getNamaKelasById($tp->id_tp, $smt->id_smt, $kls->kelas); dBqEl: } goto QlKxi; GKQeA: $arrMapel[$m->id_mapel] = $m->nama_mapel; goto AJ13D; yaOIk: eI4a_: goto iihjA; iihjA: } goto rlZfa; skuFl: $user = $this->ion_auth->user()->row(); goto Af3Fm; zMN7l: $data["tp_active"] = $tp; goto wFKyc; gEqxc: jq86P: goto YmGVa; d0eHn: $data["id_guru"] = $guru->id_guru; goto WY9Xd; ivDXt: $guru = $this->dropdown->getAllGuru(); goto CW9gb; Af3Fm: $data = ["user" => $user, "judul" => "Nilai Harian Siswa", "subjudul" => "Nilai", "setting" => $this->dashboard->getSetting()]; goto QKvLt; AGMyl: $data["kelas"] = $arrKelas; goto MgACO; bpdga: wLXrK: goto gEqxc; yW7NH: $this->load->view("members/guru/templates/footer"); goto ocdcz; KSb7t: $arrKelas = []; goto s4rPS; QKvLt: $tp = $this->dashboard->getTahunActive(); goto QiOW7; wFKyc: $data["smt"] = $this->dashboard->getSemester(); goto HhUxy; NbbgW: $arrMapel = []; goto KSb7t; yDfSw: caeZh: goto wAF5E; rlZfa: OucJP: goto uhGx9; sWGGz: $data["kelas"] = $this->dropdown->getAllKelas($tp->id_tp, $smt->id_smt); goto HLlnp; dZ8En: $data["tp"] = $this->dashboard->getTahun(); goto zMN7l; Sa4zf: $data["profile"] = $this->dashboard->getProfileAdmin($user->id); goto ivDXt; I2vx6: $this->load->view("_templates/dashboard/_header", $data); goto igUMy; XwI3b: $arrId = []; goto C2b0k; HxHsh: $this->load->view("kelas/status/data"); goto yW7NH; ocdcz: goto caeZh; goto YTlvL; uhGx9: s9y30: goto XwI3b; WY9Xd: $mapel_guru = $this->kelas->getGuruMapelKelas($guru->id_guru, $tp->id_tp, $smt->id_smt); goto LAL8M; SNnOk: $data["gurus"] = $nguru; goto d0eHn; U19al: $this->load->view("_templates/dashboard/_footer"); goto yDfSw; CW9gb: $data["gurus"] = $guru; goto sWGGz; s4rPS: if (!($mapel != null)) { goto s9y30; } goto pJuV0; wAF5E: } public function getMateriGuru() { goto AKTL1; hRmfQ: $arrKelasTugas = []; goto KXrCy; KXrCy: foreach ($materi as $m) { goto Y3JY7; RErZ3: y3s6n: goto MBLam; Y3JY7: $kode_mapel = $m->kode_mapel == null ? "--" : $m->kode_mapel; goto QaGCg; DyCCm: goto aUo_9; goto RErZ3; QaGCg: if ($m->jenis == "1") { goto y3s6n; } goto nJsTt; MBLam: $arrKelasMateri[] = ["id_materi" => $m->id_materi, "id_kjm" => $m->id_kjm, "jadwal" => $m->jadwal_materi, "kode" => $m->kode_materi, "mapel" => $kode_mapel, "kelas" => unserialize($m->materi_kelas)]; goto OlVb3; nJsTt: $arrKelasTugas[] = ["id_materi" => $m->id_materi, "id_kjm" => $m->id_kjm, "jadwal" => $m->jadwal_materi, "kode" => $m->kode_materi, "mapel" => $kode_mapel, "kelas" => unserialize($m->materi_kelas)]; goto DyCCm; dMQrP: OQu3Y: goto v_jyg; OlVb3: aUo_9: goto dMQrP; v_jyg: } goto qBj1d; AKTL1: $id_guru = $this->input->get("id", true); goto hOuw5; qBj1d: n3xmk: goto xbqCl; hOuw5: $tp = $this->dashboard->getTahunActive(); goto BJmms; PQz7L: $materi = $this->kelas->getAllKodeMateri($tp->id_tp, $smt->id_smt, $id_guru); goto w1u8Z; w1u8Z: $arrKelasMateri = []; goto hRmfQ; BJmms: $smt = $this->dashboard->getSemesterActive(); goto PQz7L; xbqCl: $this->output_json(array("materi" => $arrKelasMateri, "tugas" => $arrKelasTugas)); goto NxbBo; NxbBo: } public function getMateriMapel() { goto MLITU; YORBf: $arrKelasTugas = []; goto sJfwm; sJfwm: $arrKelas = []; goto TXZ7q; Cvkyo: qoZen: goto BhjMc; MLITU: $id_mapel = $this->input->get("id", true); goto Ex46F; BhjMc: $this->output_json(array("materi" => $arrKelasMateri, "tugas" => $arrKelasTugas, "kelas" => $arrKelas)); goto yxxTY; v_u8t: $smt = $this->dashboard->getSemesterActive(); goto St3bV; d4GI1: $arrKelasMateri = []; goto YORBf; St3bV: $materi = $this->kelas->getKodeMateriMapel($tp->id_tp, $smt->id_smt, $id_mapel); goto d4GI1; Ex46F: $tp = $this->dashboard->getTahunActive(); goto v_u8t; TXZ7q: foreach ($materi as $m) { goto sIQZ5; xQ_Xu: array_push($arrKelasTugas[$m->id_kelas], $arrTugas); goto DsKP3; LIxgi: if (isset($arrKelasMateri[$m->id_kelas])) { goto G7uBW; } goto Dlv0T; DDged: $arrKelasTugas[$m->id_kelas] = []; goto xQ_Xu; dy245: array_push($arrKelasMateri[$m->id_kelas], $arrMateri); goto ohRnR; S7n1w: goto UOrAB; goto RLUpE; ISdMM: array_push($arrKelas[$m->jenis], $m->id_kelas); goto UulJi; lc2w_: BIhxk: goto S7n1w; aAHXG: if ($m->jenis == "1") { goto wgGHr; } goto vkcKb; ghylh: BThg9: goto MhbIz; nPqB6: array_push($arrKelasMateri[$m->id_kelas], $arrTugas); goto lc2w_; RLUpE: wgGHr: goto paQ78; QPOJk: UOrAB: goto U6Zg8; sIQZ5: $kode_mapel = $m->kode_mapel == null ? "--" : $m->kode_mapel; goto aAHXG; Juqie: G7uBW: goto dy245; RPjLX: SoNWp: goto XfDZz; W0BQQ: ykI36: goto nPqB6; XfDZz: if (in_array($m->id_kelas, $arrKelas[$m->jenis])) { goto gLa8K; } goto ggHh6; Y8U_U: if (isset($arrKelasTugas[$m->id_kelas])) { goto ykI36; } goto DDged; U6Zg8: if (isset($arrKelas[$m->jenis])) { goto SoNWp; } goto TPxG8; Dlv0T: $arrKelasMateri[$m->id_kelas] = []; goto W2XJ5; Cknom: goto iBppl; goto Juqie; paQ78: $arrMateri = ["id_materi" => $m->id_materi, "id_kjm" => $m->id_kjm, "jadwal" => $m->jadwal_materi, "kode" => $m->kode_materi, "mapel" => $kode_mapel, "guru" => $m->nama_guru]; goto LIxgi; ohRnR: iBppl: goto QPOJk; ggHh6: array_push($arrKelas[$m->jenis], $m->id_kelas); goto oQlya; UulJi: goto BThg9; goto RPjLX; vkcKb: $arrTugas = ["id_materi" => $m->id_materi, "id_kjm" => $m->id_kjm, "jadwal" => $m->jadwal_materi, "kode" => $m->kode_materi, "mapel" => $kode_mapel, "guru" => $m->nama_guru]; goto Y8U_U; TPxG8: $arrKelas[$m->jenis] = []; goto ISdMM; W2XJ5: array_push($arrKelasMateri[$m->id_kelas], $arrMateri); goto Cknom; MhbIz: qt3Rg: goto voulh; oQlya: gLa8K: goto ghylh; DsKP3: goto BIhxk; goto W0BQQ; voulh: } goto Cvkyo; yxxTY: } public function loadStatus() { goto OcpgA; Yrx6x: $siswa = $this->kelas->getKelasSiswa($id_kelas, $id_tp, $id_smt); goto u2p5p; i2Wxp: goto UIEJV; goto yRHFG; JeLhE: goto LvcB5; goto sCjA4; u2p5p: $logs = $this->kelas->getStatusMateriSiswa($id_kjm); goto GtMO8; aioMB: $kelas_materi = $this->kelas->getNamaKelasById([$id_kelas]); goto bCu4n; S9hr8: pBJyY: goto hAUFj; QugRa: $jam_materi = []; goto kkRMO; c1THp: $jadwal = $jadwals[$key]; goto KPiDt; ZsZZV: if (in_array($jamke, $arrIst)) { goto eby0p; } goto QwG7i; yRHFG: eby0p: goto o8h3V; kpa3i: $detail = []; goto QugRa; o8h3V: try { goto GHlSp; Z_kl0: $jamMulai->add(new DateInterval("PT" . $arrDur[$jamke] . "M")); goto GC8eq; GHlSp: $jamSampai->add(new DateInterval("PT" . $arrDur[$jamke] . "M")); goto Reg_W; Reg_W: $jam_mapel[$jamke] = ["dari" => $jamMulai->format("H:i"), "sampai" => $jamSampai->format("H:i"), "tgl" => $materi->jadwal_materi]; goto Z_kl0; GC8eq: } catch (Exception $e) { } goto w9tzF; hAUFj: $materi = $this->kelas->getMateriKelasSiswa($id_kjm, $jenis); goto kpa3i; j2sGP: $id_kelas = $this->input->post("id_kelas", true); goto cuwRX; T9mX5: $i = 0; goto SyHIW; VNyCD: $detail = ["mapel" => $materi->nama_mapel, "judul" => $materi->judul_materi, "guru" => $materi->nama_guru, "kelas" => $kelas_materi[$id_kelas], "jam_ke" => $jadwal->jam_ke, "waktu" => $jam_materi]; goto nrb3A; OjqlI: $log = []; goto zGUFw; cuwRX: $id_kjm = $this->input->post("id_kjm", true); goto hsIMx; mqfev: if (!($i < $info->kbm_jml_mapel_hari)) { goto a585L; } goto HOfKW; W1SF1: B92rw: goto cVkyk; hsIMx: $id_tp = $this->master->getTahunActive()->id_tp; goto iXIus; nrb3A: lf9OD: goto OjqlI; mcVuI: $info->istirahat = unserialize($info->istirahat); goto S9hr8; KwRgc: $jam_mapel = []; goto T9mX5; iXIus: $id_smt = $this->master->getSemesterActive()->id_smt; goto NzYQc; x8BtO: $jamMulai = new DateTime($info->kbm_jam_mulai); goto qXIE4; vg_E7: $jam_materi = $jam_mapel[$jadwal->jam_ke]; goto VNyCD; Ptgbq: deLGS: goto VLuPy; qXIE4: $jamSampai = new DateTime($info->kbm_jam_mulai); goto KwRgc; zGUFw: foreach ($siswa as $s) { goto NJC33; CPfbv: ix_o7: goto THCQz; tqYMd: if (!$selesai) { goto dryAB; } goto pmC1o; NJC33: $mulai = isset($logs[$s->id_siswa]) ? $logs[$s->id_siswa]->log_time : null; goto ErXE6; nLceT: $time_siswa = strtotime($mulai); goto RJ3KA; DlCCF: dryAB: goto N1HJd; pmC1o: $jam_jadwal = new DateTime(date("Y-m-d H:i:s", strtotime($materi->jadwal_materi . " " . $jam_materi["sampai"]))); goto Md0u8; s3pUQ: $minutes = $interval->days * 24 * 60 + $interval->h * 60 + $interval->i; goto ee0WQ; N1HJd: $log[$s->id_siswa] = ["nama" => $s->nama, "nis" => $s->nis, "kelas" => $s->nama_kelas, "login" => $this->kelas->getLoginSiswa($s->username), "mulai" => $mulai, "selesai" => $selesai, "text" => isset($logs[$s->id_siswa]) ? $logs[$s->id_siswa]->text : '', "nilai" => isset($logs[$s->id_siswa]) ? $logs[$s->id_siswa]->nilai : '', "catatan" => isset($logs[$s->id_siswa]) ? $logs[$s->id_siswa]->catatan : '', "jam_ke" => isset($logs[$s->id_siswa]) ? $logs[$s->id_siswa]->jam_ke : null, "jadwal_materi" => isset($logs[$s->id_siswa]) ? $logs[$s->id_siswa]->jadwal_materi : null, "file" => isset($logs[$s->id_siswa]) && $logs[$s->id_siswa]->file != null ? unserialize($logs[$s->id_siswa]->file) : [], "diff" => $diff, "j_materi" => $jam_materi["sampai"]]; goto CPfbv; ErXE6: $selesai = isset($logs[$s->id_siswa]) ? $logs[$s->id_siswa]->finish_time : null; goto v0gJf; llO4E: $interval = $jam_siswa->diff($jam_jadwal); goto s3pUQ; v0gJf: $diff = null; goto tqYMd; RJ3KA: $diff = ["days" => $interval->days, "hari" => $interval->d, "jam" => $interval->h, "menit" => $interval->i, "detik" => $interval->s, "total" => $minutes, "interval" => (int) $interval->format("%r%H:%i:%s"), "terlambat" => $time_siswa - $time_jadwal > 0]; goto DlCCF; Md0u8: $jam_siswa = new DateTime(date("Y-m-d H:i:s", strtotime($mulai))); goto llO4E; ee0WQ: $time_jadwal = strtotime($materi->jadwal_materi . " " . $jam_materi["sampai"]); goto nLceT; THCQz: } goto Ptgbq; ljSUk: L__Zp: goto x8BtO; kkRMO: if (!$materi) { goto lf9OD; } goto aioMB; sCjA4: a585L: goto vg_E7; VLuPy: $this->output_json(["log" => $log, "jadwal" => $info, "materi" => $materi, "detail" => $detail]); goto aAs6a; NzYQc: $jenis = $label === "Materi" ? "1" : "2"; goto Yrx6x; KPiDt: $ist = json_decode(json_encode($info->istirahat)); goto kEbC2; jcOTV: $arrIst = []; goto XVtu6; sBKow: if (!($info != null)) { goto pBJyY; } goto mcVuI; HOfKW: $jamke = $i + 1; goto ZsZZV; SyHIW: LvcB5: goto mqfev; lUnwy: $jadwals = $this->kelas->loadJadwalSiswaHariIni($id_tp, $id_smt, $id_kelas, $numday, false); goto j_FEB; OcpgA: $label = $this->input->post("label", true); goto j2sGP; w9tzF: UIEJV: goto W1SF1; kEbC2: $arrDur = []; goto jcOTV; XVtu6: foreach ($ist as $istirahat) { goto zHeFu; IROkk: $arrDur[$istirahat->ist] = $istirahat->dur; goto LG30p; LG30p: OnVyA: goto XVJia; zHeFu: $arrIst[] = $istirahat->ist; goto IROkk; XVJia: } goto ljSUk; bCu4n: $numday = date("N", strtotime($materi->jadwal_materi)); goto lUnwy; GtMO8: $info = $this->dashboard->getJadwalKbm($id_tp, $id_smt, $id_kelas); goto sBKow; cVkyk: $i++; goto JeLhE; j_FEB: $key = array_search($materi->id_mapel, array_column($jadwals, "id_mapel")); goto c1THp; QwG7i: try { goto V1Wup; kLBYz: $jam_mapel[$jamke] = ["dari" => $jamMulai->format("H:i"), "sampai" => $jamSampai->format("H:i"), "tgl" => $materi->jadwal_materi]; goto FKI06; FKI06: $jamMulai->add(new DateInterval("PT" . $info->kbm_jam_pel . "M")); goto LAH0N; V1Wup: $jamSampai->add(new DateInterval("PT" . $info->kbm_jam_pel . "M")); goto kLBYz; LAH0N: } catch (Exception $e) { } goto i2Wxp; aAs6a: } public function saveNilai() { goto FWv1D; YyEth: $update = $this->db->update("log_materi", $insert); goto YRQfd; tIaEQ: if ($q->num_rows() > 0) { goto tc_A0; } goto ZjEc5; ZjEc5: $this->db->set("id_log", $id_log); goto PU72R; GaaLt: $this->db->where("id_log", $id_log); goto smFf6; fJSQn: $this->db->where("id_log", $id_log); goto YyEth; CKebh: $nilai = $this->input->post("nilai", true); goto OvRpi; np6UB: tc_A0: goto fJSQn; OvRpi: $catatan = $this->input->post("catatan", true); goto KHgsB; FWv1D: $method = $this->input->post("method", true); goto EGhCZ; KHgsB: $insert = ["nilai" => $nilai, "catatan" => $catatan]; goto GaaLt; PU72R: $update = $this->db->insert("log_materi", $insert); goto vWOXS; YRQfd: xZvPe: goto x8k3x; EGhCZ: $label = $this->input->post("label", true); goto xZuDp; smFf6: $q = $this->db->get("log_materi"); goto tIaEQ; vWOXS: goto xZvPe; goto np6UB; x8k3x: $this->output_json($update); goto kiUMH; xZuDp: $id_log = $this->input->post("id_log", true); goto CKebh; kiUMH: } } 
 ?>

Did this file decode correctly?

Original Code

<?php
/*   ________________________________________
    |                 GarudaCBT              |
    |    https://github.com/garudacbt/cbt    |
    |________________________________________|
*/
 class Kelasstatus extends CI_Controller { public function __construct() { goto JxBIl; N4Da7: $this->load->model("\x44\x61\163\150\x62\157\x61\x72\x64\137\x6d\157\x64\x65\154", "\144\141\163\150\142\x6f\141\162\144"); goto x07eQ; CkSvd: redirect("\141\x75\x74\x68"); goto hTWcA; hTWcA: we5b9: goto eBaR2; OVDXT: show_error("\110\141\x6e\x79\141\40\x41\x64\155\x69\x6e\x69\163\164\162\141\164\x6f\162\40\x79\141\x6e\147\x20\144\x69\x62\145\162\151\x20\x68\141\x6b\x20\x75\156\164\165\153\x20\155\x65\156\x67\x61\153\163\x65\x73\40\x68\141\x6c\x61\155\x61\156\40\x69\156\x69\x2c\40\x3c\141\x20\x68\162\145\146\75\42" . base_url("\x64\141\x73\x68\142\157\x61\162\144") . "\42\x3e\113\145\x6d\142\141\x6c\151\x20\153\145\40\x6d\x65\x6e\165\x20\141\167\x61\154\x3c\57\x61\76", 403, "\101\153\x73\145\x73\x20\x54\145\162\x6c\141\162\141\x6e\147"); goto viop4; eBaR2: $this->load->library(["\144\x61\x74\141\164\x61\142\x6c\145\x73", "\x66\x6f\162\x6d\137\x76\141\x6c\151\144\141\164\x69\157\x6e"]); goto Nc_H2; JxBIl: parent::__construct(); goto LVl2Q; viop4: iyyAz: goto F7gHx; C3D_d: FXrsf: goto CkSvd; LVl2Q: if (!$this->ion_auth->logged_in()) { goto FXrsf; } goto BYslL; UpzEJ: $this->form_validation->set_error_delimiters('', ''); goto H1_pv; x07eQ: $this->load->model("\104\x72\x6f\160\x64\157\167\156\x5f\x6d\157\x64\145\x6c", "\x64\162\x6f\160\144\x6f\167\x6e"); goto iVFl8; Nc_H2: $this->load->model("\115\141\163\164\145\162\x5f\155\157\x64\145\x6c", "\155\x61\x73\164\145\x72"); goto N4Da7; iVFl8: $this->load->model("\x4b\x65\x6c\x61\163\137\x6d\157\x64\145\x6c", "\153\x65\154\141\163"); goto UpzEJ; F7gHx: goto we5b9; goto C3D_d; BYslL: if (!(!$this->ion_auth->is_admin() && !$this->ion_auth->in_group("\x67\165\x72\165"))) { goto iyyAz; } goto OVDXT; H1_pv: } public function output_json($data, $encode = true) { goto f1rT6; a2OV0: $this->output->set_content_type("\x61\160\160\x6c\x69\143\141\x74\x69\x6f\x6e\x2f\x6a\x73\157\156")->set_output($data); goto nzj2r; f1rT6: if (!$encode) { goto wLh3j; } goto Bb51o; Bb51o: $data = json_encode($data); goto vNWLQ; vNWLQ: wLh3j: goto a2OV0; nzj2r: } public function index() { goto skuFl; MgACO: $this->load->view("\x6d\x65\155\x62\x65\x72\x73\x2f\147\165\x72\165\x2f\164\145\x6d\x70\154\x61\x74\145\x73\x2f\x68\145\x61\144\x65\x72", $data); goto HxHsh; C2b0k: if (!($mapel != null)) { goto jq86P; } goto EtXic; QiOW7: $smt = $this->dashboard->getSemesterActive(); goto dZ8En; YmGVa: $data["\x6d\x61\160\145\154\x73"] = $arrMapel; goto AGMyl; YTlvL: crxUb: goto Sa4zf; Z6op3: $nguru[$guru->id_guru] = $guru->nama_guru; goto d8uhZ; HLlnp: $data["\x6d\141\160\x65\x6c\163"] = $this->dropdown->getAllMapel(); goto I2vx6; EtXic: foreach ($mapel[0]->kelas_mapel as $id_mapel) { array_push($arrId, $id_mapel->kelas); Of6yH: } goto bpdga; LAL8M: $mapel = json_decode(json_encode(unserialize($mapel_guru->mapel_kelas))); goto NbbgW; igUMy: $this->load->view("\x6b\145\154\x61\163\57\163\x74\x61\x74\x75\x73\57\x64\x61\164\x61"); goto U19al; d8uhZ: $data["\x67\165\162\165"] = $guru; goto SNnOk; afcER: if ($this->ion_auth->is_admin()) { goto crxUb; } goto ukXuS; HhUxy: $data["\x73\155\x74\x5f\141\x63\164\151\166\x65"] = $smt; goto afcER; ukXuS: $guru = $this->dashboard->getDataGuruByUserId($user->id, $tp->id_tp, $smt->id_smt); goto Z6op3; pJuV0: foreach ($mapel as $m) { goto GKQeA; QlKxi: dRD7B: goto yaOIk; AJ13D: foreach ($m->kelas_mapel as $kls) { $arrKelas[$kls->kelas] = $this->dropdown->getNamaKelasById($tp->id_tp, $smt->id_smt, $kls->kelas); dBqEl: } goto QlKxi; GKQeA: $arrMapel[$m->id_mapel] = $m->nama_mapel; goto AJ13D; yaOIk: eI4a_: goto iihjA; iihjA: } goto rlZfa; skuFl: $user = $this->ion_auth->user()->row(); goto Af3Fm; zMN7l: $data["\164\160\x5f\141\x63\x74\x69\x76\145"] = $tp; goto wFKyc; gEqxc: jq86P: goto YmGVa; d0eHn: $data["\151\x64\137\x67\165\x72\x75"] = $guru->id_guru; goto WY9Xd; ivDXt: $guru = $this->dropdown->getAllGuru(); goto CW9gb; Af3Fm: $data = ["\165\x73\x65\x72" => $user, "\x6a\165\144\x75\x6c" => "\116\x69\154\141\151\x20\x48\141\162\x69\141\x6e\x20\x53\151\163\x77\x61", "\x73\x75\x62\152\165\144\x75\154" => "\x4e\151\x6c\x61\151", "\x73\x65\x74\x74\x69\x6e\147" => $this->dashboard->getSetting()]; goto QKvLt; AGMyl: $data["\153\x65\x6c\141\163"] = $arrKelas; goto MgACO; bpdga: wLXrK: goto gEqxc; yW7NH: $this->load->view("\x6d\145\x6d\x62\145\x72\163\x2f\147\x75\x72\x75\x2f\x74\x65\x6d\160\154\x61\164\145\x73\57\146\157\157\x74\145\x72"); goto ocdcz; KSb7t: $arrKelas = []; goto s4rPS; QKvLt: $tp = $this->dashboard->getTahunActive(); goto QiOW7; wFKyc: $data["\163\155\164"] = $this->dashboard->getSemester(); goto HhUxy; NbbgW: $arrMapel = []; goto KSb7t; yDfSw: caeZh: goto wAF5E; rlZfa: OucJP: goto uhGx9; sWGGz: $data["\x6b\x65\x6c\x61\163"] = $this->dropdown->getAllKelas($tp->id_tp, $smt->id_smt); goto HLlnp; dZ8En: $data["\164\160"] = $this->dashboard->getTahun(); goto zMN7l; Sa4zf: $data["\x70\162\157\146\x69\154\145"] = $this->dashboard->getProfileAdmin($user->id); goto ivDXt; I2vx6: $this->load->view("\137\x74\x65\x6d\x70\154\141\x74\x65\x73\x2f\144\141\x73\x68\x62\157\141\x72\x64\x2f\137\x68\145\x61\x64\145\162", $data); goto igUMy; XwI3b: $arrId = []; goto C2b0k; HxHsh: $this->load->view("\x6b\x65\154\x61\x73\57\x73\164\141\164\x75\x73\x2f\x64\141\x74\141"); goto yW7NH; ocdcz: goto caeZh; goto YTlvL; uhGx9: s9y30: goto XwI3b; WY9Xd: $mapel_guru = $this->kelas->getGuruMapelKelas($guru->id_guru, $tp->id_tp, $smt->id_smt); goto LAL8M; SNnOk: $data["\147\165\x72\165\163"] = $nguru; goto d0eHn; U19al: $this->load->view("\x5f\x74\x65\x6d\x70\x6c\x61\x74\x65\x73\57\x64\x61\163\x68\142\x6f\x61\x72\144\x2f\137\x66\x6f\157\164\x65\x72"); goto yDfSw; CW9gb: $data["\147\165\x72\165\163"] = $guru; goto sWGGz; s4rPS: if (!($mapel != null)) { goto s9y30; } goto pJuV0; wAF5E: } public function getMateriGuru() { goto AKTL1; hRmfQ: $arrKelasTugas = []; goto KXrCy; KXrCy: foreach ($materi as $m) { goto Y3JY7; RErZ3: y3s6n: goto MBLam; Y3JY7: $kode_mapel = $m->kode_mapel == null ? "\x2d\x2d" : $m->kode_mapel; goto QaGCg; DyCCm: goto aUo_9; goto RErZ3; QaGCg: if ($m->jenis == "\x31") { goto y3s6n; } goto nJsTt; MBLam: $arrKelasMateri[] = ["\x69\144\137\x6d\x61\164\x65\x72\151" => $m->id_materi, "\151\144\137\x6b\152\155" => $m->id_kjm, "\152\x61\x64\167\x61\154" => $m->jadwal_materi, "\153\x6f\144\x65" => $m->kode_materi, "\x6d\x61\160\x65\x6c" => $kode_mapel, "\x6b\x65\x6c\x61\x73" => unserialize($m->materi_kelas)]; goto OlVb3; nJsTt: $arrKelasTugas[] = ["\151\x64\x5f\x6d\x61\164\x65\162\x69" => $m->id_materi, "\x69\x64\x5f\x6b\152\155" => $m->id_kjm, "\152\x61\x64\x77\x61\x6c" => $m->jadwal_materi, "\x6b\x6f\x64\145" => $m->kode_materi, "\x6d\x61\160\145\x6c" => $kode_mapel, "\x6b\145\154\x61\x73" => unserialize($m->materi_kelas)]; goto DyCCm; dMQrP: OQu3Y: goto v_jyg; OlVb3: aUo_9: goto dMQrP; v_jyg: } goto qBj1d; AKTL1: $id_guru = $this->input->get("\151\144", true); goto hOuw5; qBj1d: n3xmk: goto xbqCl; hOuw5: $tp = $this->dashboard->getTahunActive(); goto BJmms; PQz7L: $materi = $this->kelas->getAllKodeMateri($tp->id_tp, $smt->id_smt, $id_guru); goto w1u8Z; w1u8Z: $arrKelasMateri = []; goto hRmfQ; BJmms: $smt = $this->dashboard->getSemesterActive(); goto PQz7L; xbqCl: $this->output_json(array("\x6d\141\x74\x65\162\151" => $arrKelasMateri, "\x74\x75\x67\x61\163" => $arrKelasTugas)); goto NxbBo; NxbBo: } public function getMateriMapel() { goto MLITU; YORBf: $arrKelasTugas = []; goto sJfwm; sJfwm: $arrKelas = []; goto TXZ7q; Cvkyo: qoZen: goto BhjMc; MLITU: $id_mapel = $this->input->get("\x69\x64", true); goto Ex46F; BhjMc: $this->output_json(array("\155\x61\x74\x65\162\151" => $arrKelasMateri, "\164\x75\147\141\163" => $arrKelasTugas, "\x6b\x65\154\x61\x73" => $arrKelas)); goto yxxTY; v_u8t: $smt = $this->dashboard->getSemesterActive(); goto St3bV; d4GI1: $arrKelasMateri = []; goto YORBf; St3bV: $materi = $this->kelas->getKodeMateriMapel($tp->id_tp, $smt->id_smt, $id_mapel); goto d4GI1; Ex46F: $tp = $this->dashboard->getTahunActive(); goto v_u8t; TXZ7q: foreach ($materi as $m) { goto sIQZ5; xQ_Xu: array_push($arrKelasTugas[$m->id_kelas], $arrTugas); goto DsKP3; LIxgi: if (isset($arrKelasMateri[$m->id_kelas])) { goto G7uBW; } goto Dlv0T; DDged: $arrKelasTugas[$m->id_kelas] = []; goto xQ_Xu; dy245: array_push($arrKelasMateri[$m->id_kelas], $arrMateri); goto ohRnR; S7n1w: goto UOrAB; goto RLUpE; ISdMM: array_push($arrKelas[$m->jenis], $m->id_kelas); goto UulJi; lc2w_: BIhxk: goto S7n1w; aAHXG: if ($m->jenis == "\x31") { goto wgGHr; } goto vkcKb; ghylh: BThg9: goto MhbIz; nPqB6: array_push($arrKelasMateri[$m->id_kelas], $arrTugas); goto lc2w_; RLUpE: wgGHr: goto paQ78; QPOJk: UOrAB: goto U6Zg8; sIQZ5: $kode_mapel = $m->kode_mapel == null ? "\x2d\x2d" : $m->kode_mapel; goto aAHXG; Juqie: G7uBW: goto dy245; RPjLX: SoNWp: goto XfDZz; W0BQQ: ykI36: goto nPqB6; XfDZz: if (in_array($m->id_kelas, $arrKelas[$m->jenis])) { goto gLa8K; } goto ggHh6; Y8U_U: if (isset($arrKelasTugas[$m->id_kelas])) { goto ykI36; } goto DDged; U6Zg8: if (isset($arrKelas[$m->jenis])) { goto SoNWp; } goto TPxG8; Dlv0T: $arrKelasMateri[$m->id_kelas] = []; goto W2XJ5; Cknom: goto iBppl; goto Juqie; paQ78: $arrMateri = ["\x69\144\x5f\155\141\x74\145\162\x69" => $m->id_materi, "\151\144\137\x6b\152\x6d" => $m->id_kjm, "\x6a\x61\x64\x77\141\154" => $m->jadwal_materi, "\153\x6f\x64\x65" => $m->kode_materi, "\x6d\141\160\145\x6c" => $kode_mapel, "\147\x75\x72\165" => $m->nama_guru]; goto LIxgi; ohRnR: iBppl: goto QPOJk; ggHh6: array_push($arrKelas[$m->jenis], $m->id_kelas); goto oQlya; UulJi: goto BThg9; goto RPjLX; vkcKb: $arrTugas = ["\x69\144\x5f\x6d\141\x74\145\x72\x69" => $m->id_materi, "\151\144\137\x6b\x6a\x6d" => $m->id_kjm, "\x6a\x61\144\167\141\154" => $m->jadwal_materi, "\x6b\x6f\x64\x65" => $m->kode_materi, "\155\141\x70\x65\154" => $kode_mapel, "\147\x75\162\165" => $m->nama_guru]; goto Y8U_U; TPxG8: $arrKelas[$m->jenis] = []; goto ISdMM; W2XJ5: array_push($arrKelasMateri[$m->id_kelas], $arrMateri); goto Cknom; MhbIz: qt3Rg: goto voulh; oQlya: gLa8K: goto ghylh; DsKP3: goto BIhxk; goto W0BQQ; voulh: } goto Cvkyo; yxxTY: } public function loadStatus() { goto OcpgA; Yrx6x: $siswa = $this->kelas->getKelasSiswa($id_kelas, $id_tp, $id_smt); goto u2p5p; i2Wxp: goto UIEJV; goto yRHFG; JeLhE: goto LvcB5; goto sCjA4; u2p5p: $logs = $this->kelas->getStatusMateriSiswa($id_kjm); goto GtMO8; aioMB: $kelas_materi = $this->kelas->getNamaKelasById([$id_kelas]); goto bCu4n; S9hr8: pBJyY: goto hAUFj; QugRa: $jam_materi = []; goto kkRMO; c1THp: $jadwal = $jadwals[$key]; goto KPiDt; ZsZZV: if (in_array($jamke, $arrIst)) { goto eby0p; } goto QwG7i; yRHFG: eby0p: goto o8h3V; kpa3i: $detail = []; goto QugRa; o8h3V: try { goto GHlSp; Z_kl0: $jamMulai->add(new DateInterval("\x50\124" . $arrDur[$jamke] . "\x4d")); goto GC8eq; GHlSp: $jamSampai->add(new DateInterval("\x50\124" . $arrDur[$jamke] . "\x4d")); goto Reg_W; Reg_W: $jam_mapel[$jamke] = ["\144\x61\x72\x69" => $jamMulai->format("\110\72\x69"), "\163\141\x6d\160\141\151" => $jamSampai->format("\110\x3a\x69"), "\164\x67\154" => $materi->jadwal_materi]; goto Z_kl0; GC8eq: } catch (Exception $e) { } goto w9tzF; hAUFj: $materi = $this->kelas->getMateriKelasSiswa($id_kjm, $jenis); goto kpa3i; j2sGP: $id_kelas = $this->input->post("\x69\144\137\153\x65\x6c\141\163", true); goto cuwRX; T9mX5: $i = 0; goto SyHIW; VNyCD: $detail = ["\155\141\x70\145\x6c" => $materi->nama_mapel, "\152\x75\x64\165\154" => $materi->judul_materi, "\147\165\162\165" => $materi->nama_guru, "\153\x65\x6c\141\163" => $kelas_materi[$id_kelas], "\152\141\x6d\x5f\x6b\145" => $jadwal->jam_ke, "\167\141\x6b\164\165" => $jam_materi]; goto nrb3A; OjqlI: $log = []; goto zGUFw; cuwRX: $id_kjm = $this->input->post("\151\144\137\x6b\152\155", true); goto hsIMx; mqfev: if (!($i < $info->kbm_jml_mapel_hari)) { goto a585L; } goto HOfKW; W1SF1: B92rw: goto cVkyk; hsIMx: $id_tp = $this->master->getTahunActive()->id_tp; goto iXIus; nrb3A: lf9OD: goto OjqlI; mcVuI: $info->istirahat = unserialize($info->istirahat); goto S9hr8; KwRgc: $jam_mapel = []; goto T9mX5; iXIus: $id_smt = $this->master->getSemesterActive()->id_smt; goto NzYQc; x8BtO: $jamMulai = new DateTime($info->kbm_jam_mulai); goto qXIE4; vg_E7: $jam_materi = $jam_mapel[$jadwal->jam_ke]; goto VNyCD; Ptgbq: deLGS: goto VLuPy; qXIE4: $jamSampai = new DateTime($info->kbm_jam_mulai); goto KwRgc; zGUFw: foreach ($siswa as $s) { goto NJC33; CPfbv: ix_o7: goto THCQz; tqYMd: if (!$selesai) { goto dryAB; } goto pmC1o; NJC33: $mulai = isset($logs[$s->id_siswa]) ? $logs[$s->id_siswa]->log_time : null; goto ErXE6; nLceT: $time_siswa = strtotime($mulai); goto RJ3KA; DlCCF: dryAB: goto N1HJd; pmC1o: $jam_jadwal = new DateTime(date("\131\55\155\x2d\x64\x20\110\72\x69\x3a\163", strtotime($materi->jadwal_materi . "\x20" . $jam_materi["\163\141\x6d\160\x61\151"]))); goto Md0u8; s3pUQ: $minutes = $interval->days * 24 * 60 + $interval->h * 60 + $interval->i; goto ee0WQ; N1HJd: $log[$s->id_siswa] = ["\x6e\141\155\x61" => $s->nama, "\x6e\151\x73" => $s->nis, "\x6b\x65\154\141\x73" => $s->nama_kelas, "\154\157\147\x69\156" => $this->kelas->getLoginSiswa($s->username), "\x6d\x75\x6c\141\x69" => $mulai, "\163\145\x6c\145\x73\141\151" => $selesai, "\164\x65\170\x74" => isset($logs[$s->id_siswa]) ? $logs[$s->id_siswa]->text : '', "\156\151\154\141\x69" => isset($logs[$s->id_siswa]) ? $logs[$s->id_siswa]->nilai : '', "\x63\141\x74\141\164\x61\x6e" => isset($logs[$s->id_siswa]) ? $logs[$s->id_siswa]->catatan : '', "\x6a\141\x6d\x5f\x6b\145" => isset($logs[$s->id_siswa]) ? $logs[$s->id_siswa]->jam_ke : null, "\x6a\x61\144\x77\141\154\x5f\155\141\164\x65\x72\x69" => isset($logs[$s->id_siswa]) ? $logs[$s->id_siswa]->jadwal_materi : null, "\x66\151\x6c\145" => isset($logs[$s->id_siswa]) && $logs[$s->id_siswa]->file != null ? unserialize($logs[$s->id_siswa]->file) : [], "\144\x69\x66\146" => $diff, "\x6a\137\x6d\x61\x74\145\x72\151" => $jam_materi["\x73\141\155\160\141\151"]]; goto CPfbv; ErXE6: $selesai = isset($logs[$s->id_siswa]) ? $logs[$s->id_siswa]->finish_time : null; goto v0gJf; llO4E: $interval = $jam_siswa->diff($jam_jadwal); goto s3pUQ; v0gJf: $diff = null; goto tqYMd; RJ3KA: $diff = ["\x64\141\171\163" => $interval->days, "\x68\x61\x72\x69" => $interval->d, "\152\141\155" => $interval->h, "\155\x65\x6e\x69\164" => $interval->i, "\x64\x65\x74\x69\153" => $interval->s, "\x74\157\164\x61\x6c" => $minutes, "\x69\156\x74\145\x72\x76\x61\154" => (int) $interval->format("\x25\162\x25\x48\72\45\x69\x3a\x25\x73"), "\x74\145\162\154\141\x6d\x62\x61\164" => $time_siswa - $time_jadwal > 0]; goto DlCCF; Md0u8: $jam_siswa = new DateTime(date("\x59\x2d\x6d\x2d\x64\40\x48\x3a\x69\x3a\x73", strtotime($mulai))); goto llO4E; ee0WQ: $time_jadwal = strtotime($materi->jadwal_materi . "\x20" . $jam_materi["\x73\x61\155\160\141\x69"]); goto nLceT; THCQz: } goto Ptgbq; ljSUk: L__Zp: goto x8BtO; kkRMO: if (!$materi) { goto lf9OD; } goto aioMB; sCjA4: a585L: goto vg_E7; VLuPy: $this->output_json(["\x6c\x6f\x67" => $log, "\152\141\x64\167\x61\154" => $info, "\155\x61\x74\145\162\151" => $materi, "\144\145\x74\141\x69\x6c" => $detail]); goto aAs6a; NzYQc: $jenis = $label === "\115\141\164\145\162\151" ? "\61" : "\x32"; goto Yrx6x; KPiDt: $ist = json_decode(json_encode($info->istirahat)); goto kEbC2; jcOTV: $arrIst = []; goto XVtu6; sBKow: if (!($info != null)) { goto pBJyY; } goto mcVuI; HOfKW: $jamke = $i + 1; goto ZsZZV; SyHIW: LvcB5: goto mqfev; lUnwy: $jadwals = $this->kelas->loadJadwalSiswaHariIni($id_tp, $id_smt, $id_kelas, $numday, false); goto j_FEB; OcpgA: $label = $this->input->post("\x6c\141\142\145\x6c", true); goto j2sGP; w9tzF: UIEJV: goto W1SF1; kEbC2: $arrDur = []; goto jcOTV; XVtu6: foreach ($ist as $istirahat) { goto zHeFu; IROkk: $arrDur[$istirahat->ist] = $istirahat->dur; goto LG30p; LG30p: OnVyA: goto XVJia; zHeFu: $arrIst[] = $istirahat->ist; goto IROkk; XVJia: } goto ljSUk; bCu4n: $numday = date("\x4e", strtotime($materi->jadwal_materi)); goto lUnwy; GtMO8: $info = $this->dashboard->getJadwalKbm($id_tp, $id_smt, $id_kelas); goto sBKow; cVkyk: $i++; goto JeLhE; j_FEB: $key = array_search($materi->id_mapel, array_column($jadwals, "\151\x64\137\x6d\141\160\145\154")); goto c1THp; QwG7i: try { goto V1Wup; kLBYz: $jam_mapel[$jamke] = ["\x64\141\162\x69" => $jamMulai->format("\x48\x3a\151"), "\x73\x61\155\160\141\x69" => $jamSampai->format("\x48\72\151"), "\x74\147\x6c" => $materi->jadwal_materi]; goto FKI06; FKI06: $jamMulai->add(new DateInterval("\120\124" . $info->kbm_jam_pel . "\x4d")); goto LAH0N; V1Wup: $jamSampai->add(new DateInterval("\x50\124" . $info->kbm_jam_pel . "\115")); goto kLBYz; LAH0N: } catch (Exception $e) { } goto i2Wxp; aAs6a: } public function saveNilai() { goto FWv1D; YyEth: $update = $this->db->update("\154\157\147\x5f\x6d\141\x74\x65\x72\151", $insert); goto YRQfd; tIaEQ: if ($q->num_rows() > 0) { goto tc_A0; } goto ZjEc5; ZjEc5: $this->db->set("\151\144\137\154\x6f\x67", $id_log); goto PU72R; GaaLt: $this->db->where("\151\144\137\x6c\157\147", $id_log); goto smFf6; fJSQn: $this->db->where("\151\x64\x5f\154\157\x67", $id_log); goto YyEth; CKebh: $nilai = $this->input->post("\156\x69\x6c\x61\151", true); goto OvRpi; np6UB: tc_A0: goto fJSQn; OvRpi: $catatan = $this->input->post("\143\141\164\141\x74\141\x6e", true); goto KHgsB; FWv1D: $method = $this->input->post("\155\x65\x74\x68\x6f\144", true); goto EGhCZ; KHgsB: $insert = ["\x6e\151\154\141\x69" => $nilai, "\143\141\x74\141\164\141\x6e" => $catatan]; goto GaaLt; PU72R: $update = $this->db->insert("\154\x6f\x67\137\155\x61\x74\145\x72\151", $insert); goto vWOXS; YRQfd: xZvPe: goto x8k3x; EGhCZ: $label = $this->input->post("\154\x61\x62\x65\x6c", true); goto xZuDp; smFf6: $q = $this->db->get("\154\157\x67\137\x6d\x61\x74\x65\162\x69"); goto tIaEQ; vWOXS: goto xZvPe; goto np6UB; x8k3x: $this->output_json($update); goto kiUMH; xZuDp: $id_log = $this->input->post("\x69\x64\x5f\154\x6f\147", true); goto CKebh; kiUMH: } }

Function Calls

None

Variables

None

Stats

MD5 fdb8e985dc9770251b3226ab529b34fd
Eval Count 0
Decode Time 61 ms