Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
defined("\x42\x41\123\105\120\x41\x54\x48") or exit("\116\157\x20\144\x69\x72\x65\x63\164\..
Decoded Output download
<? defined("BASEPATH") or exit("No direct script access allowed"); class JurusanMapel extends CI_Controller { public function __construct() { goto dzqh4; vdp40: 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 aXNFA; D0Hk4: $this->form_validation->set_error_delimiters('', ''); goto AAjmC; xcgMw: cg6Gt: goto lwu2H; OdqED: if (!$this->ion_auth->logged_in()) { goto RVKco; } goto FfJH6; FfJH6: if ($this->ion_auth->is_admin()) { goto ncjjD; } goto vdp40; IQPUW: RVKco: goto Quj_7; PT50r: $this->load->model("Master_model", "master"); goto D0Hk4; N8ybl: goto cg6Gt; goto IQPUW; Quj_7: redirect("auth"); goto xcgMw; dzqh4: parent::__construct(); goto OdqED; aXNFA: ncjjD: goto N8ybl; lwu2H: $this->load->library(["datatables", "form_validation"]); goto PT50r; AAjmC: } public function output_json($data, $encode = true) { goto JEJI9; i_G1k: tcQG5: goto ZKhpa; JEJI9: if (!$encode) { goto tcQG5; } goto FPy1O; ZKhpa: $this->output->set_content_type("application/json")->set_output($data); goto pxch7; FPy1O: $data = json_encode($data); goto i_G1k; pxch7: } public function index() { goto RhNrb; RhNrb: $data = ["user" => $this->ion_auth->user()->row(), "judul" => "Jurusan Mata Kuliah", "subjudul" => "Data Jurusan Mata Kuliah"]; goto AkdQm; kR9pf: $this->load->view("relasi/jurusanmapel/data"); goto VcndG; VcndG: $this->load->view("_templates/dashboard/_footer.php"); goto zjisl; AkdQm: $this->load->view("_templates/dashboard/_header.php", $data); goto kR9pf; zjisl: } public function data() { $this->output_json($this->master->getJurusanMapel(), false); } public function getJurusanId($id) { $this->output_json($this->master->getAllJurusan($id)); } public function add() { goto YHVRk; vTeuU: $this->load->view("_templates/dashboard/_footer.php"); goto LrS7q; MOZKD: $this->load->view("_templates/dashboard/_header.php", $data); goto e6d3p; YHVRk: $data = ["user" => $this->ion_auth->user()->row(), "judul" => "Tambah Jurusan Mata Kuliah", "subjudul" => "Tambah Data Jurusan Mata Kuliah", "mapel" => $this->master->getMapel()]; goto MOZKD; e6d3p: $this->load->view("relasi/jurusanmapel/add"); goto vTeuU; LrS7q: } public function edit($id) { goto db6jU; MjPj1: $this->load->view("_templates/dashboard/_footer.php"); goto PP6uR; ty2Db: $this->load->view("_templates/dashboard/_header.php", $data); goto O1uHb; O1uHb: $this->load->view("relasi/jurusanmapel/edit"); goto MjPj1; db6jU: $data = ["user" => $this->ion_auth->user()->row(), "judul" => "Edit Jurusan Mata Kuliah", "subjudul" => "Edit Data Jurusan Mata Kuliah", "mapel" => $this->master->getMapelById($id, true), "id_mapel" => $id, "all_jurusan" => $this->master->getAllJurusan(), "jurusan" => $this->master->getJurusanByIdMapel($id)]; goto ty2Db; PP6uR: } public function save() { goto D0Kh6; h8ReH: $this->form_validation->set_rules("jurusan_id[]", "Jurusan", "required"); goto UEk3C; iwiPv: if ($method === "add") { goto EBlmO; } goto JoG6b; D0Kh6: $method = $this->input->post("method", true); goto sqNJa; bAVqy: $mapel_id = $this->input->post("mapel_id", true); goto FE0Rm; JoG6b: if (!($method === "edit")) { goto AFmHV; } goto J5kpj; pQYkn: $this->output_json($data); goto ay1zG; l7G2W: foreach ($jurusan_id as $key => $val) { $input[] = ["mapel_id" => $mapel_id, "jurusan_id" => $val]; H6arN: } goto sjN3k; tmVUI: $action = $this->master->create("jurusan_mapel", $input, true); goto PFSk9; lXFxw: $this->output_json($data); goto zXqqa; wubAn: goto q8uO4; goto Ydsor; j4Q0L: goto y6PXK; goto EwMnz; sqNJa: $this->form_validation->set_rules("mapel_id", "Mata Kuliah", "required"); goto h8ReH; EwMnz: EBlmO: goto BfL8F; J5kpj: $id = $this->input->post("mapel_id", true); goto sNf0w; SXPlN: $input = []; goto l7G2W; KshhL: y6PXK: goto PW9zy; sjN3k: ypF5_: goto iwiPv; FE0Rm: $jurusan_id = $this->input->post("jurusan_id", true); goto SXPlN; DJf4_: $data = ["status" => false, "errors" => ["mapel_id" => form_error("mapel_id"), "jurusan_id[]" => form_error("jurusan_id[]")]]; goto lXFxw; zXqqa: q8uO4: goto pQYkn; sNf0w: $this->master->delete("jurusan_mapel", $id, "mapel_id"); goto tmVUI; UEk3C: if ($this->form_validation->run() == FALSE) { goto Ra_39; } goto bAVqy; Ydsor: Ra_39: goto DJf4_; PW9zy: $data["status"] = $action ? TRUE : FALSE; goto wubAn; BfL8F: $action = $this->master->create("jurusan_mapel", $input, true); goto KshhL; PFSk9: AFmHV: goto j4Q0L; ay1zG: } public function delete() { goto zp9mn; zp9mn: $chk = $this->input->post("checked", true); goto wAGMh; eoxce: goto nzBGp; goto ZIZ6j; jpHRD: nzBGp: goto Ha4SB; ZIZ6j: qgBC0: goto F6e9X; F6e9X: $this->output_json(["status" => false]); goto jpHRD; E77SW: if (!$this->master->delete("jurusan_mapel", $chk, "mapel_id")) { goto FhTer; } goto bMp5I; bMp5I: $this->output_json(["status" => true, "total" => count($chk)]); goto N7nL7; wAGMh: if (!$chk) { goto qgBC0; } goto E77SW; N7nL7: FhTer: goto eoxce; Ha4SB: } }
?>
Did this file decode correctly?
Original Code
defined("\x42\x41\123\105\120\x41\x54\x48") or exit("\116\157\x20\144\x69\x72\x65\x63\164\x20\163\143\x72\x69\160\x74\40\141\143\143\145\x73\x73\x20\141\x6c\154\x6f\x77\145\144"); class JurusanMapel extends CI_Controller { public function __construct() { goto dzqh4; vdp40: show_error("\110\141\x6e\171\141\40\x41\x64\x6d\151\x6e\x69\163\x74\162\x61\x74\157\162\40\x79\141\x6e\x67\40\144\151\x62\145\x72\x69\x20\150\141\x6b\x20\165\x6e\164\165\153\x20\155\x65\x6e\x67\141\153\163\145\x73\40\150\141\x6c\141\x6d\x61\x6e\40\151\x6e\151\x2c\40\x3c\141\x20\150\x72\x65\x66\75\x22" . base_url("\144\141\x73\x68\142\x6f\141\162\x64") . "\x22\76\x4b\x65\x6d\142\141\x6c\x69\x20\x6b\x65\40\155\x65\156\165\40\141\167\141\x6c\74\x2f\x61\76", 403, "\x41\153\163\x65\163\x20\x54\x65\162\154\x61\162\x61\x6e\147"); goto aXNFA; D0Hk4: $this->form_validation->set_error_delimiters('', ''); goto AAjmC; xcgMw: cg6Gt: goto lwu2H; OdqED: if (!$this->ion_auth->logged_in()) { goto RVKco; } goto FfJH6; FfJH6: if ($this->ion_auth->is_admin()) { goto ncjjD; } goto vdp40; IQPUW: RVKco: goto Quj_7; PT50r: $this->load->model("\x4d\x61\163\164\145\x72\x5f\x6d\157\144\x65\x6c", "\155\x61\163\x74\145\162"); goto D0Hk4; N8ybl: goto cg6Gt; goto IQPUW; Quj_7: redirect("\141\x75\164\x68"); goto xcgMw; dzqh4: parent::__construct(); goto OdqED; aXNFA: ncjjD: goto N8ybl; lwu2H: $this->load->library(["\144\141\164\x61\x74\141\142\154\145\x73", "\146\x6f\x72\155\137\166\141\x6c\151\144\141\164\x69\x6f\x6e"]); goto PT50r; AAjmC: } public function output_json($data, $encode = true) { goto JEJI9; i_G1k: tcQG5: goto ZKhpa; JEJI9: if (!$encode) { goto tcQG5; } goto FPy1O; ZKhpa: $this->output->set_content_type("\141\x70\160\154\151\143\x61\164\151\157\x6e\x2f\152\x73\157\156")->set_output($data); goto pxch7; FPy1O: $data = json_encode($data); goto i_G1k; pxch7: } public function index() { goto RhNrb; RhNrb: $data = ["\165\163\x65\x72" => $this->ion_auth->user()->row(), "\152\165\144\165\x6c" => "\112\x75\162\x75\163\141\x6e\x20\115\x61\164\x61\x20\x4b\x75\x6c\151\x61\x68", "\x73\165\142\152\165\144\165\x6c" => "\104\x61\x74\x61\x20\112\165\162\x75\x73\x61\156\40\x4d\141\x74\x61\40\x4b\x75\x6c\151\141\x68"]; goto AkdQm; kR9pf: $this->load->view("\x72\145\154\x61\163\151\57\x6a\x75\x72\x75\163\141\x6e\155\x61\x70\x65\x6c\57\x64\141\x74\x61"); goto VcndG; VcndG: $this->load->view("\x5f\x74\145\x6d\160\154\141\164\145\x73\x2f\144\141\163\x68\x62\x6f\x61\162\144\x2f\x5f\146\157\157\164\x65\x72\x2e\x70\150\160"); goto zjisl; AkdQm: $this->load->view("\137\164\145\155\x70\x6c\x61\x74\x65\x73\x2f\x64\141\x73\x68\142\x6f\x61\162\144\57\137\x68\145\141\144\x65\162\56\160\150\x70", $data); goto kR9pf; zjisl: } public function data() { $this->output_json($this->master->getJurusanMapel(), false); } public function getJurusanId($id) { $this->output_json($this->master->getAllJurusan($id)); } public function add() { goto YHVRk; vTeuU: $this->load->view("\x5f\x74\x65\x6d\x70\154\x61\164\x65\x73\x2f\144\x61\x73\150\142\157\141\162\144\57\x5f\146\157\x6f\x74\x65\162\56\x70\x68\160"); goto LrS7q; MOZKD: $this->load->view("\137\164\145\155\x70\x6c\141\164\145\x73\x2f\x64\x61\x73\x68\142\157\141\162\x64\x2f\x5f\x68\145\141\x64\x65\162\56\160\150\160", $data); goto e6d3p; YHVRk: $data = ["\165\x73\145\162" => $this->ion_auth->user()->row(), "\152\165\144\165\x6c" => "\x54\x61\x6d\142\x61\150\40\112\x75\x72\x75\163\x61\x6e\x20\x4d\x61\x74\141\x20\x4b\x75\154\151\x61\150", "\163\x75\x62\x6a\x75\144\165\x6c" => "\x54\141\x6d\x62\x61\x68\40\x44\x61\164\141\40\112\x75\x72\165\x73\141\x6e\40\x4d\x61\x74\x61\40\x4b\165\154\151\141\150", "\155\x61\x70\x65\x6c" => $this->master->getMapel()]; goto MOZKD; e6d3p: $this->load->view("\162\x65\154\141\x73\x69\57\x6a\x75\x72\165\163\141\x6e\155\x61\x70\145\x6c\57\141\x64\144"); goto vTeuU; LrS7q: } public function edit($id) { goto db6jU; MjPj1: $this->load->view("\137\x74\145\155\x70\154\x61\x74\x65\163\x2f\x64\x61\x73\x68\142\x6f\141\x72\x64\x2f\137\146\x6f\157\164\x65\162\x2e\160\x68\160"); goto PP6uR; ty2Db: $this->load->view("\137\164\145\x6d\160\x6c\x61\164\145\163\57\144\x61\x73\x68\142\x6f\141\x72\x64\x2f\x5f\150\x65\141\x64\x65\162\x2e\160\x68\x70", $data); goto O1uHb; O1uHb: $this->load->view("\162\x65\x6c\141\163\151\57\152\165\x72\x75\x73\141\x6e\155\x61\160\x65\x6c\57\x65\144\x69\x74"); goto MjPj1; db6jU: $data = ["\165\x73\x65\162" => $this->ion_auth->user()->row(), "\x6a\x75\x64\x75\154" => "\105\144\x69\164\x20\x4a\165\x72\x75\163\141\156\x20\115\141\164\x61\40\x4b\x75\x6c\x69\x61\150", "\x73\x75\142\152\165\144\165\154" => "\x45\144\151\x74\x20\104\141\164\x61\x20\x4a\165\162\165\163\x61\x6e\40\x4d\x61\164\141\40\x4b\x75\x6c\x69\x61\150", "\155\141\160\145\154" => $this->master->getMapelById($id, true), "\x69\144\137\155\141\160\145\x6c" => $id, "\141\154\154\x5f\152\165\162\165\163\141\x6e" => $this->master->getAllJurusan(), "\x6a\165\162\x75\x73\141\156" => $this->master->getJurusanByIdMapel($id)]; goto ty2Db; PP6uR: } public function save() { goto D0Kh6; h8ReH: $this->form_validation->set_rules("\152\x75\162\165\x73\x61\x6e\137\151\x64\133\135", "\x4a\x75\x72\165\x73\x61\156", "\x72\x65\161\165\x69\x72\145\144"); goto UEk3C; iwiPv: if ($method === "\x61\144\144") { goto EBlmO; } goto JoG6b; D0Kh6: $method = $this->input->post("\155\145\164\150\x6f\x64", true); goto sqNJa; bAVqy: $mapel_id = $this->input->post("\x6d\141\x70\x65\x6c\137\x69\144", true); goto FE0Rm; JoG6b: if (!($method === "\145\x64\151\x74")) { goto AFmHV; } goto J5kpj; pQYkn: $this->output_json($data); goto ay1zG; l7G2W: foreach ($jurusan_id as $key => $val) { $input[] = ["\155\141\160\145\154\137\x69\144" => $mapel_id, "\x6a\165\162\x75\163\141\156\137\x69\144" => $val]; H6arN: } goto sjN3k; tmVUI: $action = $this->master->create("\x6a\x75\x72\x75\x73\x61\x6e\x5f\155\x61\160\x65\154", $input, true); goto PFSk9; lXFxw: $this->output_json($data); goto zXqqa; wubAn: goto q8uO4; goto Ydsor; j4Q0L: goto y6PXK; goto EwMnz; sqNJa: $this->form_validation->set_rules("\155\x61\160\145\x6c\137\x69\x64", "\x4d\141\164\141\40\x4b\165\x6c\151\141\x68", "\162\x65\x71\x75\x69\x72\145\144"); goto h8ReH; EwMnz: EBlmO: goto BfL8F; J5kpj: $id = $this->input->post("\x6d\141\160\x65\x6c\x5f\x69\144", true); goto sNf0w; SXPlN: $input = []; goto l7G2W; KshhL: y6PXK: goto PW9zy; sjN3k: ypF5_: goto iwiPv; FE0Rm: $jurusan_id = $this->input->post("\x6a\x75\x72\x75\x73\x61\156\137\151\144", true); goto SXPlN; DJf4_: $data = ["\x73\164\141\164\x75\x73" => false, "\145\162\x72\157\x72\x73" => ["\x6d\141\160\x65\x6c\x5f\x69\x64" => form_error("\155\141\160\145\x6c\x5f\151\x64"), "\152\165\x72\165\x73\x61\156\x5f\x69\144\133\135" => form_error("\x6a\x75\162\x75\x73\141\x6e\x5f\151\144\133\x5d")]]; goto lXFxw; zXqqa: q8uO4: goto pQYkn; sNf0w: $this->master->delete("\x6a\x75\162\x75\163\x61\x6e\x5f\x6d\x61\160\x65\154", $id, "\155\141\160\x65\x6c\x5f\151\144"); goto tmVUI; UEk3C: if ($this->form_validation->run() == FALSE) { goto Ra_39; } goto bAVqy; Ydsor: Ra_39: goto DJf4_; PW9zy: $data["\163\x74\x61\x74\x75\163"] = $action ? TRUE : FALSE; goto wubAn; BfL8F: $action = $this->master->create("\152\165\162\x75\163\x61\156\x5f\x6d\x61\x70\145\154", $input, true); goto KshhL; PFSk9: AFmHV: goto j4Q0L; ay1zG: } public function delete() { goto zp9mn; zp9mn: $chk = $this->input->post("\143\x68\x65\143\x6b\x65\144", true); goto wAGMh; eoxce: goto nzBGp; goto ZIZ6j; jpHRD: nzBGp: goto Ha4SB; ZIZ6j: qgBC0: goto F6e9X; F6e9X: $this->output_json(["\x73\x74\141\x74\165\163" => false]); goto jpHRD; E77SW: if (!$this->master->delete("\x6a\x75\x72\x75\x73\141\156\137\155\x61\160\145\154", $chk, "\155\141\x70\x65\x6c\137\151\x64")) { goto FhTer; } goto bMp5I; bMp5I: $this->output_json(["\163\x74\x61\164\x75\x73" => true, "\x74\157\164\x61\x6c" => count($chk)]); goto N7nL7; wAGMh: if (!$chk) { goto qgBC0; } goto E77SW; N7nL7: FhTer: goto eoxce; Ha4SB: } }
Function Calls
None |
Stats
MD5 | 1ff71e007c10b9f3a72107a4934f3daf |
Eval Count | 0 |
Decode Time | 74 ms |