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    | 
    |________________________________________| 
*/ 
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

<?php
/*   ________________________________________
    |                 GarudaCBT              |
    |    https://github.com/garudacbt/cbt    |
    |________________________________________|
*/
defined("\102\x41\123\x45\120\x41\x54\x48") or exit("\116\x6f\40\144\151\x72\x65\143\x74\40\163\x63\x72\x69\x70\x74\40\141\143\x63\145\x73\x73\x20\x61\x6c\x6c\157\167\x65\144");
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(["\x64\x61\x74\141\x74\x61\142\x6c\x65\x73"]);
        goto ci133;
        s1AuQ:
        $this->user = $this->ion_auth->user()->row();
        goto lsvM4;
        HrttG:
        redirect("\141\165\164\x68");
        goto aiBMd;
        eEhRL:
        parent::__construct();
        goto SLsO5;
        ci133:
        $this->load->model("\115\141\x73\x74\145\x72\x5f\x6d\x6f\144\145\154", "\155\141\x73\x74\x65\162");
        goto ty2zs;
        ty2zs:
        $this->load->model("\125\152\x69\x61\x6e\x5f\x6d\x6f\x64\x65\154", "\165\x6a\x69\x61\156");
        goto s1AuQ;
        aiBMd:
        y6XcQ:
        goto tkVwD;
        lsvM4:
    }
    public function output_json($data, $encode = true)
    {
        goto v3rFo;
        yrPO4:
        $this->output->set_content_type("\x61\160\160\x6c\151\x63\x61\x74\x69\157\156\57\x6a\163\x6f\x6e")->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("\x67\x75\x72\165")) {
            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("\165\x6a\151\141\x6e\x2f\150\x61\x73\151\x6c");
        goto V1nkU;
        V1nkU:
        $this->load->view("\x5f\x74\x65\x6d\x70\154\x61\164\145\x73\x2f\x64\141\163\x68\142\x6f\141\x72\x64\57\137\x66\x6f\x6f\164\x65\162\56\160\x68\160");
        goto WzMDw;
        fWX9J:
        $data = ["\165\163\145\x72" => $this->user, "\152\165\144\165\x6c" => "\x55\x6a\x69\x61\x6e", "\x73\x75\142\152\165\144\165\154" => "\110\141\163\x69\154\x20\125\152\x69\x61\156"];
        goto IxwFT;
        IxwFT:
        $this->load->view("\x5f\x74\145\155\x70\154\141\164\x65\x73\x2f\x64\141\163\150\x62\157\141\162\x64\57\137\x68\x65\141\144\145\x72\56\x70\x68\x70", $data);
        goto VJa14;
        WzMDw:
    }
    public function detail($id)
    {
        goto M1NiJ;
        y8Kte:
        $nilai = $this->ujian->bandingNilai($id);
        goto FfHaG;
        AMHiU:
        $this->load->view("\x5f\164\x65\x6d\160\154\x61\164\145\163\57\x64\141\x73\150\x62\x6f\x61\162\144\x2f\137\146\x6f\x6f\x74\145\x72\56\x70\150\x70");
        goto Go2Um;
        FfHaG:
        $data = ["\x75\x73\x65\162" => $this->user, "\x6a\x75\x64\165\x6c" => "\125\152\151\141\x6e", "\163\x75\x62\152\x75\144\165\x6c" => "\x44\x65\164\141\151\x6c\x20\110\141\x73\151\x6c\x20\x55\152\x69\141\156", "\165\152\x69\141\x6e" => $ujian, "\x6e\x69\x6c\141\151" => $nilai];
        goto dYmVr;
        dYmVr:
        $this->load->view("\x5f\164\145\155\x70\x6c\x61\164\x65\163\57\144\141\163\x68\x62\157\141\162\144\57\137\150\145\141\144\145\x72\x2e\160\150\x70", $data);
        goto GYJCj;
        GYJCj:
        $this->load->view("\165\152\x69\141\x6e\x2f\144\x65\x74\141\x69\154\x5f\150\141\163\151\154");
        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("\x75\x6a\x69\x61\x6e\57\x63\145\164\x61\153", $data);
        goto eH6Oh;
        u0vFZ:
        $data = ["\x75\x6a\x69\141\156" => $ujian, "\150\x61\x73\x69\154" => $hasil, "\155\x68\x73" => $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 = ["\165\x6a\151\141\156" => $ujian, "\x6e\x69\x6c\141\x69" => $nilai, "\x68\141\x73\151\154" => $hasil];
        goto OtMp4;
        OtMp4:
        $this->load->view("\x75\152\x69\x61\156\57\143\145\164\141\x6b\x5f\x64\145\164\141\151\x6c", $data);
        goto uRX4W;
        ppC0x:
        $hasil = $this->ujian->HslUjianById($id)->result();
        goto ddN69;
        uRX4W:
    }
}

Function Calls

None

Variables

None

Stats

MD5 fd85b06d2e0f4ccdc3ebfd81d2ca9c04
Eval Count 0
Decode Time 57 ms