Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
/* Decoded by unphp.net */ <? defined("BASEPATH") or exit("No direct script access all..
Decoded Output download
/* Decoded by unphp.net */
<? defined("BASEPATH") or exit("No direct script access allowed");
class HasilUjian extends CI_Controller {
public function __construct() {
goto eEhRL; SLsO5:
if ($this->ion_auth->logged_in()) {
goto y6XcQ;
}
goto HrttG; tkVwD:
$this->load->library(["datatables"]);
goto ci133; s1AuQ:
$this->user = $this->ion_auth->user()->row();
goto lsvM4; HrttG: redirect("auth");
goto aiBMd; eEhRL: parent::__construct();
goto SLsO5; ci133: $this->load->model("Master_model", "master");
goto ty2zs; ty2zs: $this->load->model("Ujian_model", "ujian");
goto s1AuQ; aiBMd: y6XcQ: goto tkVwD; lsvM4:
}
public function output_json($data, $encode = true) {
goto v3rFo; yrPO4: $this->output->set_content_type("application/json")->set_output($data);
goto E32qN; bEGxl: M0Bl7: goto yrPO4; y9o8a:
$data = json_encode($data);
goto bEGxl; v3rFo: if (!$encode) {
goto M0Bl7;
}
goto y9o8a; E32qN:
}
public function data() {
goto Xlb3P; sbx6M: u6ZcU:
goto B1Feq; Xlb3P: $nip_guru = null;
goto FR9hY; B1Feq:
$this->output_json($this->ujian->getHasilUjian($nip_guru), false);
goto gak97; deIff: $nip_guru = $this->user->username;
goto sbx6M; FR9hY: if (!$this->ion_auth->in_group("guru")) {
goto u6ZcU;
} goto deIff; gak97:
}
public function NilaiMhs($id) {
$this->output_json($this->ujian->HslUjianById($id, true), false);
}
public function index() {
goto fWX9J; VJa14: $this->load->view("ujian/hasil");
goto V1nkU; V1nkU: $this->load->view("_templates/dashboard/_footer.php");
goto WzMDw; fWX9J: $data = ["user" => $this->user, "judul" => "Ujian", "subjudul" => "Hasil Ujian"];
goto IxwFT; IxwFT: $this->load->view("_templates/dashboard/_header.php", $data);
goto VJa14; WzMDw:
}
public function detail($id) {
goto M1NiJ; y8Kte: $nilai = $this->ujian->bandingNilai($id);
goto FfHaG; AMHiU: $this->load->view("_templates/dashboard/_footer.php");
goto Go2Um; FfHaG: $data = ["user" => $this->user, "judul" => "Ujian", "subjudul" => "Detail Hasil Ujian", "ujian" => $ujian, "nilai" => $nilai];
goto dYmVr; dYmVr: $this->load->view("_templates/dashboard/_header.php", $data);
goto GYJCj; GYJCj: $this->load->view("ujian/detail_hasil");
goto AMHiU; M1NiJ: $ujian = $this->ujian->getUjianById($id); goto y8Kte; Go2Um:
}
public function cetak($id) {
goto CXqge; CXqge: $mhs = $this->ujian->getIdMahasiswa($this->user->username);
goto tNUR5; cQd6_: $this->load->view("ujian/cetak", $data);
goto eH6Oh; u0vFZ: $data = ["ujian" => $ujian, "hasil" => $hasil, "mhs" => $mhs]; goto cQd6_; tNUR5: $hasil = $this->ujian->HslUjian($id, $mhs->id_siswa)->row();
goto L1ULK; L1ULK: $ujian = $this->ujian->getUjianById($id); goto u0vFZ; eH6Oh:
}
public function cetak_detail($id) {
goto kr2VY; REzFZ: $nilai = $this->ujian->bandingNilai($id);
goto ppC0x; kr2VY: $ujian = $this->ujian->getUjianById($id);
goto REzFZ; ddN69: $data = ["ujian" => $ujian, "nilai" => $nilai, "hasil" => $hasil];
goto OtMp4; OtMp4: $this->load->view("ujian/cetak_detail", $data);
goto uRX4W; ppC0x: $hasil = $this->ujian->HslUjianById($id)->result(); goto ddN69; uRX4W:
} } ?>
Did this file decode correctly?
Original Code
/* Decoded by unphp.net */
<? defined("BASEPATH") or exit("No direct script access allowed");
class HasilUjian extends CI_Controller {
public function __construct() {
goto eEhRL; SLsO5:
if ($this->ion_auth->logged_in()) {
goto y6XcQ;
}
goto HrttG; tkVwD:
$this->load->library(["datatables"]);
goto ci133; s1AuQ:
$this->user = $this->ion_auth->user()->row();
goto lsvM4; HrttG: redirect("auth");
goto aiBMd; eEhRL: parent::__construct();
goto SLsO5; ci133: $this->load->model("Master_model", "master");
goto ty2zs; ty2zs: $this->load->model("Ujian_model", "ujian");
goto s1AuQ; aiBMd: y6XcQ: goto tkVwD; lsvM4:
}
public function output_json($data, $encode = true) {
goto v3rFo; yrPO4: $this->output->set_content_type("application/json")->set_output($data);
goto E32qN; bEGxl: M0Bl7: goto yrPO4; y9o8a:
$data = json_encode($data);
goto bEGxl; v3rFo: if (!$encode) {
goto M0Bl7;
}
goto y9o8a; E32qN:
}
public function data() {
goto Xlb3P; sbx6M: u6ZcU:
goto B1Feq; Xlb3P: $nip_guru = null;
goto FR9hY; B1Feq:
$this->output_json($this->ujian->getHasilUjian($nip_guru), false);
goto gak97; deIff: $nip_guru = $this->user->username;
goto sbx6M; FR9hY: if (!$this->ion_auth->in_group("guru")) {
goto u6ZcU;
} goto deIff; gak97:
}
public function NilaiMhs($id) {
$this->output_json($this->ujian->HslUjianById($id, true), false);
}
public function index() {
goto fWX9J; VJa14: $this->load->view("ujian/hasil");
goto V1nkU; V1nkU: $this->load->view("_templates/dashboard/_footer.php");
goto WzMDw; fWX9J: $data = ["user" => $this->user, "judul" => "Ujian", "subjudul" => "Hasil Ujian"];
goto IxwFT; IxwFT: $this->load->view("_templates/dashboard/_header.php", $data);
goto VJa14; WzMDw:
}
public function detail($id) {
goto M1NiJ; y8Kte: $nilai = $this->ujian->bandingNilai($id);
goto FfHaG; AMHiU: $this->load->view("_templates/dashboard/_footer.php");
goto Go2Um; FfHaG: $data = ["user" => $this->user, "judul" => "Ujian", "subjudul" => "Detail Hasil Ujian", "ujian" => $ujian, "nilai" => $nilai];
goto dYmVr; dYmVr: $this->load->view("_templates/dashboard/_header.php", $data);
goto GYJCj; GYJCj: $this->load->view("ujian/detail_hasil");
goto AMHiU; M1NiJ: $ujian = $this->ujian->getUjianById($id); goto y8Kte; Go2Um:
}
public function cetak($id) {
goto CXqge; CXqge: $mhs = $this->ujian->getIdMahasiswa($this->user->username);
goto tNUR5; cQd6_: $this->load->view("ujian/cetak", $data);
goto eH6Oh; u0vFZ: $data = ["ujian" => $ujian, "hasil" => $hasil, "mhs" => $mhs]; goto cQd6_; tNUR5: $hasil = $this->ujian->HslUjian($id, $mhs->id_siswa)->row();
goto L1ULK; L1ULK: $ujian = $this->ujian->getUjianById($id); goto u0vFZ; eH6Oh:
}
public function cetak_detail($id) {
goto kr2VY; REzFZ: $nilai = $this->ujian->bandingNilai($id);
goto ppC0x; kr2VY: $ujian = $this->ujian->getUjianById($id);
goto REzFZ; ddN69: $data = ["ujian" => $ujian, "nilai" => $nilai, "hasil" => $hasil];
goto OtMp4; OtMp4: $this->load->view("ujian/cetak_detail", $data);
goto uRX4W; ppC0x: $hasil = $this->ujian->HslUjianById($id)->result(); goto ddN69; uRX4W:
} } ?>
Function Calls
None |
Stats
MD5 | ed49c8f2759e073c7c84687c1f845000 |
Eval Count | 0 |
Decode Time | 55 ms |