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 Dataguru extends CI_Controller 
{ 
    public function __construct() 
    { 
        goto dt0Pe; 
        N1u7H: 
        $this->form_validation->set_error_delimiters('', ''); 
        goto xUHM9; 
        nKF74: 
        o2Pe0: 
        goto KFYrb; 
        O02bI: 
        $this->load->library(["datatables", "form_validation"]); 
        goto N1u7H; 
        dt0Pe: 
        parent::__construct(); 
        goto TV1ed; 
        KFYrb: 
        goto JmSah; 
        goto i3hR5; 
        TV1ed: 
        if (!$this->ion_auth->logged_in()) { 
            goto EtIB5; 
        } 
        goto PGA1H; 
        PGA1H: 
        if ($this->ion_auth->is_admin()) { 
            goto o2Pe0; 
        } 
        goto CNtRp; 
        UVRI3: 
        JmSah: 
        goto O02bI; 
        i3hR5: 
        EtIB5: 
        goto WtBRQ; 
        WtBRQ: 
        redirect("auth"); 
        goto UVRI3; 
        CNtRp: 
        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 nKF74; 
        xUHM9: 
    } 
    public function output_json($data, $encode = true) 
    { 
        goto a23O6; 
        kKBmH: 
        n6UaF: 
        goto lbzNn; 
        uSnrA: 
        $data = json_encode($data); 
        goto kKBmH; 
        lbzNn: 
        $this->output->set_content_type("application/json")->set_output($data); 
        goto NQ08T; 
        a23O6: 
        if (!$encode) { 
            goto n6UaF; 
        } 
        goto uSnrA; 
        NQ08T: 
    } 
    public function index() 
    { 
        goto aDRqk; 
        YKAgM: 
        $data["smt"] = $this->dashboard->getSemester(); 
        goto h19cX; 
        Au3JN: 
        $this->load->model("Dashboard_model", "dashboard"); 
        goto jxU9q; 
        aDRqk: 
        $this->load->model("Dropdown_model", "dropdown"); 
        goto eoYnq; 
        cH0g2: 
        $this->load->view("_templates/dashboard/_header", $data); 
        goto bcmS_; 
        Vmn8H: 
        $data["tp_active"] = $tp; 
        goto YKAgM; 
        iK2NQ: 
        $user = $this->ion_auth->user()->row(); 
        goto ryb9V; 
        Ahakm: 
        $data["tp"] = $this->dashboard->getTahun(); 
        goto Vmn8H; 
        ryb9V: 
        $setting = $this->dashboard->getSetting(); 
        goto nbJob; 
        imOWf: 
        $tp = $this->dashboard->getTahunActive(); 
        goto N3SO6; 
        eoYnq: 
        $this->load->model("Master_model", "master"); 
        goto Au3JN; 
        kQaEp: 
        foreach ($mapels as $key => $row) { 
            $ret[$row->id_mapel] = $row; 
            sTGPq: 
        } 
        goto m9Fh5; 
        nbJob: 
        $data = ["user" => $user, "judul" => "Guru", "subjudul" => "Data Guru", "profile" => $this->dashboard->getProfileAdmin($user->id), "setting" => $setting]; 
        goto imOWf; 
        FGJjH: 
        vDSMU: 
        goto RkhlT; 
        UxmHR: 
        $data["kelass"] = $this->master->getAllKelas($tp->id_tp, $smt->id_smt); 
        goto jt1P7; 
        UkvEw: 
        $data["mode"] = $mode == null ? "1" : "2"; 
        goto Ahakm; 
        RnNxI: 
        $data["extras"] = $this->dropdown->getAllKodeEkskul(); 
        goto UxmHR; 
        VDUhI: 
        $ret = []; 
        goto cuVxl; 
        jxU9q: 
        $mode = $this->input->get("mode", true); 
        goto iK2NQ; 
        jt1P7: 
        $data["gurus"] = $this->master->getAllDataGuru($tp->id_tp, $smt->id_smt); 
        goto cH0g2; 
        N3SO6: 
        $smt = $this->dashboard->getSemesterActive(); 
        goto UkvEw; 
        m9Fh5: 
        zXJh_: 
        goto FGJjH; 
        ypXYy: 
        $mapels = $this->master->getAllMapel(); 
        goto VDUhI; 
        cuVxl: 
        if (!$mapels) { 
            goto vDSMU; 
        } 
        goto kQaEp; 
        Y2lND: 
        $this->load->view("_templates/dashboard/_footer"); 
        goto HKRB7; 
        RkhlT: 
        $data["mapels"] = $ret; 
        goto RnNxI; 
        h19cX: 
        $data["smt_active"] = $smt; 
        goto ypXYy; 
        bcmS_: 
        $this->load->view("master/guru/data"); 
        goto Y2lND; 
        HKRB7: 
    } 
    public function data() 
    { 
        goto xO28c; 
        xO28c: 
        $this->load->model("Master_model", "master"); 
        goto In5be; 
        In5be: 
        $this->load->model("Dashboard_model", "dashboard"); 
        goto cf1fc; 
        cf1fc: 
        $tp = $this->dashboard->getTahunActive(); 
        goto EgLMV; 
        EgLMV: 
        $smt = $this->dashboard->getSemesterActive(); 
        goto HDzFm; 
        HDzFm: 
        $this->output_json($this->master->getDataGuru($tp->id_tp, $smt->id_smt), false); 
        goto rSFi7; 
        rSFi7: 
    } 
    public function edit($id) 
    { 
        goto DsB0T; 
        pgva_: 
        $setting = $this->dashboard->getSetting(); 
        goto SWNBE; 
        DsB0T: 
        $this->load->model("Master_model", "master"); 
        goto NJECb; 
        XQqFL: 
        $data["id_active"] = $id; 
        goto J3Ois; 
        QimZL: 
        $data["input_alamat"] = json_decode(json_encode($inputsAlamat), FALSE); 
        goto PY1bN; 
        J3Ois: 
        $inputsProfile = [["label" => "Nama Lengkap", "name" => "nama_guru", "value" => $guru->nama_guru, "icon" => "far fa-user", "type" => "text"], ["label" => "Email", "name" => "email", "value" => $guru->email, "icon" => "far fa-envelope", "type" => "text"], ["label" => "NIP / NUPTK", "name" => "nip", "value" => $guru->nip, "icon" => "far fa-id-card", "type" => "text"], ["label" => "Jenis Kelamin", "name" => "jenis_kelamin", "value" => $guru->jenis_kelamin, "icon" => "fas fa-venus-mars", "type" => "text"], ["label" => "No. Handphone", "name" => "no_hp", "value" => $guru->no_hp, "icon" => "fa fa-phone", "type" => "number"], ["label" => "Agama", "name" => "agama", "value" => $guru->agama, "icon" => "far fa-user", "type" => "text"]]; 
        goto hOWIk; 
        Mwg0n: 
        $user = $this->ion_auth->user()->row(); 
        goto pgva_; 
        PY1bN: 
        $this->load->view("_templates/dashboard/_header", $data); 
        goto xA0Fd; 
        NJECb: 
        $this->load->model("Dashboard_model", "dashboard"); 
        goto Mwg0n; 
        SWNBE: 
        $tp = $this->master->getTahunActive(); 
        goto dAQBx; 
        ESKwN: 
        $data["smt_active"] = $smt; 
        goto XQqFL; 
        RxumK: 
        $data["tp_active"] = $tp; 
        goto aBSwX; 
        hOWIk: 
        $inputsAlamat = [["label" => "NIK", "name" => "no_ktp", "value" => $guru->no_ktp, "icon" => "far fa-id-card", "type" => "number"], ["label" => "Tempat Lahir", "name" => "tempat_lahir", "value" => $guru->tempat_lahir, "icon" => "fa fa-map-marker", "type" => "text"], ["label" => "Tgl. Lahir", "name" => "tgl_lahir", "value" => $guru->tgl_lahir, "icon" => "fa fa-calendar", "type" => "text"], ["label" => "Alamat", "name" => "alamat_jalan", "value" => $guru->alamat_jalan, "icon" => "fa fa-map-marker", "type" => "text"], ["label" => "Kecamatan", "name" => "kecamatan", "value" => $guru->kecamatan, "icon" => "fa fa-map-marker", "type" => "text"], ["label" => "Kota/Kab.", "name" => "kabupaten", "value" => $guru->kabupaten, "icon" => "fa fa-map-marker", "type" => "text"], ["label" => "Provinsi", "name" => "provinsi", "value" => $guru->provinsi, "icon" => "fa fa-map-marker", "type" => "text"], ["label" => "Kode Pos", "name" => "kode_pos", "value" => $guru->kode_pos, "icon" => "fa fa-envelope", "type" => "number"]]; 
        goto ncHSy; 
        aBSwX: 
        $data["smt"] = $this->dashboard->getSemester(); 
        goto ESKwN; 
        ulRFI: 
        $guru = $this->master->getGuruById($id, $tp->id_tp, $smt->id_smt); 
        goto PW0f3; 
        dAQBx: 
        $smt = $this->master->getSemesterActive(); 
        goto ulRFI; 
        ncHSy: 
        $data["input_profile"] = json_decode(json_encode($inputsProfile), FALSE); 
        goto QimZL; 
        PW0f3: 
        $data = ["user" => $user, "judul" => "Edit Guru", "subjudul" => "Edit Data Guru", "mapel" => $this->master->getAllMapel(), "guru" => $guru, "profile" => $this->dashboard->getProfileAdmin($user->id), "setting" => $setting]; 
        goto dZA07; 
        q9Q7X: 
        $this->load->view("_templates/dashboard/_footer"); 
        goto H_TAk; 
        xA0Fd: 
        $this->load->view("master/guru/edit"); 
        goto q9Q7X; 
        dZA07: 
        $data["tp"] = $this->dashboard->getTahun(); 
        goto RxumK; 
        H_TAk: 
    } 
    public function create() 
    { 
        goto YyR2x; 
        cn2gh: 
        $u_nip = "is_unique[master_guru.nip]"; 
        goto eEPkh; 
        IEb7w: 
        $this->output_json(["status" => false]); 
        goto IQXsx; 
        C9maP: 
        $data = ["status" => false, "errors" => ["nip" => form_error("nip"), "nama_guru" => form_error("nama_guru"), "username" => form_error("username"), "password" => form_error("password")]]; 
        goto pxgoj; 
        XpUJs: 
        eiZKE: 
        goto e7wFW; 
        zk1Gw: 
        $this->form_validation->set_rules("nama_guru", "Nama Guru", "required|trim|min_length[2]"); 
        goto aC55v; 
        AXzS7: 
        $action = $this->master->create("master_guru", $input); 
        goto xOCwi; 
        e7wFW: 
        $this->output_json(["status" => true]); 
        goto EWA_q; 
        IQXsx: 
        goto qM8LM; 
        goto XpUJs; 
        eEPkh: 
        $u_username = "|is_unique[master_guru.username]"; 
        goto LnzI5; 
        xOCwi: 
        if ($action) { 
            goto eiZKE; 
        } 
        goto IEb7w; 
        LnzI5: 
        $this->form_validation->set_rules("nip", "NIP", "required|numeric|trim|" . $u_nip); 
        goto zk1Gw; 
        vhYIw: 
        $nip = $this->input->post("nip", true); 
        goto gm1Ml; 
        YyR2x: 
        $this->load->model("Master_model", "master"); 
        goto vhYIw; 
        MX2UD: 
        $input = ["nip" => trim($nip), "nama_guru" => trim($nama_guru), "username" => trim($username), "password" => trim($password), "foto" => "uploads/profiles/" . trim($nip) . ".jpg"]; 
        goto AXzS7; 
        pxgoj: 
        $this->output_json($data); 
        goto qGyQF; 
        fHhTE: 
        $password = $this->input->post("password", true); 
        goto cn2gh; 
        T5bCu: 
        if ($this->form_validation->run() == FALSE) { 
            goto AsffR; 
        } 
        goto MX2UD; 
        aC55v: 
        $this->form_validation->set_rules("username", "Username", "required|trim" . $u_username); 
        goto LUNhZ; 
        LUNhZ: 
        $this->form_validation->set_rules("password", "Password", "required"); 
        goto T5bCu; 
        EWA_q: 
        qM8LM: 
        goto a6Ta3; 
        a6Ta3: 
        goto XRFOl; 
        goto kdZDn; 
        qGyQF: 
        XRFOl: 
        goto u4x_z; 
        pea0m: 
        $username = $this->input->post("username", true); 
        goto fHhTE; 
        kdZDn: 
        AsffR: 
        goto C9maP; 
        gm1Ml: 
        $nama_guru = $this->input->post("nama_guru", true); 
        goto pea0m; 
        u4x_z: 
    } 
    public function save() 
    { 
        goto c8wuq; 
        EP0Te: 
        $this->output_json($data); 
        goto mlvko; 
        B9TkI: 
        $u_nip = $dbdata->nip === $nip ? '' : "|is_unique[guru.nip]"; 
        goto ksnwT; 
        CjHjy: 
        if ($method === "add") { 
            goto aegRo; 
        } 
        goto GjIw2; 
        AsfL2: 
        $email = $this->input->post("email", true); 
        goto saQEl; 
        XDPmU: 
        VaVtX: 
        goto Ju0jf; 
        WC93E: 
        rckx_: 
        goto EJcJX; 
        Z119B: 
        $method = $this->input->post("method", true); 
        goto C9LQp; 
        eAc3d: 
        $input = ["nip" => $nip, "nama_guru" => $nama_guru, "email" => $email, "mapel_id" => $mapel]; 
        goto CjHjy; 
        EJcJX: 
        goto b96_O; 
        goto TVySB; 
        Ju0jf: 
        goto d3E7E; 
        goto DrGKr; 
        kJyS4: 
        $this->form_validation->set_rules("email", "Email", "required|trim|valid_email" . $u_email); 
        goto B6Q7R; 
        fq0iv: 
        $data = ["status" => false, "errors" => ["nip" => form_error("nip"), "nama_guru" => form_error("nama_guru"), "email" => form_error("email"), "mapel" => form_error("mapel")]]; 
        goto EP0Te; 
        c8wuq: 
        $this->load->model("Master_model", "master"); 
        goto Z119B; 
        YMNfj: 
        d3E7E: 
        goto LBPSO; 
        TVySB: 
        fhO1W: 
        goto fq0iv; 
        B6Q7R: 
        $this->form_validation->set_rules("mapel", "Mata Kuliah", "required"); 
        goto iiVO3; 
        oDtY6: 
        $action = $this->master->create("master_guru", $input); 
        goto YMNfj; 
        saQEl: 
        $mapel = $this->input->post("password", true); 
        goto Yyue6; 
        VuRDl: 
        tBl2k: 
        goto r047T; 
        r047T: 
        $this->output_json(["status" => true]); 
        goto WC93E; 
        ksnwT: 
        $u_email = $dbdata->email === $email ? '' : "|is_unique[guru.email]"; 
        goto wZ5fx; 
        wZ5fx: 
        goto l1lyU; 
        goto zClTJ; 
        HaR2y: 
        l1lyU: 
        goto f3Vkg; 
        iiVO3: 
        if ($this->form_validation->run() == FALSE) { 
            goto fhO1W; 
        } 
        goto eAc3d; 
        W7kAm: 
        $this->output_json(["status" => false]); 
        goto Xl8Uw; 
        TaTdT: 
        $action = $this->master->update("master_guru", $input, "id_guru", $id_guru); 
        goto XDPmU; 
        C9LQp: 
        $id_guru = $this->input->post("id_guru", true); 
        goto S_50m; 
        o4CLY: 
        $this->form_validation->set_rules("nama_guru", "Nama Guru", "required|trim|min_length[3]"); 
        goto kJyS4; 
        zClTJ: 
        xHtUD: 
        goto JClYI; 
        mlvko: 
        b96_O: 
        goto lAs1W; 
        Xl8Uw: 
        goto rckx_; 
        goto VuRDl; 
        o2NDf: 
        $dbdata = $this->master->getGuruById($id_guru); 
        goto B9TkI; 
        f3Vkg: 
        $this->form_validation->set_rules("nip", "NIP", "required|trim|min_length[8]" . $u_nip); 
        goto o4CLY; 
        S_50m: 
        $nip = $this->input->post("nip", true); 
        goto y1Z5p; 
        JClYI: 
        $u_nip = "|is_unique[guru.nip]"; 
        goto tKIus; 
        y1Z5p: 
        $nama_guru = $this->input->post("nama_guru", true); 
        goto AsfL2; 
        GjIw2: 
        if (!($method === "edit")) { 
            goto VaVtX; 
        } 
        goto TaTdT; 
        Yyue6: 
        if ($method == "add") { 
            goto xHtUD; 
        } 
        goto o2NDf; 
        tKIus: 
        $u_email = "|is_unique[guru.email]"; 
        goto HaR2y; 
        DrGKr: 
        aegRo: 
        goto oDtY6; 
        LBPSO: 
        if ($action) { 
            goto tBl2k; 
        } 
        goto W7kAm; 
        lAs1W: 
    } 
    public function deleteGuru() 
    { 
        goto oEd_6; 
        CqkO7: 
        $tables = []; 
        goto si28W; 
        r718G: 
        OISjG: 
        goto Ls3Sj; 
        Vbkfm: 
        YA1rh: 
        goto Rk1fv; 
        UkQR4: 
        AC9AE: 
        goto oEC_l; 
        h2uw7: 
        foreach ($tabless as $table) { 
            goto pmaNk; 
            pmaNk: 
            $fields = $this->db->field_data($table); 
            goto GZ_CS; 
            GZ_CS: 
            foreach ($fields as $field) { 
                goto RIPm3; 
                RIPm3: 
                if (!($field->name == "id_guru" || $field->name == "guru_id")) { 
                    goto n7KMX; 
                } 
                goto C3z_4; 
                DSKmR: 
                ppWFI: 
                goto Oz3vX; 
                EL3Lm: 
                n7KMX: 
                goto DSKmR; 
                C3z_4: 
                array_push($tables, $table); 
                goto EL3Lm; 
                Oz3vX: 
            } 
            goto urTTr; 
            DGugW: 
            SdbSf: 
            goto RqhSf; 
            urTTr: 
            qCjp6: 
            goto DGugW; 
            RqhSf: 
        } 
        goto Vbkfm; 
        Ls3Sj: 
        $this->output_json(["count" => count($messages), "status" => false, "message" => "Data guru digunakan di " . count($messages) . " tabel:<br>" . implode("<br>", $messages)]); 
        goto REcha; 
        WwIhg: 
        $this->output_json($data); 
        goto va5kN; 
        Rk1fv: 
        foreach ($tables as $table) { 
            goto GDzuu; 
            Jxp0F: 
            array_push($messages, $table); 
            goto iDxP2; 
            x63Yw: 
            TktQ3: 
            goto KtwTp; 
            p01ns: 
            $this->db->where("id_guru", $chk); 
            goto MdqRC; 
            MZ0_a: 
            if (!($num > 0)) { 
                goto YyhC5; 
            } 
            goto Jxp0F; 
            iDxP2: 
            YyhC5: 
            goto Fb9JI; 
            xy4DI: 
            if ($table == "master_kelas") { 
                goto m6XEb; 
            } 
            goto p01ns; 
            WfwRL: 
            $this->db->where("guru_id", $chk); 
            goto Q2SSP; 
            GDzuu: 
            if (!($table != "master_guru")) { 
                goto FT0PI; 
            } 
            goto xy4DI; 
            BQk0U: 
            goto Gnswv; 
            goto nElN7; 
            Q2SSP: 
            $num = $this->db->count_all_results($table); 
            goto fMQys; 
            Fb9JI: 
            FT0PI: 
            goto x63Yw; 
            MdqRC: 
            $num = $this->db->count_all_results($table); 
            goto BQk0U; 
            nElN7: 
            m6XEb: 
            goto WfwRL; 
            fMQys: 
            Gnswv: 
            goto MZ0_a; 
            KtwTp: 
        } 
        goto UkQR4; 
        LVFBF: 
        $messages = []; 
        goto CqkO7; 
        REcha: 
        q_16O: 
        goto iqdF4; 
        si28W: 
        $tabless = $this->db->list_tables(); 
        goto h2uw7; 
        va5kN: 
        goto q_16O; 
        goto r718G; 
        iM0sR: 
        $chk = $this->input->post("id_guru", true); 
        goto LVFBF; 
        oEd_6: 
        $this->load->model("Master_model", "master"); 
        goto iM0sR; 
        oEC_l: 
        if (count($messages) > 0) { 
            goto OISjG; 
        } 
        goto lAT1e; 
        lAT1e: 
        $data["status"] = $this->master->delete("master_guru", $chk, "id_guru"); 
        goto WwIhg; 
        iqdF4: 
    } 
    public function detail($id_guru) 
    { 
        goto GI12m; 
        zEl3I: 
        $data["kelas"] = $this->master->getAllKelas(); 
        goto v33Q7; 
        moWqi: 
        $data["tp_active"] = $this->dashboard->getTahunActive(); 
        goto nxYto; 
        xwwNX: 
        $data["tp"] = $this->dashboard->getTahun(); 
        goto moWqi; 
        o4biQ: 
        $this->load->view("master/guru/detail"); 
        goto VPU_2; 
        GI12m: 
        $this->load->model("Master_model", "master"); 
        goto amTub; 
        MsnTQ: 
        $user = $this->ion_auth->user()->row(); 
        goto JibbH; 
        nxYto: 
        $data["smt"] = $this->dashboard->getSemester(); 
        goto plLm3; 
        plLm3: 
        $data["smt_active"] = $this->dashboard->getSemesterActive(); 
        goto zEl3I; 
        amTub: 
        $this->load->model("Dashboard_model", "dashboard"); 
        goto MsnTQ; 
        RYTbi: 
        $data = ["user" => $user, "judul" => "Detail Guru", "subjudul" => "Info Jabatan Guru", "mapel" => $this->master->getAllMapel(), "profile" => $this->dashboard->getProfileAdmin($user->id), "setting" => $setting]; 
        goto xwwNX; 
        kP5Yb: 
        $this->load->view("_templates/dashboard/_header", $data); 
        goto o4biQ; 
        T3M3j: 
        $data["guru"] = ["detail" => $this->master->getGuruByArrId([$id_guru])[0], "jabatan" => $this->master->getDetailJabatanGuru($id_guru), "materi" => $this->db->get_where("kelas_materi", "id_guru=" . $id_guru)->num_rows(), "catatan_mapel" => $this->db->get_where("kelas_catatan_mapel", "id_guru=" . $id_guru)->num_rows(), "bank_soal" => $this->db->get_where("cbt_bank_soal", "bank_guru_id=" . $id_guru)->num_rows(), "pengawas" => $this->db->get_where("cbt_pengawas", "id_guru LIKE "%" . $id_guru . "%"")->num_rows(), "posts" => $this->db->get_where("post", "dari=" . $id_guru)->num_rows(), "comments" => $this->db->get_where("post_comments", "dari=" . $id_guru)->num_rows(), "replies" => $this->db->get_where("post_reply", "dari=" . $id_guru)->num_rows()]; 
        goto kP5Yb; 
        v33Q7: 
        $data["id_guru"] = $id_guru; 
        goto T3M3j; 
        VPU_2: 
        $this->load->view("_templates/dashboard/_footer"); 
        goto Ayf8I; 
        JibbH: 
        $setting = $this->dashboard->getSetting(); 
        goto RYTbi; 
        Ayf8I: 
    } 
    public function delete() 
    { 
        goto kCThK; 
        kCThK: 
        $this->load->model("Master_model", "master"); 
        goto rKv1l; 
        woZfN: 
        if (!$chk) { 
            goto YGJmh; 
        } 
        goto I5jQl; 
        slObc: 
        IF1oC: 
        goto v6Qzt; 
        I5jQl: 
        if (!$this->master->delete("master_guru", $chk, "id_guru")) { 
            goto O0bOR; 
        } 
        goto VZKf5; 
        z7Jxi: 
        O0bOR: 
        goto fs0On; 
        fs0On: 
        goto IF1oC; 
        goto ARkYt; 
        ARkYt: 
        YGJmh: 
        goto ryABc; 
        ryABc: 
        $this->output_json(["status" => false]); 
        goto slObc; 
        rKv1l: 
        $chk = $this->input->post("checked", true); 
        goto woZfN; 
        VZKf5: 
        $this->output_json(["status" => true, "total" => count($chk)]); 
        goto z7Jxi; 
        v6Qzt: 
    } 
    public function forceDelete() 
    { 
        goto sitW1; 
        Pb1Iz: 
        $this->output_json($data); 
        goto MZ1EC; 
        UnOby: 
        $id_guru = $this->input->post("id_guru", true); 
        goto dw6fM; 
        sitW1: 
        $this->load->model("Master_model", "master"); 
        goto UnOby; 
        dw6fM: 
        $data["status"] = $this->master->delete("master_guru", $id_guru, "id_guru"); 
        goto Pb1Iz; 
        MZ1EC: 
    } 
    public function create_user() 
    { 
        goto Kz447; 
        ANQ_3: 
        $group = array("2"); 
        goto uhQyA; 
        po9wY: 
        goto LQxKM; 
        goto YCbkZ; 
        uhQyA: 
        if ($this->ion_auth->username_check($username)) { 
            goto wrcYm; 
        } 
        goto h_loQ; 
        t6YJB: 
        $first_name = $nama[0]; 
        goto uRrUf; 
        YCbkZ: 
        wrcYm: 
        goto Jkka5; 
        ZyHHj: 
        $this->ion_auth->register($username, $password, $email, $additional_data, $group); 
        goto gGuWK; 
        xAYyZ: 
        $username = $data->nip; 
        goto KMW6g; 
        ajWwB: 
        LQxKM: 
        goto zu0kp; 
        QbxhR: 
        $email = $data->email; 
        goto yWlWs; 
        N1muK: 
        $nama = explode(" ", $data->nama_guru); 
        goto t6YJB; 
        gGuWK: 
        $data = ["status" => true, "msg" => "User berhasil dibuat. NIP digunakan sebagai password pada saat login."]; 
        goto vSqam; 
        yWlWs: 
        $additional_data = ["first_name" => $first_name, "last_name" => $last_name]; 
        goto ANQ_3; 
        Kz447: 
        $this->load->model("Master_model", "master"); 
        goto FirM8; 
        uRrUf: 
        $last_name = end($nama); 
        goto xAYyZ; 
        TlqKz: 
        $data = ["status" => false, "msg" => "Email tidak tersedia (sudah digunakan)."]; 
        goto edmgK; 
        bsBwJ: 
        $data = $this->master->getGuruById($id); 
        goto N1muK; 
        zu0kp: 
        $this->output_json($data); 
        goto d0Pjo; 
        FirM8: 
        $id = $this->input->get("id", true); 
        goto bsBwJ; 
        svfeW: 
        GT1ZQ: 
        goto TlqKz; 
        KMW6g: 
        $password = $data->nip; 
        goto QbxhR; 
        edmgK: 
        NQGb2: 
        goto po9wY; 
        h_loQ: 
        if ($this->ion_auth->email_check($email)) { 
            goto GT1ZQ; 
        } 
        goto ZyHHj; 
        vSqam: 
        goto NQGb2; 
        goto svfeW; 
        Jkka5: 
        $data = ["status" => false, "msg" => "Username tidak tersedia (sudah digunakan)."]; 
        goto ajWwB; 
        d0Pjo: 
    } 
    public function previewExcel() 
    { 
        goto i4Dph; 
        g8dae: 
        echo json_encode($data); 
        goto bHS92; 
        Ou6gf: 
        switch ($ext) { 
            case ".xlsx": 
                $reader = new \PhpOffice\PhpSpreadsheet\Reader\Xlsx(); 
                goto efW5a; 
            case ".xls": 
                $reader = new \PhpOffice\PhpSpreadsheet\Reader\Xls(); 
                goto efW5a; 
            case ".csv": 
                $reader = new \PhpOffice\PhpSpreadsheet\Reader\Csv(); 
                goto efW5a; 
            default: 
                echo "unknown file ext"; 
                die; 
        } 
        goto BBCiC; 
        pgp9z: 
        $config["allowed_types"] = "xls|xlsx|csv"; 
        goto zM0eD; 
        IAk38: 
        $sheetData = $spreadsheet->getActiveSheet()->toArray(); 
        goto Lt8n8; 
        zM0eD: 
        $config["max_size"] = 2048; 
        goto NmVyD; 
        AZS09: 
        $data[] = ["nama" => $sheetData[$i][1], "nip" => $sheetData[$i][2], "kode" => $sheetData[$i][3], "username" => $sheetData[$i][4], "password" => $sheetData[$i][5]]; 
        goto mS27o; 
        Xc_Gp: 
        ePohb: 
        goto a2yyQ; 
        RkZDZ: 
        echo $error; 
        goto saGPI; 
        Dsdzk: 
        unlink($file); 
        goto g8dae; 
        NmVyD: 
        $config["encrypt_name"] = true; 
        goto spsTi; 
        MwVNe: 
        nDUZA: 
        goto jAw8a; 
        h4ZO6: 
        Y6UJT: 
        goto Kvhda; 
        BBCiC: 
        U1Ad1: 
        goto FnuhR; 
        ZKDcI: 
        if (!$this->upload->do_upload("upload_file")) { 
            goto ePohb; 
        } 
        goto VGHDN; 
        saGPI: 
        die; 
        goto h4ZO6; 
        mS27o: 
        GoDvN: 
        goto oO8lp; 
        i4Dph: 
        $config["upload_path"] = "./uploads/import/"; 
        goto pgp9z; 
        WVnCy: 
        $spreadsheet = $reader->load($file); 
        goto IAk38; 
        jAw8a: 
        if (!($i < count($sheetData))) { 
            goto bvC5U; 
        } 
        goto oBZeG; 
        a2yyQ: 
        $error = $this->upload->display_errors(); 
        goto RkZDZ; 
        oBZeG: 
        if (!($sheetData[$i][0] != null)) { 
            goto GoDvN; 
        } 
        goto AZS09; 
        hicww: 
        $i++; 
        goto FegA0; 
        iekD4: 
        bvC5U: 
        goto Dsdzk; 
        wN9L2: 
        $i = 1; 
        goto MwVNe; 
        bHS92: 
        goto Y6UJT; 
        goto Xc_Gp; 
        VGHDN: 
        $file = $this->upload->data("full_path"); 
        goto kczyB; 
        FegA0: 
        goto nDUZA; 
        goto iekD4; 
        FnuhR: 
        efW5a: 
        goto WVnCy; 
        spsTi: 
        $this->load->library("upload", $config); 
        goto ZKDcI; 
        Lt8n8: 
        $data = []; 
        goto wN9L2; 
        oO8lp: 
        q0xQD: 
        goto hicww; 
        kczyB: 
        $ext = $this->upload->data("file_ext"); 
        goto Ou6gf; 
        Kvhda: 
    } 
    public function previewWord() 
    { 
        goto yWP9p; 
        cLi6q: 
        $i = 1; 
        goto KbnUY; 
        z7nPi: 
        $data[] = ["nama" => $cols->item(1)->nodeValue, "nip" => $cols->item(2)->nodeValue, "kode" => $cols->item(3)->nodeValue, "username" => $cols->item(4)->nodeValue, "password" => $cols->item(5)->nodeValue]; 
        goto PghdG; 
        b2XpV: 
        $config["allowed_types"] = "docx"; 
        goto x9_PT; 
        Z9Xa2: 
        die; 
        goto X0VtA; 
        Y0818: 
        goto Tv026; 
        goto RgJxg; 
        Be4jP: 
        $tables = $dom->getElementsByTagName("table"); 
        goto IySxd; 
        VqWPx: 
        echo $error; 
        goto Z9Xa2; 
        iVHlU: 
        try { 
            $htmlWriter->save("./uploads/temp/doc.html"); 
        } catch (\PhpOffice\PhpWord\Exception\Exception $e) { 
        } 
        goto AqNYc; 
        Gpb_s: 
        echo json_encode($data); 
        goto Y0818; 
        PghdG: 
        ap7aj: 
        goto QW6IS; 
        YCvMD: 
        $this->load->library("upload", $config); 
        goto UEIie; 
        KbnUY: 
        FcaHj: 
        goto jG8dh; 
        t2Riv: 
        $text = file_get_contents("./uploads/temp/doc.html"); 
        goto vLNJh; 
        T7fmc: 
        $htmlWriter = new \PhpOffice\PhpWord\Writer\HTML($phpWord); 
        goto iVHlU; 
        I001S: 
        $error = $this->upload->display_errors(); 
        goto VqWPx; 
        eGo6h: 
        $file = $this->upload->data("full_path"); 
        goto pD5UV; 
        yWP9p: 
        $config["upload_path"] = "./uploads/import/"; 
        goto b2XpV; 
        jG8dh: 
        if (!($i < $rows->count())) { 
            goto W9GoK; 
        } 
        goto Cx7rE; 
        tIyMQ: 
        W9GoK: 
        goto Gpb_s; 
        QW6IS: 
        $i++; 
        goto M_m4h; 
        RgJxg: 
        E0bwC: 
        goto I001S; 
        vLNJh: 
        $dom = new DOMDocument(); 
        goto XeZmh; 
        X0VtA: 
        Tv026: 
        goto T3An7; 
        IySxd: 
        $rows = $tables->item(0)->getElementsByTagName("tr"); 
        goto cLi6q; 
        rD3i0: 
        $config["encrypt_name"] = true; 
        goto YCvMD; 
        M_m4h: 
        goto FcaHj; 
        goto tIyMQ; 
        drG7t: 
        $data = []; 
        goto Zplg7; 
        x9_PT: 
        $config["max_size"] = 2048; 
        goto rD3i0; 
        XeZmh: 
        $dom->loadHTML($text); 
        goto drG7t; 
        AqNYc: 
        unlink($file); 
        goto t2Riv; 
        pD5UV: 
        $phpWord = \PhpOffice\PhpWord\IOFactory::load($file); 
        goto T7fmc; 
        UEIie: 
        if (!$this->upload->do_upload("upload_file")) { 
            goto E0bwC; 
        } 
        goto eGo6h; 
        Cx7rE: 
        $cols = $rows[$i]->getElementsByTagName("td"); 
        goto z7nPi; 
        Zplg7: 
        $dom->preserveWhiteSpace = false; 
        goto Be4jP; 
        T3An7: 
    } 
    public function import($import_data = null) 
    { 
        goto rKYTO; 
        aF4qU: 
        $data["import"] = $import_data; 
        goto NNmiL; 
        vls_W: 
        $data["tp"] = $this->dashboard->getTahun(); 
        goto mweHQ; 
        jpZNN: 
        $setting = $this->dashboard->getSetting(); 
        goto yRFFY; 
        t2naD: 
        $data["smt_active"] = $this->dashboard->getSemesterActive(); 
        goto pjQgJ; 
        Azz7d: 
        $this->load->view("master/guru/add"); 
        goto nZWLl; 
        nZWLl: 
        $this->load->view("_templates/dashboard/_footer"); 
        goto huvSQ; 
        pjQgJ: 
        $this->load->view("_templates/dashboard/_header", $data); 
        goto Azz7d; 
        bORMe: 
        if (!($import_data != null)) { 
            goto c4RqO; 
        } 
        goto aF4qU; 
        yRFFY: 
        $data = ["user" => $user, "judul" => "Guru", "subjudul" => "Tambah Data Guru", "mapel" => $this->master->getAllMapel(), "profile" => $this->dashboard->getProfileAdmin($user->id), "setting" => $setting]; 
        goto bORMe; 
        rKYTO: 
        $this->load->model("Master_model", "master"); 
        goto Zd2X7; 
        Zd2X7: 
        $this->load->model("Dashboard_model", "dashboard"); 
        goto Zf7AW; 
        NNmiL: 
        c4RqO: 
        goto vls_W; 
        mweHQ: 
        $data["tp_active"] = $this->dashboard->getTahunActive(); 
        goto CdyAH; 
        CdyAH: 
        $data["smt"] = $this->dashboard->getSemester(); 
        goto t2naD; 
        Zf7AW: 
        $user = $this->ion_auth->user()->row(); 
        goto jpZNN; 
        huvSQ: 
    } 
    public function preview() 
    { 
        goto vQEKT; 
        k008R: 
        $i++; 
        goto U3HlQ; 
        pskGK: 
        $i = 1; 
        goto DJCzv; 
        ekGH7: 
        die; 
        goto XOZOz; 
        Q0OCK: 
        unlink($file); 
        goto T28ma; 
        pUfp6: 
        if (!$this->upload->do_upload("upload_file")) { 
            goto K6VxQ; 
        } 
        goto X3Mfb; 
        bq0KT: 
        $spreadsheet = $reader->load($file); 
        goto w1CCL; 
        ZFC4s: 
        $config["max_size"] = 2048; 
        goto x4CVA; 
        XOZOz: 
        L_e2a: 
        goto X1BQC; 
        PsrQX: 
        $config["allowed_types"] = "xls|xlsx|csv"; 
        goto ZFC4s; 
        io1y0: 
        $error = $this->upload->display_errors(); 
        goto WsntO; 
        X3Mfb: 
        $file = $this->upload->data("full_path"); 
        goto KNt4H; 
        KNt4H: 
        $ext = $this->upload->data("file_ext"); 
        goto MJqxM; 
        WsntO: 
        echo $error; 
        goto ekGH7; 
        vB3wv: 
        K6VxQ: 
        goto io1y0; 
        vQEKT: 
        $config["upload_path"] = "./uploads/import/"; 
        goto PsrQX; 
        aQ1ju: 
        NwMnU: 
        goto k008R; 
        w1CCL: 
        $sheetData = $spreadsheet->getActiveSheet()->toArray(); 
        goto qfS_D; 
        WIyv1: 
        $data[] = ["nip" => $sheetData[$i][0], "nama_guru" => $sheetData[$i][1], "email" => $sheetData[$i][2], "mapel_id" => $sheetData[$i][3]]; 
        goto aQ1ju; 
        MJqxM: 
        switch ($ext) { 
            case ".xlsx": 
                $reader = new \PhpOffice\PhpSpreadsheet\Reader\Xlsx(); 
                goto SrxPc; 
            case ".xls": 
                $reader = new \PhpOffice\PhpSpreadsheet\Reader\Xls(); 
                goto SrxPc; 
            case ".csv": 
                $reader = new \PhpOffice\PhpSpreadsheet\Reader\Csv(); 
                goto SrxPc; 
            default: 
                echo "unknown file ext"; 
                die; 
        } 
        goto zNYO8; 
        U3HlQ: 
        goto H96VF; 
        goto LQjSv; 
        T28ma: 
        $this->import($data); 
        goto DcQ0M; 
        tIwwp: 
        if (!($i < count($sheetData))) { 
            goto AtYoh; 
        } 
        goto WIyv1; 
        QwwCA: 
        $this->load->library("upload", $config); 
        goto pUfp6; 
        fDkbF: 
        SrxPc: 
        goto bq0KT; 
        qfS_D: 
        $data = []; 
        goto pskGK; 
        DcQ0M: 
        goto L_e2a; 
        goto vB3wv; 
        DJCzv: 
        H96VF: 
        goto tIwwp; 
        x4CVA: 
        $config["encrypt_name"] = true; 
        goto QwwCA; 
        LQjSv: 
        AtYoh: 
        goto Q0OCK; 
        zNYO8: 
        oi2MK: 
        goto fDkbF; 
        X1BQC: 
    } 
    public function do_import() 
    { 
        goto W7V6I; 
        BbjB3: 
        foreach ($input as $d) { 
            $data[] = ["nama_guru" => trim($d->nama), "nip" => trim($d->nip), "username" => trim($d->username), "password" => trim($d->password), "foto" => "uploads/profiles/" . trim($d->nip) . ".jpg"]; 
            CrQyR: 
        } 
        goto ID_wO; 
        tgdqr: 
        $this->output->set_content_type("application/json")->set_output($save); 
        goto Jx93w; 
        W7V6I: 
        $this->load->model("Master_model", "master"); 
        goto ZI5HP; 
        ZI5HP: 
        $input = json_decode($this->input->post("guru", true)); 
        goto eVCSf; 
        omLX3: 
        $save = $this->master->create("master_guru", $data, true); 
        goto tgdqr; 
        eVCSf: 
        $data = []; 
        goto BbjB3; 
        ID_wO: 
        F9Rfl: 
        goto omLX3; 
        Jx93w: 
    } 
    public function editJabatan($id) 
    { 
        goto KCvJc; 
        Qe2Nr: 
        $data["tp_active"] = $tp; 
        goto yjuY1; 
        Le1bR: 
        $guru_before->mapel_kelas = json_decode(json_encode(unserialize($guru_before->mapel_kelas))); 
        goto nhAS2; 
        KCvJc: 
        $this->load->model("Dropdown_model", "dropdown"); 
        goto No6gi; 
        XWFFS: 
        $data["guru"] = $guru; 
        goto RmzNw; 
        v9nJc: 
        $data["ekskul"] = $this->dropdown->getAllEkskul(); 
        goto fe52A; 
        wdLDH: 
        $data["mapels"] = $this->dropdown->getAllMapel(); 
        goto Mdo_M; 
        f_oYz: 
        $data["kelass"] = $this->dropdown->getAllKelas($tp->id_tp, $smt->id_smt); 
        goto wdLDH; 
        VZ4CI: 
        $data["groups"] = $this->ion_auth->groups()->result(); 
        goto ufGSK; 
        dCiov: 
        $group = $this->ion_auth->get_users_groups($user->id)->row()->name; 
        goto TqMh9; 
        TlRID: 
        $user = $this->ion_auth->user()->row(); 
        goto DhL5a; 
        dOAmE: 
        $this->load->view("_templates/dashboard/_footer"); 
        goto FsGEA; 
        By_Ki: 
        $tp = $this->dashboard->getTahunActive(); 
        goto lnGdZ; 
        FwdP1: 
        $data["before"] = ["kelass" => $this->dropdown->getAllKelas($tp2, $smt2), "guru" => $guru_before]; 
        goto xn5t2; 
        ufGSK: 
        FNtn2: 
        goto f_oYz; 
        iNl0Q: 
        $tp2 = $smt->id_smt == "1" ? $tp->id_tp - 1 : $tp->id_tp; 
        goto veyjU; 
        No6gi: 
        $this->load->model("Master_model", "master"); 
        goto XSULl; 
        DhL5a: 
        $data = ["user" => $user, "judul" => "Jabatan Guru", "subjudul" => "Edit Jabatan Guru", "profile" => $this->dashboard->getProfileAdmin($user->id), "setting" => $this->dashboard->getSetting()]; 
        goto XWFFS; 
        u0Wzq: 
        $data["smt_active"] = $smt; 
        goto dCiov; 
        xn5t2: 
        $this->load->view("_templates/dashboard/_header", $data); 
        goto cBLn1; 
        fe52A: 
        $data["kur"] = $smt; 
        goto pNB0r; 
        cBLn1: 
        $this->load->view("master/guru/editmapel"); 
        goto dOAmE; 
        RmzNw: 
        $data["tp"] = $this->dashboard->getTahun(); 
        goto Qe2Nr; 
        yjuY1: 
        $data["smt"] = $this->dashboard->getSemester(); 
        goto u0Wzq; 
        Mdo_M: 
        $data["levels"] = $this->dropdown->getAllLevelGuru(); 
        goto v9nJc; 
        lnGdZ: 
        $smt = $this->dashboard->getSemesterActive(); 
        goto APQ0T; 
        veyjU: 
        $guru_before = $this->master->getJabatanGuru($id, $tp2, $smt2); 
        goto Le1bR; 
        nhAS2: 
        $guru_before->ekstra_kelas = json_decode(json_encode(unserialize($guru_before->ekstra_kelas))); 
        goto FwdP1; 
        pNB0r: 
        $smt2 = $smt->id_smt == "1" ? "2" : "1"; 
        goto iNl0Q; 
        TqMh9: 
        if (!($group === "admin")) { 
            goto FNtn2; 
        } 
        goto VZ4CI; 
        XSULl: 
        $this->load->model("Dashboard_model", "dashboard"); 
        goto By_Ki; 
        APQ0T: 
        $guru = $this->master->getJabatanGuru($id, $tp->id_tp, $smt->id_smt); 
        goto TlRID; 
        FsGEA: 
    } 
    public function saveJabatan() 
    { 
        goto vX2E9; 
        VKaFo: 
        $res["status"] = FALSE; 
        goto oD_xb; 
        dyKrt: 
        $tmp_nama = $kelass2[$kelasmapel]; 
        goto TowGZ; 
        omBiT: 
        $j = 0; 
        goto ih_MW; 
        oLel3: 
        if ($this->input->post()) { 
            goto mSS_y; 
        } 
        goto VKaFo; 
        rGzMT: 
        wMxNR: 
        goto lfnJ1; 
        WID6b: 
        goto St_uA; 
        goto USIJ0; 
        hGHEi: 
        $kelass2 = $this->dropdown->getAllKelas($tp2, $smt2); 
        goto XdIXA; 
        K000F: 
        $kelas_wali = $kelass1[$tmp_wali]; 
        goto xxOEa; 
        mb5Xm: 
        $kelas[] = ["kelas" => $kelasmapel]; 
        goto mfwWn; 
        jwBCs: 
        b3TA_: 
        goto NJDqA; 
        d0csX: 
        $smt = $this->master->getSemesterActive(); 
        goto yIGTM; 
        sDPrE: 
        $row_kelas = count($this->input->post("kelasekstra" . $ekstra, true)); 
        goto E8sfK; 
        Vd0aO: 
        $ekstras = []; 
        goto H26xg; 
        yIGTM: 
        $smt2 = $smt->id_smt == "1" ? "2" : "1"; 
        goto DLesI; 
        TcIFW: 
        if (!isset($kelass2[$kelasmapel])) { 
            goto Y4n65; 
        } 
        goto dyKrt; 
        JIkc4: 
        $data = ["id_jabatan_guru" => $id_guru . $tp->id_tp . $smt->id_smt, "id_guru" => $id_guru, "id_jabatan" => $id_level, "id_kelas" => $kelas_wali == null ? 0 : $kelas_wali, "mapel_kelas" => $kelas_mapel_guru, "ekstra_kelas" => $kelas_ekstra_guru, "id_tp" => $tp->id_tp, "id_smt" => $smt->id_smt]; 
        goto oLel3; 
        TObx9: 
        $res["status"] = $update; 
        goto Id9rq; 
        lSqw2: 
        $j = 0; 
        goto enw4x; 
        kf05k: 
        $kelas_wali = $wali; 
        goto cquhu; 
        K1Kwg: 
        IsUB_: 
        goto PxCev; 
        Id9rq: 
        $res["msg"] = $update ? "Data berhasil disimpan" : "Gagal menyimpan data"; 
        goto kDaj3; 
        OJFUC: 
        $id_guru = $this->input->post("id_guru", true); 
        goto AHszU; 
        yfXNL: 
        if (!$check) { 
            goto Oj_gs; 
        } 
        goto sDPrE; 
        LGMIL: 
        $kelasekstra = $this->input->post("kelasekstra" . $ekstra . "[" . $j . "]", true); 
        goto hlTN8; 
        QwBcA: 
        $kelass1 = $this->kelas->getNamaKelasByNama($tp->id_tp, $smt->id_smt); 
        goto hGHEi; 
        aV1ST: 
        $i = 0; 
        goto jwBCs; 
        Iw2DR: 
        $row_ekstras = count($this->input->post("ekstra", true)); 
        goto NN6Dc; 
        USIJ0: 
        MotGn: 
        goto KNlAU; 
        qouNQ: 
        goto ThLwO; 
        goto oGQn2; 
        ibrxG: 
        $row_mapels = count($this->input->post("mapel", true)); 
        goto aV1ST; 
        whIA2: 
        M_FFI: 
        goto TcIFW; 
        tLbSl: 
        Oj_gs: 
        goto gfqsV; 
        RNZn0: 
        $tp = $this->master->getTahunActive(); 
        goto d0csX; 
        enw4x: 
        St_uA: 
        goto Xq6js; 
        Fq69h: 
        $kelas = []; 
        goto lSqw2; 
        mfwWn: 
        goto Tal5w; 
        goto whIA2; 
        mfwe3: 
        $i++; 
        goto Yh8Nd; 
        gfqsV: 
        oZqOr: 
        goto mfwe3; 
        tucPT: 
        $j++; 
        goto qouNQ; 
        AHszU: 
        $id_level = $this->input->post("level", true); 
        goto tTgjR; 
        pThNe: 
        Tal5w: 
        goto cwvqU; 
        xxOEa: 
        bJfp6: 
        goto diAiG; 
        lEtyQ: 
        mSS_y: 
        goto ZQXS8; 
        Xq6js: 
        if (!($j <= $row_kelas)) { 
            goto MotGn; 
        } 
        goto pP4jS; 
        NJDqA: 
        if (!($i <= $row_mapels)) { 
            goto DJwW6; 
        } 
        goto WqW0n; 
        cwvqU: 
        oP0qq: 
        goto EU1F9; 
        MS9cw: 
        $check = $this->input->post("kelasekstra" . $ekstra, true); 
        goto yfXNL; 
        j75tK: 
        $row_kelas = count($this->input->post("kelasmapel" . $mapel, true)); 
        goto Fq69h; 
        yqBCt: 
        $i++; 
        goto gCt5x; 
        EU1F9: 
        $j++; 
        goto WID6b; 
        i10iW: 
        $this->output_json($res); 
        goto HOePa; 
        PxCev: 
        H2aSJ: 
        goto mlKzo; 
        mlKzo: 
        lqQs2: 
        goto tucPT; 
        aC013: 
        $this->load->model("Master_model", "master"); 
        goto r8gnV; 
        Yh8Nd: 
        goto QGXXT; 
        goto rGzMT; 
        tTgjR: 
        $wali = $this->input->post("kelas_wali", true); 
        goto tauXJ; 
        o3SU1: 
        if ($copy) { 
            goto M_FFI; 
        } 
        goto mb5Xm; 
        HX3Sg: 
        mTimx: 
        goto PeqMF; 
        L4Siz: 
        $kelas_ekstra_guru = serialize($ekstras); 
        goto JIkc4; 
        tANwy: 
        if (!$check) { 
            goto mTimx; 
        } 
        goto j75tK; 
        ayn22: 
        gO68A: 
        goto Nibja; 
        Mw5oJ: 
        if (!isset($kelass2[$kelasekstra])) { 
            goto IsUB_; 
        } 
        goto Sq5YM; 
        ynB0e: 
        rodWD: 
        goto Mw5oJ; 
        hlTN8: 
        if ($copy) { 
            goto rodWD; 
        } 
        goto wlxCZ; 
        lfnJ1: 
        DiajJ: 
        goto L4Siz; 
        vX2E9: 
        $this->load->model("Dropdown_model", "dropdown"); 
        goto aC013; 
        cquhu: 
        goto bJfp6; 
        goto ayn22; 
        ED5vn: 
        $nama_ekstra = $this->input->post("nama_ekstra" . $ekstra, true); 
        goto MS9cw; 
        W3pQk: 
        DJwW6: 
        goto XrEPS; 
        bu76A: 
        LRVHD: 
        goto PlR4I; 
        REaIA: 
        if (!$check_ekstra) { 
            goto DiajJ; 
        } 
        goto Iw2DR; 
        oGQn2: 
        zB3ge: 
        goto Z8_1I; 
        C9g7L: 
        if (!($j <= $row_kelas)) { 
            goto zB3ge; 
        } 
        goto LGMIL; 
        P1pRW: 
        goto rrYze; 
        goto lEtyQ; 
        Nibja: 
        $tmp_wali = $kelass2[$wali]; 
        goto K000F; 
        pP4jS: 
        $kelasmapel = $this->input->post("kelasmapel" . $mapel . "[" . $j . "]", true); 
        goto o3SU1; 
        NN6Dc: 
        $i = 0; 
        goto FG6C3; 
        Fp3kF: 
        $check = $this->input->post("kelasmapel" . $mapel, true); 
        goto tANwy; 
        oD_xb: 
        $res["msg"] = "Error post data"; 
        goto P1pRW; 
        tauXJ: 
        $copy = $this->input->post("copy", true) != null; 
        goto RNZn0; 
        H26xg: 
        $check_ekstra = $this->input->post("ekstra", true); 
        goto REaIA; 
        gCt5x: 
        goto b3TA_; 
        goto W3pQk; 
        DLesI: 
        $tp2 = $smt->id_smt == "1" ? $tp->id_tp - 1 : $tp->id_tp; 
        goto QwBcA; 
        BWGzb: 
        if (!($i <= $row_ekstras)) { 
            goto wMxNR; 
        } 
        goto maiYi; 
        PeqMF: 
        IR4wc: 
        goto yqBCt; 
        r8gnV: 
        $this->load->model("Kelas_model", "kelas"); 
        goto OJFUC; 
        kAOgC: 
        $check_mapel = $this->input->post("mapel", true); 
        goto UeGK9; 
        ih_MW: 
        ThLwO: 
        goto C9g7L; 
        XdIXA: 
        if ($copy) { 
            goto gO68A; 
        } 
        goto kf05k; 
        wlxCZ: 
        $kelas[] = ["kelas" => $kelasekstra]; 
        goto ZvfBO; 
        kDaj3: 
        rrYze: 
        goto i10iW; 
        ZQXS8: 
        $update = $this->db->replace("jabatan_guru", $data); 
        goto TObx9; 
        diAiG: 
        $mapels = []; 
        goto kAOgC; 
        UeGK9: 
        if (!$check_mapel) { 
            goto HccDc; 
        } 
        goto ibrxG; 
        Sq5YM: 
        $tmp_nama2 = $kelass2[$kelasekstra]; 
        goto tgYRz; 
        trYNe: 
        $kelas[] = ["kelas" => $kelass1[$tmp_nama]]; 
        goto bu76A; 
        KNlAU: 
        $mapels[] = ["id_mapel" => $mapel, "nama_mapel" => $nama_mapel, "kelas_mapel" => $kelas]; 
        goto HX3Sg; 
        WqW0n: 
        $mapel = $this->input->post("mapel[" . $i . "]", true); 
        goto vtRTY; 
        ZvfBO: 
        goto H2aSJ; 
        goto ynB0e; 
        PlR4I: 
        Y4n65: 
        goto pThNe; 
        tgYRz: 
        $kelas[] = ["kelas" => $kelass1[$tmp_nama2]]; 
        goto K1Kwg; 
        Z8_1I: 
        $ekstras[] = ["id_ekstra" => $ekstra, "nama_ekstra" => $nama_ekstra, "kelas_ekstra" => $kelas]; 
        goto tLbSl; 
        YCell: 
        $kelas_mapel_guru = serialize($mapels); 
        goto Vd0aO; 
        E8sfK: 
        $kelas = []; 
        goto omBiT; 
        vtRTY: 
        $nama_mapel = $this->input->post("nama_mapel" . $mapel, true); 
        goto Fp3kF; 
        TowGZ: 
        if (!isset($kelass1[$tmp_nama])) { 
            goto LRVHD; 
        } 
        goto trYNe; 
        maiYi: 
        $ekstra = $this->input->post("ekstra[" . $i . "]", true); 
        goto ED5vn; 
        XrEPS: 
        HccDc: 
        goto YCell; 
        FG6C3: 
        QGXXT: 
        goto BWGzb; 
        HOePa: 
    } 
    public function getDataKelas() 
    { 
        goto PQT3c; 
        Vi7mF: 
        $tp = $this->dashboard->getTahunActive(); 
        goto YNXmK; 
        WRELz: 
        $mapel_terisi = []; 
        goto eFUV5; 
        sneB0: 
        $data["mpl_terisi"] = $mapel_terisi; 
        goto o_GDu; 
        YppuA: 
        $jbtn = []; 
        goto IWRp0; 
        NpCIa: 
        $this->load->model("Users_model", "users"); 
        goto Vi7mF; 
        k3NLj: 
        $this->output_json($data); 
        goto bG9la; 
        Ia_XJ: 
        $data["kelas"] = $this->users->getKelas($tp->id_tp, $smt->id_smt); 
        goto k3NLj; 
        tbySk: 
        $data["jabatan"] = $jbtn; 
        goto sneB0; 
        vzfaJ: 
        $this->load->model("Dashboard_model", "dashboard"); 
        goto NpCIa; 
        PQT3c: 
        $this->load->model("Master_model", "master"); 
        goto vzfaJ; 
        VaDl9: 
        crsZc: 
        goto tbySk; 
        IWRp0: 
        foreach ($jabatans as $jabatan) { 
            goto PwcHv; 
            jIjy_: 
            Fm1x0: 
            goto QXode; 
            gdNdx: 
            foreach ($eks_kls as $eks) { 
                goto SWluT; 
                HWEgC: 
                $ekstra_terisi[$eks->id_ekstra][$jabatan->id_guru] = ["id_guru" => $jabatan->id_guru, "guru" => $jabatan->nama_guru, "kelas" => $klse]; 
                goto Mcr7j; 
                SWluT: 
                $klse = []; 
                goto Qx8vK; 
                Qx8vK: 
                foreach ($eks->kelas_ekstra as $ek) { 
                    $klse[] = $ek->kelas; 
                    YGOZo: 
                } 
                goto SQur3; 
                Mcr7j: 
                IJUv1: 
                goto Muwrf; 
                SQur3: 
                dXGol: 
                goto HWEgC; 
                Muwrf: 
            } 
            goto jIjy_; 
            JhIM_: 
            K7uTS: 
            goto gdNdx; 
            rAvGg: 
            $eks_kls = $jabatan->ekstra_kelas = json_decode(json_encode(unserialize($jabatan->ekstra_kelas))); 
            goto N0caA; 
            N0caA: 
            foreach ($mpl_kls as $mpls) { 
                goto nXXxL; 
                jpA0D: 
                foreach ($mpls->kelas_mapel as $mpl) { 
                    $klss[] = $mpl->kelas; 
                    s34S4: 
                } 
                goto jkTtS; 
                jkTtS: 
                Iy5pb: 
                goto u4Ghs; 
                nXXxL: 
                $klss = []; 
                goto jpA0D; 
                u4Ghs: 
                $mapel_terisi[$mpls->id_mapel][$jabatan->id_guru] = ["id_guru" => $jabatan->id_guru, "guru" => $jabatan->nama_guru, "kelas" => $klss]; 
                goto BeAE9; 
                BeAE9: 
                rfHqg: 
                goto TZVrr; 
                TZVrr: 
            } 
            goto JhIM_; 
            PwcHv: 
            $mpl_kls = $jabatan->mapel_kelas = json_decode(json_encode(unserialize($jabatan->mapel_kelas))); 
            goto rAvGg; 
            lwtG3: 
            J72mB: 
            goto EVH6f; 
            QXode: 
            $jbtn[$jabatan->id_jabatan][$jabatan->id_kelas] = ["nama" => $jabatan->nama_guru, "id" => $jabatan->id_guru]; 
            goto lwtG3; 
            EVH6f: 
        } 
        goto VaDl9; 
        YNXmK: 
        $smt = $this->dashboard->getSemesterActive(); 
        goto evYBP; 
        evYBP: 
        $jabatans = $this->master->getGuruMapel($tp->id_tp, $smt->id_smt); 
        goto WRELz; 
        eFUV5: 
        $ekstra_terisi = []; 
        goto YppuA; 
        o_GDu: 
        $data["eks_terisi"] = $ekstra_terisi; 
        goto Ia_XJ; 
        bG9la: 
    } 
    public function addjabatan() 
    { 
        goto uFgBJ; 
        OOO1x: 
        $insert = ["id_level" => $id, "level" => $this->input->post("level", true)]; 
        goto LKmWK; 
        hvsRc: 
        $data = ["success" => $replaced, "msg" => $replaced ? "Sukses " . $s_mode . " jabatan" : "Gagal " . $s_mode . " jabatan"]; 
        goto VyXQO; 
        plUpy: 
        $replaced = $this->db->delete("level_guru", "id_level=" . $id); 
        goto PG9BC; 
        VyXQO: 
        $this->output_json($data); 
        goto TTEuG; 
        SgnNg: 
        QuHyP: 
        goto hvsRc; 
        xDo0j: 
        TZutf: 
        goto OOO1x; 
        PG9BC: 
        goto QuHyP; 
        goto xDo0j; 
        LKmWK: 
        $replaced = $this->db->replace("level_guru", $insert); 
        goto SgnNg; 
        gai4G: 
        $id = $this->input->post("id_level", true); 
        goto UitpF; 
        GsbOw: 
        if ($mode == "1") { 
            goto TZutf; 
        } 
        goto plUpy; 
        UitpF: 
        $s_mode = $mode == "1" ? "menyimpan" : "menghapus"; 
        goto GsbOw; 
        uFgBJ: 
        $mode = $this->input->post("mode", true); 
        goto gai4G; 
        TTEuG: 
    } 
} 
 ?>

Did this file decode correctly?

Original Code

<?php
/*   ________________________________________
    |                 GarudaCBT              |
    |    https://github.com/garudacbt/cbt    |
    |________________________________________|
*/
defined("\x42\x41\123\105\x50\101\124\x48") or exit("\x4e\157\x20\144\x69\162\145\143\164\x20\163\x63\x72\x69\x70\164\x20\x61\143\143\145\x73\163\40\x61\154\154\x6f\167\x65\x64");
class Dataguru extends CI_Controller
{
    public function __construct()
    {
        goto dt0Pe;
        N1u7H:
        $this->form_validation->set_error_delimiters('', '');
        goto xUHM9;
        nKF74:
        o2Pe0:
        goto KFYrb;
        O02bI:
        $this->load->library(["\144\141\x74\x61\164\x61\x62\154\145\163", "\x66\157\x72\155\137\166\x61\x6c\x69\144\x61\164\x69\157\156"]);
        goto N1u7H;
        dt0Pe:
        parent::__construct();
        goto TV1ed;
        KFYrb:
        goto JmSah;
        goto i3hR5;
        TV1ed:
        if (!$this->ion_auth->logged_in()) {
            goto EtIB5;
        }
        goto PGA1H;
        PGA1H:
        if ($this->ion_auth->is_admin()) {
            goto o2Pe0;
        }
        goto CNtRp;
        UVRI3:
        JmSah:
        goto O02bI;
        i3hR5:
        EtIB5:
        goto WtBRQ;
        WtBRQ:
        redirect("\x61\165\164\x68");
        goto UVRI3;
        CNtRp:
        show_error("\110\x61\156\171\x61\x20\101\144\x6d\x69\156\151\163\x74\162\141\x74\157\162\40\x79\x61\156\x67\x20\x64\x69\142\145\162\151\x20\150\141\153\40\x75\x6e\164\x75\153\40\155\145\156\147\x61\x6b\163\x65\x73\40\x68\141\x6c\141\155\141\156\40\151\156\x69\54\40\x3c\x61\40\x68\162\x65\146\x3d\42" . base_url("\144\x61\163\x68\x62\157\x61\162\144") . "\x22\76\x4b\145\x6d\x62\141\x6c\151\x20\x6b\x65\40\155\x65\x6e\x75\x20\141\167\141\154\74\57\x61\76", 403, "\101\153\163\145\163\40\x54\x65\x72\154\x61\162\141\x6e\147");
        goto nKF74;
        xUHM9:
    }
    public function output_json($data, $encode = true)
    {
        goto a23O6;
        kKBmH:
        n6UaF:
        goto lbzNn;
        uSnrA:
        $data = json_encode($data);
        goto kKBmH;
        lbzNn:
        $this->output->set_content_type("\x61\x70\160\154\x69\143\141\x74\151\x6f\x6e\x2f\152\163\157\x6e")->set_output($data);
        goto NQ08T;
        a23O6:
        if (!$encode) {
            goto n6UaF;
        }
        goto uSnrA;
        NQ08T:
    }
    public function index()
    {
        goto aDRqk;
        YKAgM:
        $data["\163\155\164"] = $this->dashboard->getSemester();
        goto h19cX;
        Au3JN:
        $this->load->model("\104\x61\163\x68\x62\157\x61\162\x64\137\x6d\x6f\144\145\154", "\x64\x61\163\150\142\x6f\x61\162\144");
        goto jxU9q;
        aDRqk:
        $this->load->model("\x44\162\157\160\x64\157\x77\156\137\x6d\x6f\144\145\x6c", "\x64\162\x6f\x70\x64\157\167\x6e");
        goto eoYnq;
        cH0g2:
        $this->load->view("\x5f\x74\145\x6d\x70\x6c\141\x74\x65\163\57\144\141\163\x68\x62\157\x61\162\144\x2f\137\150\145\x61\x64\145\x72", $data);
        goto bcmS_;
        Vmn8H:
        $data["\164\x70\137\141\x63\x74\151\166\145"] = $tp;
        goto YKAgM;
        iK2NQ:
        $user = $this->ion_auth->user()->row();
        goto ryb9V;
        Ahakm:
        $data["\164\160"] = $this->dashboard->getTahun();
        goto Vmn8H;
        ryb9V:
        $setting = $this->dashboard->getSetting();
        goto nbJob;
        imOWf:
        $tp = $this->dashboard->getTahunActive();
        goto N3SO6;
        eoYnq:
        $this->load->model("\x4d\141\163\164\x65\x72\x5f\155\157\x64\145\154", "\155\x61\x73\x74\145\162");
        goto Au3JN;
        kQaEp:
        foreach ($mapels as $key => $row) {
            $ret[$row->id_mapel] = $row;
            sTGPq:
        }
        goto m9Fh5;
        nbJob:
        $data = ["\165\x73\x65\162" => $user, "\x6a\x75\x64\x75\154" => "\107\x75\x72\165", "\163\165\142\152\x75\144\165\x6c" => "\104\141\x74\x61\x20\x47\x75\162\165", "\160\162\157\146\x69\154\145" => $this->dashboard->getProfileAdmin($user->id), "\163\x65\164\164\x69\156\x67" => $setting];
        goto imOWf;
        FGJjH:
        vDSMU:
        goto RkhlT;
        UxmHR:
        $data["\153\145\x6c\141\163\163"] = $this->master->getAllKelas($tp->id_tp, $smt->id_smt);
        goto jt1P7;
        UkvEw:
        $data["\x6d\157\x64\145"] = $mode == null ? "\x31" : "\x32";
        goto Ahakm;
        RnNxI:
        $data["\145\170\164\162\x61\163"] = $this->dropdown->getAllKodeEkskul();
        goto UxmHR;
        VDUhI:
        $ret = [];
        goto cuVxl;
        jxU9q:
        $mode = $this->input->get("\155\x6f\x64\x65", true);
        goto iK2NQ;
        jt1P7:
        $data["\147\165\162\x75\x73"] = $this->master->getAllDataGuru($tp->id_tp, $smt->id_smt);
        goto cH0g2;
        N3SO6:
        $smt = $this->dashboard->getSemesterActive();
        goto UkvEw;
        m9Fh5:
        zXJh_:
        goto FGJjH;
        ypXYy:
        $mapels = $this->master->getAllMapel();
        goto VDUhI;
        cuVxl:
        if (!$mapels) {
            goto vDSMU;
        }
        goto kQaEp;
        Y2lND:
        $this->load->view("\x5f\x74\145\x6d\x70\x6c\141\x74\x65\x73\x2f\x64\141\163\150\142\x6f\x61\x72\x64\x2f\137\x66\157\157\x74\145\x72");
        goto HKRB7;
        RkhlT:
        $data["\x6d\x61\x70\x65\154\163"] = $ret;
        goto RnNxI;
        h19cX:
        $data["\163\155\x74\x5f\x61\143\164\151\x76\145"] = $smt;
        goto ypXYy;
        bcmS_:
        $this->load->view("\x6d\x61\163\x74\145\x72\57\x67\165\162\x75\57\144\141\x74\x61");
        goto Y2lND;
        HKRB7:
    }
    public function data()
    {
        goto xO28c;
        xO28c:
        $this->load->model("\x4d\141\x73\164\x65\162\x5f\155\157\x64\145\154", "\155\x61\163\x74\x65\x72");
        goto In5be;
        In5be:
        $this->load->model("\104\x61\163\x68\142\157\141\162\x64\137\155\157\144\x65\154", "\x64\x61\163\x68\x62\157\x61\x72\144");
        goto cf1fc;
        cf1fc:
        $tp = $this->dashboard->getTahunActive();
        goto EgLMV;
        EgLMV:
        $smt = $this->dashboard->getSemesterActive();
        goto HDzFm;
        HDzFm:
        $this->output_json($this->master->getDataGuru($tp->id_tp, $smt->id_smt), false);
        goto rSFi7;
        rSFi7:
    }
    public function edit($id)
    {
        goto DsB0T;
        pgva_:
        $setting = $this->dashboard->getSetting();
        goto SWNBE;
        DsB0T:
        $this->load->model("\x4d\x61\163\164\x65\x72\x5f\155\x6f\144\145\x6c", "\155\x61\x73\x74\x65\x72");
        goto NJECb;
        XQqFL:
        $data["\151\x64\137\141\143\x74\x69\166\145"] = $id;
        goto J3Ois;
        QimZL:
        $data["\151\x6e\160\165\164\x5f\141\x6c\141\155\141\164"] = json_decode(json_encode($inputsAlamat), FALSE);
        goto PY1bN;
        J3Ois:
        $inputsProfile = [["\154\x61\x62\x65\x6c" => "\116\141\x6d\x61\40\114\145\x6e\147\153\141\x70", "\x6e\x61\x6d\145" => "\156\141\155\x61\x5f\x67\x75\162\165", "\166\x61\x6c\x75\x65" => $guru->nama_guru, "\x69\x63\157\x6e" => "\x66\x61\162\x20\x66\141\x2d\165\163\x65\x72", "\x74\171\160\x65" => "\x74\x65\170\x74"], ["\x6c\141\142\x65\x6c" => "\x45\155\x61\151\154", "\x6e\141\x6d\145" => "\x65\x6d\141\151\x6c", "\x76\x61\154\165\145" => $guru->email, "\151\x63\157\x6e" => "\x66\141\162\x20\146\141\x2d\x65\156\x76\145\x6c\157\160\145", "\164\x79\x70\x65" => "\164\x65\170\x74"], ["\x6c\x61\142\x65\154" => "\x4e\111\x50\40\57\40\116\125\x50\x54\113", "\156\141\x6d\145" => "\156\x69\x70", "\166\x61\154\165\145" => $guru->nip, "\x69\143\x6f\x6e" => "\146\141\x72\x20\146\141\55\x69\x64\x2d\143\141\x72\144", "\x74\171\x70\145" => "\164\x65\x78\164"], ["\x6c\141\x62\145\x6c" => "\x4a\145\156\x69\163\40\x4b\x65\154\x61\155\x69\x6e", "\156\141\155\x65" => "\x6a\x65\x6e\151\x73\137\153\145\154\141\x6d\151\156", "\x76\x61\x6c\x75\145" => $guru->jenis_kelamin, "\151\143\x6f\156" => "\x66\x61\x73\x20\x66\141\55\x76\x65\x6e\165\163\x2d\x6d\x61\162\163", "\164\x79\x70\x65" => "\x74\145\x78\164"], ["\154\x61\x62\x65\x6c" => "\116\157\56\40\x48\141\x6e\x64\x70\x68\157\x6e\145", "\x6e\x61\155\145" => "\x6e\x6f\137\150\160", "\166\141\154\x75\145" => $guru->no_hp, "\151\x63\x6f\x6e" => "\146\x61\x20\x66\x61\55\160\150\157\156\145", "\164\x79\x70\x65" => "\x6e\x75\x6d\x62\x65\162"], ["\x6c\x61\x62\145\x6c" => "\x41\147\x61\155\x61", "\x6e\141\155\145" => "\141\147\141\x6d\141", "\166\x61\154\x75\x65" => $guru->agama, "\x69\x63\157\x6e" => "\x66\141\x72\40\146\x61\x2d\x75\x73\145\x72", "\x74\171\160\145" => "\164\145\x78\164"]];
        goto hOWIk;
        Mwg0n:
        $user = $this->ion_auth->user()->row();
        goto pgva_;
        PY1bN:
        $this->load->view("\x5f\x74\145\155\x70\154\141\164\145\x73\x2f\144\141\163\150\142\x6f\x61\162\144\57\137\x68\145\141\144\145\x72", $data);
        goto xA0Fd;
        NJECb:
        $this->load->model("\104\x61\x73\x68\x62\157\x61\162\x64\137\x6d\x6f\144\x65\154", "\144\x61\163\x68\x62\157\x61\x72\144");
        goto Mwg0n;
        SWNBE:
        $tp = $this->master->getTahunActive();
        goto dAQBx;
        ESKwN:
        $data["\163\x6d\164\137\141\143\x74\x69\166\145"] = $smt;
        goto XQqFL;
        RxumK:
        $data["\x74\x70\137\141\x63\164\151\166\145"] = $tp;
        goto aBSwX;
        hOWIk:
        $inputsAlamat = [["\154\x61\x62\x65\154" => "\x4e\111\113", "\x6e\141\x6d\145" => "\156\157\x5f\153\164\160", "\x76\x61\x6c\165\145" => $guru->no_ktp, "\151\x63\x6f\x6e" => "\x66\141\x72\x20\146\141\55\x69\x64\x2d\x63\x61\x72\x64", "\164\171\160\x65" => "\x6e\x75\155\142\145\x72"], ["\x6c\x61\142\x65\154" => "\x54\x65\x6d\x70\x61\x74\x20\114\x61\x68\151\162", "\x6e\x61\x6d\145" => "\x74\145\155\x70\x61\164\137\x6c\141\x68\x69\162", "\166\x61\x6c\x75\145" => $guru->tempat_lahir, "\x69\x63\x6f\x6e" => "\146\x61\40\x66\141\55\155\141\160\55\155\x61\162\153\145\162", "\164\x79\160\x65" => "\x74\x65\170\164"], ["\154\x61\x62\145\x6c" => "\124\x67\x6c\x2e\x20\114\141\x68\x69\x72", "\156\x61\x6d\145" => "\164\147\x6c\x5f\x6c\x61\x68\x69\x72", "\x76\141\x6c\x75\x65" => $guru->tgl_lahir, "\x69\x63\157\x6e" => "\146\x61\40\146\141\55\143\x61\x6c\145\x6e\144\141\x72", "\164\x79\x70\x65" => "\x74\145\170\164"], ["\x6c\x61\142\145\154" => "\101\154\x61\155\141\x74", "\x6e\x61\155\x65" => "\141\x6c\141\x6d\141\x74\137\x6a\141\154\141\156", "\x76\x61\x6c\165\145" => $guru->alamat_jalan, "\x69\x63\x6f\156" => "\146\141\40\x66\141\55\155\x61\160\x2d\155\x61\162\153\x65\162", "\164\171\160\145" => "\164\x65\170\x74"], ["\x6c\141\142\145\x6c" => "\x4b\145\143\141\155\141\164\141\x6e", "\x6e\141\x6d\x65" => "\153\145\x63\141\x6d\141\x74\x61\156", "\166\141\154\x75\x65" => $guru->kecamatan, "\151\x63\157\156" => "\146\x61\x20\146\x61\x2d\x6d\x61\x70\55\155\141\162\153\x65\162", "\x74\171\x70\x65" => "\x74\x65\170\x74"], ["\x6c\x61\x62\145\154" => "\x4b\x6f\164\141\x2f\x4b\x61\142\56", "\x6e\x61\155\x65" => "\153\x61\142\x75\160\x61\x74\145\x6e", "\166\141\x6c\165\x65" => $guru->kabupaten, "\151\143\x6f\x6e" => "\x66\x61\40\x66\x61\55\155\141\x70\55\x6d\141\162\x6b\x65\162", "\x74\171\x70\x65" => "\x74\x65\170\x74"], ["\154\141\x62\145\x6c" => "\120\x72\157\166\151\156\163\151", "\x6e\141\155\x65" => "\160\x72\x6f\166\x69\x6e\163\151", "\166\x61\154\165\145" => $guru->provinsi, "\151\143\x6f\x6e" => "\x66\141\40\x66\141\x2d\x6d\141\x70\x2d\x6d\x61\x72\x6b\x65\x72", "\x74\171\x70\x65" => "\x74\x65\x78\x74"], ["\154\141\x62\x65\154" => "\113\157\144\145\40\x50\157\x73", "\156\141\155\145" => "\153\x6f\x64\145\137\x70\157\163", "\166\x61\154\165\x65" => $guru->kode_pos, "\x69\143\157\x6e" => "\146\x61\40\x66\x61\x2d\x65\156\166\x65\x6c\157\x70\x65", "\x74\171\x70\x65" => "\x6e\165\155\142\145\162"]];
        goto ncHSy;
        aBSwX:
        $data["\163\155\164"] = $this->dashboard->getSemester();
        goto ESKwN;
        ulRFI:
        $guru = $this->master->getGuruById($id, $tp->id_tp, $smt->id_smt);
        goto PW0f3;
        dAQBx:
        $smt = $this->master->getSemesterActive();
        goto ulRFI;
        ncHSy:
        $data["\x69\x6e\160\165\164\x5f\x70\x72\x6f\x66\151\x6c\x65"] = json_decode(json_encode($inputsProfile), FALSE);
        goto QimZL;
        PW0f3:
        $data = ["\x75\x73\x65\162" => $user, "\152\x75\144\x75\154" => "\105\x64\151\164\40\107\165\162\165", "\x73\165\142\x6a\x75\x64\x75\x6c" => "\x45\144\x69\x74\40\x44\141\x74\141\40\107\x75\162\x75", "\x6d\141\160\x65\x6c" => $this->master->getAllMapel(), "\x67\x75\162\x75" => $guru, "\x70\x72\x6f\x66\151\154\x65" => $this->dashboard->getProfileAdmin($user->id), "\163\145\x74\x74\151\x6e\147" => $setting];
        goto dZA07;
        q9Q7X:
        $this->load->view("\137\x74\145\x6d\x70\154\x61\x74\x65\x73\57\x64\141\163\150\142\157\x61\x72\x64\x2f\137\x66\x6f\157\164\145\162");
        goto H_TAk;
        xA0Fd:
        $this->load->view("\155\141\x73\164\x65\162\x2f\147\165\x72\x75\x2f\145\x64\151\x74");
        goto q9Q7X;
        dZA07:
        $data["\164\160"] = $this->dashboard->getTahun();
        goto RxumK;
        H_TAk:
    }
    public function create()
    {
        goto YyR2x;
        cn2gh:
        $u_nip = "\151\163\x5f\165\156\x69\x71\x75\x65\133\155\x61\163\x74\145\162\137\x67\165\x72\165\x2e\156\151\x70\x5d";
        goto eEPkh;
        IEb7w:
        $this->output_json(["\x73\164\x61\x74\165\163" => false]);
        goto IQXsx;
        C9maP:
        $data = ["\163\164\141\x74\x75\x73" => false, "\145\x72\162\x6f\x72\x73" => ["\156\x69\160" => form_error("\156\x69\160"), "\156\x61\x6d\141\x5f\x67\x75\x72\165" => form_error("\x6e\141\x6d\141\137\x67\165\162\x75"), "\x75\163\145\162\x6e\x61\x6d\x65" => form_error("\x75\163\145\162\x6e\x61\x6d\145"), "\x70\x61\163\163\167\x6f\162\144" => form_error("\160\x61\163\x73\167\157\x72\144")]];
        goto pxgoj;
        XpUJs:
        eiZKE:
        goto e7wFW;
        zk1Gw:
        $this->form_validation->set_rules("\x6e\141\155\x61\x5f\147\x75\162\165", "\116\x61\x6d\141\x20\107\165\162\165", "\x72\145\x71\x75\x69\162\145\144\174\x74\x72\x69\155\174\155\151\x6e\x5f\x6c\x65\x6e\147\164\150\133\x32\x5d");
        goto aC55v;
        AXzS7:
        $action = $this->master->create("\155\141\x73\x74\x65\162\x5f\147\165\162\x75", $input);
        goto xOCwi;
        e7wFW:
        $this->output_json(["\163\x74\x61\x74\165\x73" => true]);
        goto EWA_q;
        IQXsx:
        goto qM8LM;
        goto XpUJs;
        eEPkh:
        $u_username = "\x7c\151\163\x5f\x75\x6e\x69\x71\165\x65\133\155\x61\163\164\145\162\x5f\147\x75\x72\x75\x2e\x75\x73\x65\x72\x6e\x61\x6d\145\x5d";
        goto LnzI5;
        xOCwi:
        if ($action) {
            goto eiZKE;
        }
        goto IEb7w;
        LnzI5:
        $this->form_validation->set_rules("\x6e\x69\160", "\x4e\111\120", "\162\x65\x71\x75\x69\x72\145\144\x7c\x6e\x75\x6d\145\162\x69\x63\x7c\x74\x72\151\155\x7c" . $u_nip);
        goto zk1Gw;
        vhYIw:
        $nip = $this->input->post("\x6e\151\x70", true);
        goto gm1Ml;
        YyR2x:
        $this->load->model("\115\141\163\164\145\x72\x5f\155\157\x64\x65\x6c", "\x6d\x61\x73\164\x65\162");
        goto vhYIw;
        MX2UD:
        $input = ["\156\151\x70" => trim($nip), "\156\x61\x6d\x61\x5f\147\165\162\x75" => trim($nama_guru), "\x75\163\145\162\156\141\155\145" => trim($username), "\x70\141\163\x73\x77\x6f\162\x64" => trim($password), "\146\x6f\164\157" => "\165\160\154\157\141\144\x73\57\160\x72\x6f\x66\151\154\145\x73\57" . trim($nip) . "\x2e\x6a\x70\x67"];
        goto AXzS7;
        pxgoj:
        $this->output_json($data);
        goto qGyQF;
        fHhTE:
        $password = $this->input->post("\x70\x61\x73\163\167\157\162\x64", true);
        goto cn2gh;
        T5bCu:
        if ($this->form_validation->run() == FALSE) {
            goto AsffR;
        }
        goto MX2UD;
        aC55v:
        $this->form_validation->set_rules("\x75\x73\145\162\156\141\x6d\145", "\x55\163\x65\x72\156\x61\x6d\145", "\x72\145\161\165\x69\x72\145\x64\174\164\162\151\155" . $u_username);
        goto LUNhZ;
        LUNhZ:
        $this->form_validation->set_rules("\x70\x61\x73\x73\x77\157\x72\144", "\x50\x61\x73\x73\x77\x6f\162\x64", "\162\145\x71\165\x69\x72\x65\144");
        goto T5bCu;
        EWA_q:
        qM8LM:
        goto a6Ta3;
        a6Ta3:
        goto XRFOl;
        goto kdZDn;
        qGyQF:
        XRFOl:
        goto u4x_z;
        pea0m:
        $username = $this->input->post("\165\x73\x65\162\156\141\x6d\x65", true);
        goto fHhTE;
        kdZDn:
        AsffR:
        goto C9maP;
        gm1Ml:
        $nama_guru = $this->input->post("\x6e\141\x6d\141\137\x67\x75\x72\x75", true);
        goto pea0m;
        u4x_z:
    }
    public function save()
    {
        goto c8wuq;
        EP0Te:
        $this->output_json($data);
        goto mlvko;
        B9TkI:
        $u_nip = $dbdata->nip === $nip ? '' : "\174\x69\x73\137\165\156\x69\161\165\x65\133\x67\x75\162\165\x2e\x6e\151\x70\135";
        goto ksnwT;
        CjHjy:
        if ($method === "\x61\144\x64") {
            goto aegRo;
        }
        goto GjIw2;
        AsfL2:
        $email = $this->input->post("\x65\x6d\x61\151\x6c", true);
        goto saQEl;
        XDPmU:
        VaVtX:
        goto Ju0jf;
        WC93E:
        rckx_:
        goto EJcJX;
        Z119B:
        $method = $this->input->post("\x6d\x65\x74\150\157\144", true);
        goto C9LQp;
        eAc3d:
        $input = ["\x6e\x69\x70" => $nip, "\x6e\x61\155\141\x5f\147\165\162\x75" => $nama_guru, "\x65\x6d\141\151\154" => $email, "\155\x61\160\x65\154\x5f\151\144" => $mapel];
        goto CjHjy;
        EJcJX:
        goto b96_O;
        goto TVySB;
        Ju0jf:
        goto d3E7E;
        goto DrGKr;
        kJyS4:
        $this->form_validation->set_rules("\145\x6d\141\x69\x6c", "\105\x6d\x61\x69\154", "\x72\x65\161\x75\x69\x72\145\144\x7c\164\x72\151\155\x7c\x76\141\154\151\144\x5f\145\155\141\x69\x6c" . $u_email);
        goto B6Q7R;
        fq0iv:
        $data = ["\x73\164\x61\x74\165\163" => false, "\145\x72\x72\157\x72\163" => ["\156\x69\160" => form_error("\x6e\x69\x70"), "\156\141\155\x61\x5f\147\165\x72\x75" => form_error("\156\141\155\x61\137\147\165\162\x75"), "\145\x6d\x61\151\154" => form_error("\x65\155\x61\151\x6c"), "\x6d\x61\160\x65\x6c" => form_error("\x6d\141\160\145\x6c")]];
        goto EP0Te;
        c8wuq:
        $this->load->model("\x4d\x61\x73\164\145\x72\137\155\x6f\x64\145\x6c", "\155\x61\163\x74\x65\x72");
        goto Z119B;
        YMNfj:
        d3E7E:
        goto LBPSO;
        TVySB:
        fhO1W:
        goto fq0iv;
        B6Q7R:
        $this->form_validation->set_rules("\155\141\x70\145\x6c", "\x4d\x61\164\x61\x20\x4b\x75\154\x69\141\x68", "\x72\145\161\165\x69\162\145\144");
        goto iiVO3;
        oDtY6:
        $action = $this->master->create("\x6d\x61\x73\164\145\x72\137\147\x75\x72\x75", $input);
        goto YMNfj;
        saQEl:
        $mapel = $this->input->post("\x70\141\163\x73\167\157\162\144", true);
        goto Yyue6;
        VuRDl:
        tBl2k:
        goto r047T;
        r047T:
        $this->output_json(["\163\164\x61\164\165\163" => true]);
        goto WC93E;
        ksnwT:
        $u_email = $dbdata->email === $email ? '' : "\x7c\x69\163\x5f\x75\156\x69\161\x75\x65\x5b\x67\165\x72\165\56\145\155\141\151\x6c\x5d";
        goto wZ5fx;
        wZ5fx:
        goto l1lyU;
        goto zClTJ;
        HaR2y:
        l1lyU:
        goto f3Vkg;
        iiVO3:
        if ($this->form_validation->run() == FALSE) {
            goto fhO1W;
        }
        goto eAc3d;
        W7kAm:
        $this->output_json(["\x73\x74\141\x74\x75\x73" => false]);
        goto Xl8Uw;
        TaTdT:
        $action = $this->master->update("\155\141\x73\x74\145\162\x5f\x67\x75\162\x75", $input, "\151\x64\x5f\x67\165\162\x75", $id_guru);
        goto XDPmU;
        C9LQp:
        $id_guru = $this->input->post("\x69\144\137\147\x75\162\x75", true);
        goto S_50m;
        o4CLY:
        $this->form_validation->set_rules("\x6e\x61\x6d\141\x5f\147\x75\162\x75", "\116\141\x6d\141\x20\107\165\162\165", "\162\145\161\x75\x69\162\145\144\x7c\x74\162\x69\155\174\x6d\151\156\137\154\x65\x6e\147\x74\x68\133\63\135");
        goto kJyS4;
        zClTJ:
        xHtUD:
        goto JClYI;
        mlvko:
        b96_O:
        goto lAs1W;
        Xl8Uw:
        goto rckx_;
        goto VuRDl;
        o2NDf:
        $dbdata = $this->master->getGuruById($id_guru);
        goto B9TkI;
        f3Vkg:
        $this->form_validation->set_rules("\156\151\x70", "\x4e\x49\x50", "\162\x65\161\x75\151\x72\145\144\174\164\162\x69\155\x7c\155\151\x6e\x5f\x6c\x65\x6e\x67\x74\150\133\x38\x5d" . $u_nip);
        goto o4CLY;
        S_50m:
        $nip = $this->input->post("\156\151\160", true);
        goto y1Z5p;
        JClYI:
        $u_nip = "\174\x69\x73\137\165\156\151\161\165\x65\x5b\x67\x75\162\165\56\156\x69\x70\135";
        goto tKIus;
        y1Z5p:
        $nama_guru = $this->input->post("\156\141\x6d\x61\137\147\x75\162\x75", true);
        goto AsfL2;
        GjIw2:
        if (!($method === "\x65\x64\x69\x74")) {
            goto VaVtX;
        }
        goto TaTdT;
        Yyue6:
        if ($method == "\141\144\144") {
            goto xHtUD;
        }
        goto o2NDf;
        tKIus:
        $u_email = "\x7c\151\163\137\165\156\151\x71\x75\145\x5b\147\x75\162\x75\x2e\x65\155\x61\151\x6c\x5d";
        goto HaR2y;
        DrGKr:
        aegRo:
        goto oDtY6;
        LBPSO:
        if ($action) {
            goto tBl2k;
        }
        goto W7kAm;
        lAs1W:
    }
    public function deleteGuru()
    {
        goto oEd_6;
        CqkO7:
        $tables = [];
        goto si28W;
        r718G:
        OISjG:
        goto Ls3Sj;
        Vbkfm:
        YA1rh:
        goto Rk1fv;
        UkQR4:
        AC9AE:
        goto oEC_l;
        h2uw7:
        foreach ($tabless as $table) {
            goto pmaNk;
            pmaNk:
            $fields = $this->db->field_data($table);
            goto GZ_CS;
            GZ_CS:
            foreach ($fields as $field) {
                goto RIPm3;
                RIPm3:
                if (!($field->name == "\x69\x64\x5f\x67\x75\162\165" || $field->name == "\147\x75\162\x75\x5f\x69\x64")) {
                    goto n7KMX;
                }
                goto C3z_4;
                DSKmR:
                ppWFI:
                goto Oz3vX;
                EL3Lm:
                n7KMX:
                goto DSKmR;
                C3z_4:
                array_push($tables, $table);
                goto EL3Lm;
                Oz3vX:
            }
            goto urTTr;
            DGugW:
            SdbSf:
            goto RqhSf;
            urTTr:
            qCjp6:
            goto DGugW;
            RqhSf:
        }
        goto Vbkfm;
        Ls3Sj:
        $this->output_json(["\143\x6f\165\156\x74" => count($messages), "\x73\x74\x61\164\165\x73" => false, "\x6d\x65\x73\163\141\147\x65" => "\104\141\x74\x61\40\x67\165\x72\165\40\144\x69\147\165\x6e\141\153\x61\156\x20\x64\151\40" . count($messages) . "\40\x74\141\142\x65\154\x3a\x3c\x62\162\x3e" . implode("\x3c\x62\x72\x3e", $messages)]);
        goto REcha;
        WwIhg:
        $this->output_json($data);
        goto va5kN;
        Rk1fv:
        foreach ($tables as $table) {
            goto GDzuu;
            Jxp0F:
            array_push($messages, $table);
            goto iDxP2;
            x63Yw:
            TktQ3:
            goto KtwTp;
            p01ns:
            $this->db->where("\151\144\137\x67\x75\162\x75", $chk);
            goto MdqRC;
            MZ0_a:
            if (!($num > 0)) {
                goto YyhC5;
            }
            goto Jxp0F;
            iDxP2:
            YyhC5:
            goto Fb9JI;
            xy4DI:
            if ($table == "\x6d\x61\163\x74\x65\x72\137\x6b\145\x6c\141\x73") {
                goto m6XEb;
            }
            goto p01ns;
            WfwRL:
            $this->db->where("\147\x75\x72\165\x5f\x69\x64", $chk);
            goto Q2SSP;
            GDzuu:
            if (!($table != "\x6d\141\x73\164\x65\x72\x5f\147\x75\x72\165")) {
                goto FT0PI;
            }
            goto xy4DI;
            BQk0U:
            goto Gnswv;
            goto nElN7;
            Q2SSP:
            $num = $this->db->count_all_results($table);
            goto fMQys;
            Fb9JI:
            FT0PI:
            goto x63Yw;
            MdqRC:
            $num = $this->db->count_all_results($table);
            goto BQk0U;
            nElN7:
            m6XEb:
            goto WfwRL;
            fMQys:
            Gnswv:
            goto MZ0_a;
            KtwTp:
        }
        goto UkQR4;
        LVFBF:
        $messages = [];
        goto CqkO7;
        REcha:
        q_16O:
        goto iqdF4;
        si28W:
        $tabless = $this->db->list_tables();
        goto h2uw7;
        va5kN:
        goto q_16O;
        goto r718G;
        iM0sR:
        $chk = $this->input->post("\x69\144\x5f\147\165\x72\165", true);
        goto LVFBF;
        oEd_6:
        $this->load->model("\x4d\141\163\x74\x65\x72\x5f\155\x6f\x64\x65\x6c", "\155\141\163\164\145\162");
        goto iM0sR;
        oEC_l:
        if (count($messages) > 0) {
            goto OISjG;
        }
        goto lAT1e;
        lAT1e:
        $data["\163\x74\141\x74\x75\x73"] = $this->master->delete("\x6d\141\163\x74\x65\x72\137\x67\x75\x72\165", $chk, "\151\x64\x5f\x67\165\162\165");
        goto WwIhg;
        iqdF4:
    }
    public function detail($id_guru)
    {
        goto GI12m;
        zEl3I:
        $data["\x6b\145\x6c\141\163"] = $this->master->getAllKelas();
        goto v33Q7;
        moWqi:
        $data["\x74\160\x5f\141\x63\164\151\166\x65"] = $this->dashboard->getTahunActive();
        goto nxYto;
        xwwNX:
        $data["\164\x70"] = $this->dashboard->getTahun();
        goto moWqi;
        o4biQ:
        $this->load->view("\155\141\163\x74\145\x72\57\147\x75\x72\x75\57\x64\x65\x74\141\151\154");
        goto VPU_2;
        GI12m:
        $this->load->model("\115\141\x73\164\x65\162\x5f\x6d\157\x64\145\x6c", "\x6d\141\163\x74\x65\x72");
        goto amTub;
        MsnTQ:
        $user = $this->ion_auth->user()->row();
        goto JibbH;
        nxYto:
        $data["\163\155\164"] = $this->dashboard->getSemester();
        goto plLm3;
        plLm3:
        $data["\163\x6d\x74\137\x61\x63\164\151\166\x65"] = $this->dashboard->getSemesterActive();
        goto zEl3I;
        amTub:
        $this->load->model("\x44\x61\163\x68\x62\x6f\x61\x72\144\x5f\x6d\157\x64\x65\154", "\x64\141\x73\x68\x62\x6f\141\162\x64");
        goto MsnTQ;
        RYTbi:
        $data = ["\165\x73\145\162" => $user, "\152\x75\x64\x75\x6c" => "\x44\x65\x74\141\x69\x6c\40\x47\165\x72\x75", "\x73\165\x62\152\x75\144\165\x6c" => "\111\156\146\157\40\112\141\x62\141\164\141\156\x20\107\165\162\x75", "\x6d\x61\x70\x65\154" => $this->master->getAllMapel(), "\160\162\157\146\151\154\145" => $this->dashboard->getProfileAdmin($user->id), "\x73\145\x74\x74\151\156\x67" => $setting];
        goto xwwNX;
        kP5Yb:
        $this->load->view("\x5f\164\145\155\160\154\141\x74\145\x73\x2f\x64\x61\x73\x68\x62\157\141\162\144\57\x5f\x68\145\141\144\x65\162", $data);
        goto o4biQ;
        T3M3j:
        $data["\147\165\x72\165"] = ["\144\x65\x74\141\151\x6c" => $this->master->getGuruByArrId([$id_guru])[0], "\x6a\141\x62\x61\x74\141\x6e" => $this->master->getDetailJabatanGuru($id_guru), "\x6d\141\x74\145\162\151" => $this->db->get_where("\x6b\x65\154\x61\x73\137\x6d\x61\x74\x65\162\151", "\x69\x64\x5f\x67\x75\162\x75\x3d" . $id_guru)->num_rows(), "\x63\141\164\x61\x74\141\x6e\137\155\x61\x70\x65\x6c" => $this->db->get_where("\x6b\145\x6c\141\163\137\143\x61\164\141\164\141\x6e\x5f\x6d\141\160\145\x6c", "\151\144\137\147\165\x72\165\75" . $id_guru)->num_rows(), "\142\x61\156\x6b\x5f\163\157\141\x6c" => $this->db->get_where("\x63\x62\x74\137\x62\x61\156\153\x5f\163\x6f\x61\x6c", "\x62\141\x6e\x6b\x5f\x67\x75\162\x75\137\151\x64\75" . $id_guru)->num_rows(), "\x70\145\156\147\x61\167\x61\x73" => $this->db->get_where("\143\x62\164\x5f\x70\145\x6e\x67\141\167\141\x73", "\151\144\137\x67\x75\x72\165\40\x4c\x49\113\x45\40\x22\45" . $id_guru . "\45\42")->num_rows(), "\x70\157\x73\x74\x73" => $this->db->get_where("\160\x6f\x73\164", "\144\x61\162\151\x3d" . $id_guru)->num_rows(), "\x63\157\x6d\155\x65\x6e\164\x73" => $this->db->get_where("\x70\x6f\163\164\x5f\x63\x6f\155\155\145\156\x74\163", "\144\x61\162\151\x3d" . $id_guru)->num_rows(), "\x72\x65\160\x6c\151\145\163" => $this->db->get_where("\x70\157\163\164\x5f\x72\145\160\154\171", "\x64\x61\x72\151\75" . $id_guru)->num_rows()];
        goto kP5Yb;
        v33Q7:
        $data["\151\x64\137\x67\165\162\165"] = $id_guru;
        goto T3M3j;
        VPU_2:
        $this->load->view("\137\164\145\155\x70\x6c\141\164\145\x73\x2f\x64\141\163\x68\x62\157\141\162\x64\57\137\146\157\x6f\x74\145\162");
        goto Ayf8I;
        JibbH:
        $setting = $this->dashboard->getSetting();
        goto RYTbi;
        Ayf8I:
    }
    public function delete()
    {
        goto kCThK;
        kCThK:
        $this->load->model("\x4d\x61\x73\x74\145\x72\x5f\155\x6f\x64\145\154", "\x6d\x61\163\164\145\x72");
        goto rKv1l;
        woZfN:
        if (!$chk) {
            goto YGJmh;
        }
        goto I5jQl;
        slObc:
        IF1oC:
        goto v6Qzt;
        I5jQl:
        if (!$this->master->delete("\155\141\163\x74\x65\x72\x5f\x67\165\162\165", $chk, "\x69\144\137\x67\165\162\x75")) {
            goto O0bOR;
        }
        goto VZKf5;
        z7Jxi:
        O0bOR:
        goto fs0On;
        fs0On:
        goto IF1oC;
        goto ARkYt;
        ARkYt:
        YGJmh:
        goto ryABc;
        ryABc:
        $this->output_json(["\x73\x74\x61\164\x75\163" => false]);
        goto slObc;
        rKv1l:
        $chk = $this->input->post("\143\150\x65\x63\153\145\144", true);
        goto woZfN;
        VZKf5:
        $this->output_json(["\163\164\x61\x74\165\163" => true, "\164\x6f\x74\141\x6c" => count($chk)]);
        goto z7Jxi;
        v6Qzt:
    }
    public function forceDelete()
    {
        goto sitW1;
        Pb1Iz:
        $this->output_json($data);
        goto MZ1EC;
        UnOby:
        $id_guru = $this->input->post("\151\x64\x5f\x67\165\162\165", true);
        goto dw6fM;
        sitW1:
        $this->load->model("\x4d\141\163\164\x65\x72\137\155\x6f\x64\x65\x6c", "\x6d\x61\x73\164\x65\x72");
        goto UnOby;
        dw6fM:
        $data["\x73\164\x61\164\165\x73"] = $this->master->delete("\155\x61\163\x74\x65\162\137\147\x75\162\x75", $id_guru, "\x69\144\137\x67\165\162\x75");
        goto Pb1Iz;
        MZ1EC:
    }
    public function create_user()
    {
        goto Kz447;
        ANQ_3:
        $group = array("\62");
        goto uhQyA;
        po9wY:
        goto LQxKM;
        goto YCbkZ;
        uhQyA:
        if ($this->ion_auth->username_check($username)) {
            goto wrcYm;
        }
        goto h_loQ;
        t6YJB:
        $first_name = $nama[0];
        goto uRrUf;
        YCbkZ:
        wrcYm:
        goto Jkka5;
        ZyHHj:
        $this->ion_auth->register($username, $password, $email, $additional_data, $group);
        goto gGuWK;
        xAYyZ:
        $username = $data->nip;
        goto KMW6g;
        ajWwB:
        LQxKM:
        goto zu0kp;
        QbxhR:
        $email = $data->email;
        goto yWlWs;
        N1muK:
        $nama = explode("\40", $data->nama_guru);
        goto t6YJB;
        gGuWK:
        $data = ["\163\164\141\x74\x75\x73" => true, "\x6d\x73\x67" => "\x55\x73\145\x72\40\x62\x65\162\x68\141\x73\x69\154\x20\x64\x69\142\165\141\164\x2e\x20\116\x49\x50\40\144\x69\x67\x75\x6e\x61\x6b\x61\156\40\163\145\142\x61\x67\x61\x69\x20\x70\141\163\163\167\x6f\x72\x64\x20\160\141\144\141\x20\163\x61\x61\x74\40\154\157\x67\151\x6e\56"];
        goto vSqam;
        yWlWs:
        $additional_data = ["\146\151\162\x73\x74\137\x6e\141\x6d\145" => $first_name, "\x6c\x61\x73\x74\137\156\141\x6d\x65" => $last_name];
        goto ANQ_3;
        Kz447:
        $this->load->model("\115\x61\163\164\145\162\137\155\x6f\x64\x65\154", "\155\x61\163\x74\x65\162");
        goto FirM8;
        uRrUf:
        $last_name = end($nama);
        goto xAYyZ;
        TlqKz:
        $data = ["\x73\164\141\164\x75\x73" => false, "\155\163\x67" => "\105\x6d\141\x69\154\40\164\151\144\141\153\40\164\x65\x72\163\145\144\151\x61\x20\50\x73\x75\x64\141\150\40\144\151\x67\165\156\x61\153\141\156\51\x2e"];
        goto edmgK;
        bsBwJ:
        $data = $this->master->getGuruById($id);
        goto N1muK;
        zu0kp:
        $this->output_json($data);
        goto d0Pjo;
        FirM8:
        $id = $this->input->get("\x69\x64", true);
        goto bsBwJ;
        svfeW:
        GT1ZQ:
        goto TlqKz;
        KMW6g:
        $password = $data->nip;
        goto QbxhR;
        edmgK:
        NQGb2:
        goto po9wY;
        h_loQ:
        if ($this->ion_auth->email_check($email)) {
            goto GT1ZQ;
        }
        goto ZyHHj;
        vSqam:
        goto NQGb2;
        goto svfeW;
        Jkka5:
        $data = ["\x73\164\141\164\165\x73" => false, "\x6d\163\147" => "\125\x73\x65\x72\x6e\x61\155\x65\40\x74\151\x64\x61\x6b\40\164\145\x72\x73\145\x64\151\141\x20\50\163\165\x64\x61\150\40\x64\151\x67\x75\x6e\x61\x6b\x61\156\x29\56"];
        goto ajWwB;
        d0Pjo:
    }
    public function previewExcel()
    {
        goto i4Dph;
        g8dae:
        echo json_encode($data);
        goto bHS92;
        Ou6gf:
        switch ($ext) {
            case "\x2e\170\x6c\163\170":
                $reader = new \PhpOffice\PhpSpreadsheet\Reader\Xlsx();
                goto efW5a;
            case "\56\x78\154\x73":
                $reader = new \PhpOffice\PhpSpreadsheet\Reader\Xls();
                goto efW5a;
            case "\x2e\x63\163\166":
                $reader = new \PhpOffice\PhpSpreadsheet\Reader\Csv();
                goto efW5a;
            default:
                echo "\x75\x6e\x6b\x6e\157\x77\x6e\x20\x66\151\x6c\145\40\x65\170\164";
                die;
        }
        goto BBCiC;
        pgp9z:
        $config["\x61\x6c\154\x6f\167\145\x64\x5f\164\x79\x70\x65\163"] = "\170\154\x73\x7c\170\154\x73\170\x7c\143\x73\166";
        goto zM0eD;
        IAk38:
        $sheetData = $spreadsheet->getActiveSheet()->toArray();
        goto Lt8n8;
        zM0eD:
        $config["\x6d\x61\x78\x5f\x73\x69\x7a\145"] = 2048;
        goto NmVyD;
        AZS09:
        $data[] = ["\156\x61\155\141" => $sheetData[$i][1], "\x6e\151\x70" => $sheetData[$i][2], "\x6b\x6f\x64\145" => $sheetData[$i][3], "\165\163\145\x72\156\x61\x6d\x65" => $sheetData[$i][4], "\x70\x61\x73\163\167\157\162\x64" => $sheetData[$i][5]];
        goto mS27o;
        Xc_Gp:
        ePohb:
        goto a2yyQ;
        RkZDZ:
        echo $error;
        goto saGPI;
        Dsdzk:
        unlink($file);
        goto g8dae;
        NmVyD:
        $config["\x65\x6e\143\162\171\160\164\137\156\141\155\x65"] = true;
        goto spsTi;
        MwVNe:
        nDUZA:
        goto jAw8a;
        h4ZO6:
        Y6UJT:
        goto Kvhda;
        BBCiC:
        U1Ad1:
        goto FnuhR;
        ZKDcI:
        if (!$this->upload->do_upload("\x75\x70\x6c\157\141\x64\x5f\x66\x69\154\145")) {
            goto ePohb;
        }
        goto VGHDN;
        saGPI:
        die;
        goto h4ZO6;
        mS27o:
        GoDvN:
        goto oO8lp;
        i4Dph:
        $config["\165\x70\x6c\x6f\x61\144\137\x70\x61\164\150"] = "\x2e\x2f\165\x70\x6c\157\141\144\163\x2f\x69\x6d\160\157\162\x74\x2f";
        goto pgp9z;
        WVnCy:
        $spreadsheet = $reader->load($file);
        goto IAk38;
        jAw8a:
        if (!($i < count($sheetData))) {
            goto bvC5U;
        }
        goto oBZeG;
        a2yyQ:
        $error = $this->upload->display_errors();
        goto RkZDZ;
        oBZeG:
        if (!($sheetData[$i][0] != null)) {
            goto GoDvN;
        }
        goto AZS09;
        hicww:
        $i++;
        goto FegA0;
        iekD4:
        bvC5U:
        goto Dsdzk;
        wN9L2:
        $i = 1;
        goto MwVNe;
        bHS92:
        goto Y6UJT;
        goto Xc_Gp;
        VGHDN:
        $file = $this->upload->data("\146\x75\154\x6c\x5f\160\x61\x74\150");
        goto kczyB;
        FegA0:
        goto nDUZA;
        goto iekD4;
        FnuhR:
        efW5a:
        goto WVnCy;
        spsTi:
        $this->load->library("\165\x70\154\157\x61\144", $config);
        goto ZKDcI;
        Lt8n8:
        $data = [];
        goto wN9L2;
        oO8lp:
        q0xQD:
        goto hicww;
        kczyB:
        $ext = $this->upload->data("\x66\x69\154\145\x5f\x65\x78\164");
        goto Ou6gf;
        Kvhda:
    }
    public function previewWord()
    {
        goto yWP9p;
        cLi6q:
        $i = 1;
        goto KbnUY;
        z7nPi:
        $data[] = ["\156\141\x6d\x61" => $cols->item(1)->nodeValue, "\x6e\151\x70" => $cols->item(2)->nodeValue, "\x6b\157\x64\145" => $cols->item(3)->nodeValue, "\x75\163\145\162\156\x61\155\x65" => $cols->item(4)->nodeValue, "\x70\x61\163\x73\x77\157\x72\x64" => $cols->item(5)->nodeValue];
        goto PghdG;
        b2XpV:
        $config["\141\154\x6c\157\x77\145\144\137\x74\x79\x70\145\x73"] = "\x64\157\143\170";
        goto x9_PT;
        Z9Xa2:
        die;
        goto X0VtA;
        Y0818:
        goto Tv026;
        goto RgJxg;
        Be4jP:
        $tables = $dom->getElementsByTagName("\x74\x61\142\154\x65");
        goto IySxd;
        VqWPx:
        echo $error;
        goto Z9Xa2;
        iVHlU:
        try {
            $htmlWriter->save("\x2e\57\x75\160\x6c\157\x61\x64\x73\x2f\164\x65\x6d\160\57\144\x6f\143\x2e\150\164\155\154");
        } catch (\PhpOffice\PhpWord\Exception\Exception $e) {
        }
        goto AqNYc;
        Gpb_s:
        echo json_encode($data);
        goto Y0818;
        PghdG:
        ap7aj:
        goto QW6IS;
        YCvMD:
        $this->load->library("\x75\160\x6c\157\x61\x64", $config);
        goto UEIie;
        KbnUY:
        FcaHj:
        goto jG8dh;
        t2Riv:
        $text = file_get_contents("\x2e\x2f\x75\160\x6c\x6f\141\144\163\x2f\164\145\155\x70\x2f\144\157\x63\56\150\164\x6d\x6c");
        goto vLNJh;
        T7fmc:
        $htmlWriter = new \PhpOffice\PhpWord\Writer\HTML($phpWord);
        goto iVHlU;
        I001S:
        $error = $this->upload->display_errors();
        goto VqWPx;
        eGo6h:
        $file = $this->upload->data("\x66\x75\154\154\137\x70\141\x74\x68");
        goto pD5UV;
        yWP9p:
        $config["\165\x70\154\x6f\141\144\x5f\160\x61\164\x68"] = "\56\x2f\x75\x70\x6c\x6f\x61\144\163\x2f\x69\x6d\160\x6f\162\x74\x2f";
        goto b2XpV;
        jG8dh:
        if (!($i < $rows->count())) {
            goto W9GoK;
        }
        goto Cx7rE;
        tIyMQ:
        W9GoK:
        goto Gpb_s;
        QW6IS:
        $i++;
        goto M_m4h;
        RgJxg:
        E0bwC:
        goto I001S;
        vLNJh:
        $dom = new DOMDocument();
        goto XeZmh;
        X0VtA:
        Tv026:
        goto T3An7;
        IySxd:
        $rows = $tables->item(0)->getElementsByTagName("\x74\162");
        goto cLi6q;
        rD3i0:
        $config["\x65\x6e\x63\162\x79\x70\x74\x5f\156\141\x6d\145"] = true;
        goto YCvMD;
        M_m4h:
        goto FcaHj;
        goto tIyMQ;
        drG7t:
        $data = [];
        goto Zplg7;
        x9_PT:
        $config["\155\x61\x78\137\163\x69\x7a\145"] = 2048;
        goto rD3i0;
        XeZmh:
        $dom->loadHTML($text);
        goto drG7t;
        AqNYc:
        unlink($file);
        goto t2Riv;
        pD5UV:
        $phpWord = \PhpOffice\PhpWord\IOFactory::load($file);
        goto T7fmc;
        UEIie:
        if (!$this->upload->do_upload("\165\160\154\x6f\141\144\x5f\x66\151\x6c\x65")) {
            goto E0bwC;
        }
        goto eGo6h;
        Cx7rE:
        $cols = $rows[$i]->getElementsByTagName("\164\144");
        goto z7nPi;
        Zplg7:
        $dom->preserveWhiteSpace = false;
        goto Be4jP;
        T3An7:
    }
    public function import($import_data = null)
    {
        goto rKYTO;
        aF4qU:
        $data["\151\x6d\160\157\162\x74"] = $import_data;
        goto NNmiL;
        vls_W:
        $data["\x74\160"] = $this->dashboard->getTahun();
        goto mweHQ;
        jpZNN:
        $setting = $this->dashboard->getSetting();
        goto yRFFY;
        t2naD:
        $data["\x73\155\x74\x5f\x61\143\164\x69\x76\145"] = $this->dashboard->getSemesterActive();
        goto pjQgJ;
        Azz7d:
        $this->load->view("\x6d\x61\163\164\x65\x72\x2f\x67\165\162\x75\57\x61\144\x64");
        goto nZWLl;
        nZWLl:
        $this->load->view("\x5f\164\145\155\160\x6c\x61\x74\145\163\57\144\141\163\x68\x62\157\141\x72\x64\57\x5f\x66\157\x6f\164\x65\x72");
        goto huvSQ;
        pjQgJ:
        $this->load->view("\137\x74\145\x6d\x70\154\141\x74\x65\x73\x2f\144\x61\x73\x68\142\x6f\141\x72\144\57\x5f\150\x65\141\x64\x65\x72", $data);
        goto Azz7d;
        bORMe:
        if (!($import_data != null)) {
            goto c4RqO;
        }
        goto aF4qU;
        yRFFY:
        $data = ["\x75\163\x65\162" => $user, "\152\x75\x64\165\x6c" => "\x47\x75\162\x75", "\x73\165\142\x6a\x75\144\x75\154" => "\124\141\x6d\142\141\150\x20\x44\141\x74\141\x20\107\x75\x72\x75", "\x6d\x61\x70\x65\154" => $this->master->getAllMapel(), "\160\162\x6f\x66\x69\154\145" => $this->dashboard->getProfileAdmin($user->id), "\x73\x65\164\164\151\156\147" => $setting];
        goto bORMe;
        rKYTO:
        $this->load->model("\115\141\x73\x74\145\162\x5f\155\x6f\x64\145\x6c", "\155\141\163\x74\x65\x72");
        goto Zd2X7;
        Zd2X7:
        $this->load->model("\104\141\x73\x68\142\157\141\x72\x64\x5f\x6d\x6f\x64\x65\x6c", "\x64\x61\163\150\142\x6f\x61\x72\144");
        goto Zf7AW;
        NNmiL:
        c4RqO:
        goto vls_W;
        mweHQ:
        $data["\x74\x70\137\x61\143\164\x69\x76\145"] = $this->dashboard->getTahunActive();
        goto CdyAH;
        CdyAH:
        $data["\163\155\x74"] = $this->dashboard->getSemester();
        goto t2naD;
        Zf7AW:
        $user = $this->ion_auth->user()->row();
        goto jpZNN;
        huvSQ:
    }
    public function preview()
    {
        goto vQEKT;
        k008R:
        $i++;
        goto U3HlQ;
        pskGK:
        $i = 1;
        goto DJCzv;
        ekGH7:
        die;
        goto XOZOz;
        Q0OCK:
        unlink($file);
        goto T28ma;
        pUfp6:
        if (!$this->upload->do_upload("\165\160\x6c\157\141\144\x5f\x66\x69\154\x65")) {
            goto K6VxQ;
        }
        goto X3Mfb;
        bq0KT:
        $spreadsheet = $reader->load($file);
        goto w1CCL;
        ZFC4s:
        $config["\x6d\141\170\x5f\163\x69\172\145"] = 2048;
        goto x4CVA;
        XOZOz:
        L_e2a:
        goto X1BQC;
        PsrQX:
        $config["\x61\154\x6c\157\167\x65\144\x5f\x74\x79\160\145\163"] = "\x78\154\x73\174\170\154\163\x78\174\x63\163\166";
        goto ZFC4s;
        io1y0:
        $error = $this->upload->display_errors();
        goto WsntO;
        X3Mfb:
        $file = $this->upload->data("\146\165\x6c\x6c\x5f\x70\141\164\x68");
        goto KNt4H;
        KNt4H:
        $ext = $this->upload->data("\x66\151\x6c\145\137\x65\x78\164");
        goto MJqxM;
        WsntO:
        echo $error;
        goto ekGH7;
        vB3wv:
        K6VxQ:
        goto io1y0;
        vQEKT:
        $config["\165\x70\x6c\x6f\x61\x64\x5f\x70\x61\x74\x68"] = "\x2e\57\165\x70\x6c\x6f\x61\144\x73\57\x69\x6d\160\157\162\164\57";
        goto PsrQX;
        aQ1ju:
        NwMnU:
        goto k008R;
        w1CCL:
        $sheetData = $spreadsheet->getActiveSheet()->toArray();
        goto qfS_D;
        WIyv1:
        $data[] = ["\x6e\x69\160" => $sheetData[$i][0], "\x6e\141\155\141\x5f\x67\165\x72\165" => $sheetData[$i][1], "\x65\155\141\x69\x6c" => $sheetData[$i][2], "\x6d\141\160\x65\154\x5f\x69\x64" => $sheetData[$i][3]];
        goto aQ1ju;
        MJqxM:
        switch ($ext) {
            case "\x2e\x78\154\163\170":
                $reader = new \PhpOffice\PhpSpreadsheet\Reader\Xlsx();
                goto SrxPc;
            case "\56\170\x6c\163":
                $reader = new \PhpOffice\PhpSpreadsheet\Reader\Xls();
                goto SrxPc;
            case "\x2e\143\163\x76":
                $reader = new \PhpOffice\PhpSpreadsheet\Reader\Csv();
                goto SrxPc;
            default:
                echo "\165\x6e\x6b\156\x6f\x77\156\40\146\151\154\x65\x20\x65\x78\164";
                die;
        }
        goto zNYO8;
        U3HlQ:
        goto H96VF;
        goto LQjSv;
        T28ma:
        $this->import($data);
        goto DcQ0M;
        tIwwp:
        if (!($i < count($sheetData))) {
            goto AtYoh;
        }
        goto WIyv1;
        QwwCA:
        $this->load->library("\x75\160\154\157\x61\144", $config);
        goto pUfp6;
        fDkbF:
        SrxPc:
        goto bq0KT;
        qfS_D:
        $data = [];
        goto pskGK;
        DcQ0M:
        goto L_e2a;
        goto vB3wv;
        DJCzv:
        H96VF:
        goto tIwwp;
        x4CVA:
        $config["\x65\156\x63\x72\171\x70\164\x5f\x6e\141\155\145"] = true;
        goto QwwCA;
        LQjSv:
        AtYoh:
        goto Q0OCK;
        zNYO8:
        oi2MK:
        goto fDkbF;
        X1BQC:
    }
    public function do_import()
    {
        goto W7V6I;
        BbjB3:
        foreach ($input as $d) {
            $data[] = ["\x6e\141\155\141\x5f\147\x75\162\165" => trim($d->nama), "\156\x69\160" => trim($d->nip), "\165\163\x65\162\156\x61\155\145" => trim($d->username), "\x70\x61\x73\x73\x77\157\162\144" => trim($d->password), "\146\157\164\x6f" => "\165\x70\x6c\157\141\144\163\x2f\160\162\x6f\146\x69\154\x65\163\x2f" . trim($d->nip) . "\56\152\x70\147"];
            CrQyR:
        }
        goto ID_wO;
        tgdqr:
        $this->output->set_content_type("\141\x70\x70\x6c\151\143\141\164\x69\157\x6e\57\x6a\163\x6f\156")->set_output($save);
        goto Jx93w;
        W7V6I:
        $this->load->model("\x4d\141\x73\164\145\x72\x5f\x6d\157\x64\x65\154", "\x6d\x61\x73\164\x65\x72");
        goto ZI5HP;
        ZI5HP:
        $input = json_decode($this->input->post("\147\x75\x72\x75", true));
        goto eVCSf;
        omLX3:
        $save = $this->master->create("\x6d\x61\x73\164\x65\x72\137\147\165\162\165", $data, true);
        goto tgdqr;
        eVCSf:
        $data = [];
        goto BbjB3;
        ID_wO:
        F9Rfl:
        goto omLX3;
        Jx93w:
    }
    public function editJabatan($id)
    {
        goto KCvJc;
        Qe2Nr:
        $data["\164\160\137\x61\143\164\x69\166\x65"] = $tp;
        goto yjuY1;
        Le1bR:
        $guru_before->mapel_kelas = json_decode(json_encode(unserialize($guru_before->mapel_kelas)));
        goto nhAS2;
        KCvJc:
        $this->load->model("\x44\162\x6f\160\x64\157\x77\x6e\x5f\x6d\157\144\145\154", "\x64\162\x6f\x70\x64\x6f\x77\x6e");
        goto No6gi;
        XWFFS:
        $data["\x67\x75\162\165"] = $guru;
        goto RmzNw;
        v9nJc:
        $data["\x65\153\163\x6b\165\154"] = $this->dropdown->getAllEkskul();
        goto fe52A;
        wdLDH:
        $data["\x6d\x61\x70\145\154\x73"] = $this->dropdown->getAllMapel();
        goto Mdo_M;
        f_oYz:
        $data["\x6b\x65\154\141\x73\x73"] = $this->dropdown->getAllKelas($tp->id_tp, $smt->id_smt);
        goto wdLDH;
        VZ4CI:
        $data["\147\x72\157\x75\160\163"] = $this->ion_auth->groups()->result();
        goto ufGSK;
        dCiov:
        $group = $this->ion_auth->get_users_groups($user->id)->row()->name;
        goto TqMh9;
        TlRID:
        $user = $this->ion_auth->user()->row();
        goto DhL5a;
        dOAmE:
        $this->load->view("\x5f\x74\145\155\160\154\141\x74\145\x73\x2f\144\141\163\150\x62\157\141\162\144\x2f\x5f\x66\157\157\164\x65\x72");
        goto FsGEA;
        By_Ki:
        $tp = $this->dashboard->getTahunActive();
        goto lnGdZ;
        FwdP1:
        $data["\x62\x65\x66\157\162\145"] = ["\x6b\145\x6c\141\x73\x73" => $this->dropdown->getAllKelas($tp2, $smt2), "\147\165\162\x75" => $guru_before];
        goto xn5t2;
        ufGSK:
        FNtn2:
        goto f_oYz;
        iNl0Q:
        $tp2 = $smt->id_smt == "\x31" ? $tp->id_tp - 1 : $tp->id_tp;
        goto veyjU;
        No6gi:
        $this->load->model("\x4d\x61\163\164\x65\162\137\155\x6f\144\x65\x6c", "\155\x61\x73\164\145\x72");
        goto XSULl;
        DhL5a:
        $data = ["\165\x73\145\162" => $user, "\x6a\165\144\x75\x6c" => "\x4a\141\x62\x61\x74\x61\156\40\107\165\x72\165", "\163\x75\142\152\x75\x64\x75\154" => "\105\x64\151\164\x20\112\141\142\x61\x74\141\x6e\40\107\165\162\x75", "\x70\x72\x6f\x66\x69\x6c\145" => $this->dashboard->getProfileAdmin($user->id), "\163\x65\164\164\151\156\x67" => $this->dashboard->getSetting()];
        goto XWFFS;
        u0Wzq:
        $data["\163\x6d\x74\x5f\x61\143\x74\x69\x76\x65"] = $smt;
        goto dCiov;
        xn5t2:
        $this->load->view("\x5f\x74\145\155\x70\154\141\x74\x65\163\57\144\x61\163\150\x62\x6f\x61\x72\144\x2f\137\x68\x65\x61\x64\145\x72", $data);
        goto cBLn1;
        fe52A:
        $data["\x6b\x75\x72"] = $smt;
        goto pNB0r;
        cBLn1:
        $this->load->view("\x6d\x61\x73\x74\x65\162\x2f\x67\165\x72\x75\x2f\x65\x64\x69\164\x6d\x61\x70\x65\x6c");
        goto dOAmE;
        RmzNw:
        $data["\164\x70"] = $this->dashboard->getTahun();
        goto Qe2Nr;
        yjuY1:
        $data["\163\x6d\164"] = $this->dashboard->getSemester();
        goto u0Wzq;
        Mdo_M:
        $data["\154\145\166\145\154\163"] = $this->dropdown->getAllLevelGuru();
        goto v9nJc;
        lnGdZ:
        $smt = $this->dashboard->getSemesterActive();
        goto APQ0T;
        veyjU:
        $guru_before = $this->master->getJabatanGuru($id, $tp2, $smt2);
        goto Le1bR;
        nhAS2:
        $guru_before->ekstra_kelas = json_decode(json_encode(unserialize($guru_before->ekstra_kelas)));
        goto FwdP1;
        pNB0r:
        $smt2 = $smt->id_smt == "\x31" ? "\62" : "\61";
        goto iNl0Q;
        TqMh9:
        if (!($group === "\141\144\155\x69\x6e")) {
            goto FNtn2;
        }
        goto VZ4CI;
        XSULl:
        $this->load->model("\104\x61\x73\150\142\x6f\x61\x72\144\x5f\x6d\x6f\x64\x65\x6c", "\144\141\163\150\142\157\x61\162\x64");
        goto By_Ki;
        APQ0T:
        $guru = $this->master->getJabatanGuru($id, $tp->id_tp, $smt->id_smt);
        goto TlRID;
        FsGEA:
    }
    public function saveJabatan()
    {
        goto vX2E9;
        VKaFo:
        $res["\163\164\141\x74\165\x73"] = FALSE;
        goto oD_xb;
        dyKrt:
        $tmp_nama = $kelass2[$kelasmapel];
        goto TowGZ;
        omBiT:
        $j = 0;
        goto ih_MW;
        oLel3:
        if ($this->input->post()) {
            goto mSS_y;
        }
        goto VKaFo;
        rGzMT:
        wMxNR:
        goto lfnJ1;
        WID6b:
        goto St_uA;
        goto USIJ0;
        hGHEi:
        $kelass2 = $this->dropdown->getAllKelas($tp2, $smt2);
        goto XdIXA;
        K000F:
        $kelas_wali = $kelass1[$tmp_wali];
        goto xxOEa;
        mb5Xm:
        $kelas[] = ["\153\x65\x6c\141\x73" => $kelasmapel];
        goto mfwWn;
        jwBCs:
        b3TA_:
        goto NJDqA;
        d0csX:
        $smt = $this->master->getSemesterActive();
        goto yIGTM;
        sDPrE:
        $row_kelas = count($this->input->post("\153\145\x6c\141\163\x65\153\x73\164\x72\141" . $ekstra, true));
        goto E8sfK;
        Vd0aO:
        $ekstras = [];
        goto H26xg;
        yIGTM:
        $smt2 = $smt->id_smt == "\x31" ? "\62" : "\x31";
        goto DLesI;
        TcIFW:
        if (!isset($kelass2[$kelasmapel])) {
            goto Y4n65;
        }
        goto dyKrt;
        JIkc4:
        $data = ["\x69\144\x5f\x6a\141\142\141\x74\141\156\137\147\x75\162\x75" => $id_guru . $tp->id_tp . $smt->id_smt, "\x69\144\x5f\147\x75\162\x75" => $id_guru, "\x69\144\137\x6a\141\x62\x61\164\141\156" => $id_level, "\151\144\137\x6b\x65\154\x61\x73" => $kelas_wali == null ? 0 : $kelas_wali, "\155\141\160\145\x6c\137\x6b\x65\x6c\x61\163" => $kelas_mapel_guru, "\145\153\163\x74\x72\x61\x5f\153\145\154\x61\x73" => $kelas_ekstra_guru, "\151\x64\137\164\160" => $tp->id_tp, "\x69\144\x5f\163\155\164" => $smt->id_smt];
        goto oLel3;
        TObx9:
        $res["\163\164\x61\164\165\x73"] = $update;
        goto Id9rq;
        lSqw2:
        $j = 0;
        goto enw4x;
        kf05k:
        $kelas_wali = $wali;
        goto cquhu;
        K1Kwg:
        IsUB_:
        goto PxCev;
        Id9rq:
        $res["\155\x73\x67"] = $update ? "\x44\x61\x74\141\x20\142\x65\162\x68\141\x73\151\154\x20\x64\151\163\x69\x6d\160\x61\x6e" : "\x47\x61\147\141\x6c\x20\155\x65\156\x79\151\x6d\160\141\x6e\40\x64\141\x74\x61";
        goto kDaj3;
        OJFUC:
        $id_guru = $this->input->post("\151\144\x5f\147\x75\162\x75", true);
        goto AHszU;
        yfXNL:
        if (!$check) {
            goto Oj_gs;
        }
        goto sDPrE;
        LGMIL:
        $kelasekstra = $this->input->post("\x6b\x65\x6c\x61\x73\x65\153\x73\164\162\141" . $ekstra . "\133" . $j . "\x5d", true);
        goto hlTN8;
        QwBcA:
        $kelass1 = $this->kelas->getNamaKelasByNama($tp->id_tp, $smt->id_smt);
        goto hGHEi;
        aV1ST:
        $i = 0;
        goto jwBCs;
        Iw2DR:
        $row_ekstras = count($this->input->post("\x65\x6b\x73\x74\162\141", true));
        goto NN6Dc;
        USIJ0:
        MotGn:
        goto KNlAU;
        qouNQ:
        goto ThLwO;
        goto oGQn2;
        ibrxG:
        $row_mapels = count($this->input->post("\155\x61\x70\x65\154", true));
        goto aV1ST;
        whIA2:
        M_FFI:
        goto TcIFW;
        tLbSl:
        Oj_gs:
        goto gfqsV;
        RNZn0:
        $tp = $this->master->getTahunActive();
        goto d0csX;
        enw4x:
        St_uA:
        goto Xq6js;
        Fq69h:
        $kelas = [];
        goto lSqw2;
        mfwWn:
        goto Tal5w;
        goto whIA2;
        mfwe3:
        $i++;
        goto Yh8Nd;
        gfqsV:
        oZqOr:
        goto mfwe3;
        tucPT:
        $j++;
        goto qouNQ;
        AHszU:
        $id_level = $this->input->post("\x6c\145\x76\145\154", true);
        goto tTgjR;
        pThNe:
        Tal5w:
        goto cwvqU;
        xxOEa:
        bJfp6:
        goto diAiG;
        lEtyQ:
        mSS_y:
        goto ZQXS8;
        Xq6js:
        if (!($j <= $row_kelas)) {
            goto MotGn;
        }
        goto pP4jS;
        NJDqA:
        if (!($i <= $row_mapels)) {
            goto DJwW6;
        }
        goto WqW0n;
        cwvqU:
        oP0qq:
        goto EU1F9;
        MS9cw:
        $check = $this->input->post("\153\x65\x6c\141\x73\x65\x6b\163\x74\x72\x61" . $ekstra, true);
        goto yfXNL;
        j75tK:
        $row_kelas = count($this->input->post("\x6b\x65\154\x61\163\x6d\x61\x70\145\x6c" . $mapel, true));
        goto Fq69h;
        yqBCt:
        $i++;
        goto gCt5x;
        EU1F9:
        $j++;
        goto WID6b;
        i10iW:
        $this->output_json($res);
        goto HOePa;
        PxCev:
        H2aSJ:
        goto mlKzo;
        mlKzo:
        lqQs2:
        goto tucPT;
        aC013:
        $this->load->model("\115\x61\163\164\145\x72\137\x6d\x6f\x64\x65\154", "\155\x61\x73\164\x65\x72");
        goto r8gnV;
        Yh8Nd:
        goto QGXXT;
        goto rGzMT;
        tTgjR:
        $wali = $this->input->post("\153\x65\x6c\141\163\x5f\167\141\x6c\x69", true);
        goto tauXJ;
        o3SU1:
        if ($copy) {
            goto M_FFI;
        }
        goto mb5Xm;
        HX3Sg:
        mTimx:
        goto PeqMF;
        L4Siz:
        $kelas_ekstra_guru = serialize($ekstras);
        goto JIkc4;
        tANwy:
        if (!$check) {
            goto mTimx;
        }
        goto j75tK;
        ayn22:
        gO68A:
        goto Nibja;
        Mw5oJ:
        if (!isset($kelass2[$kelasekstra])) {
            goto IsUB_;
        }
        goto Sq5YM;
        ynB0e:
        rodWD:
        goto Mw5oJ;
        hlTN8:
        if ($copy) {
            goto rodWD;
        }
        goto wlxCZ;
        lfnJ1:
        DiajJ:
        goto L4Siz;
        vX2E9:
        $this->load->model("\x44\162\x6f\160\x64\x6f\x77\x6e\x5f\x6d\157\144\145\154", "\144\162\x6f\x70\x64\x6f\x77\156");
        goto aC013;
        cquhu:
        goto bJfp6;
        goto ayn22;
        ED5vn:
        $nama_ekstra = $this->input->post("\x6e\141\155\141\137\x65\153\163\164\162\141" . $ekstra, true);
        goto MS9cw;
        W3pQk:
        DJwW6:
        goto XrEPS;
        bu76A:
        LRVHD:
        goto PlR4I;
        REaIA:
        if (!$check_ekstra) {
            goto DiajJ;
        }
        goto Iw2DR;
        oGQn2:
        zB3ge:
        goto Z8_1I;
        C9g7L:
        if (!($j <= $row_kelas)) {
            goto zB3ge;
        }
        goto LGMIL;
        P1pRW:
        goto rrYze;
        goto lEtyQ;
        Nibja:
        $tmp_wali = $kelass2[$wali];
        goto K000F;
        pP4jS:
        $kelasmapel = $this->input->post("\x6b\x65\x6c\x61\163\x6d\141\160\145\x6c" . $mapel . "\133" . $j . "\x5d", true);
        goto o3SU1;
        NN6Dc:
        $i = 0;
        goto FG6C3;
        Fp3kF:
        $check = $this->input->post("\153\145\154\141\163\155\x61\160\145\x6c" . $mapel, true);
        goto tANwy;
        oD_xb:
        $res["\155\163\147"] = "\105\162\162\157\162\40\160\x6f\163\x74\40\144\x61\164\x61";
        goto P1pRW;
        tauXJ:
        $copy = $this->input->post("\143\157\x70\171", true) != null;
        goto RNZn0;
        H26xg:
        $check_ekstra = $this->input->post("\145\x6b\163\164\162\x61", true);
        goto REaIA;
        gCt5x:
        goto b3TA_;
        goto W3pQk;
        DLesI:
        $tp2 = $smt->id_smt == "\61" ? $tp->id_tp - 1 : $tp->id_tp;
        goto QwBcA;
        BWGzb:
        if (!($i <= $row_ekstras)) {
            goto wMxNR;
        }
        goto maiYi;
        PeqMF:
        IR4wc:
        goto yqBCt;
        r8gnV:
        $this->load->model("\113\145\x6c\141\163\x5f\x6d\157\x64\145\154", "\153\x65\154\x61\x73");
        goto OJFUC;
        kAOgC:
        $check_mapel = $this->input->post("\x6d\x61\160\145\154", true);
        goto UeGK9;
        ih_MW:
        ThLwO:
        goto C9g7L;
        XdIXA:
        if ($copy) {
            goto gO68A;
        }
        goto kf05k;
        wlxCZ:
        $kelas[] = ["\x6b\x65\x6c\141\x73" => $kelasekstra];
        goto ZvfBO;
        kDaj3:
        rrYze:
        goto i10iW;
        ZQXS8:
        $update = $this->db->replace("\152\x61\x62\141\164\x61\x6e\137\147\165\162\x75", $data);
        goto TObx9;
        diAiG:
        $mapels = [];
        goto kAOgC;
        UeGK9:
        if (!$check_mapel) {
            goto HccDc;
        }
        goto ibrxG;
        Sq5YM:
        $tmp_nama2 = $kelass2[$kelasekstra];
        goto tgYRz;
        trYNe:
        $kelas[] = ["\153\145\x6c\x61\163" => $kelass1[$tmp_nama]];
        goto bu76A;
        KNlAU:
        $mapels[] = ["\x69\144\x5f\x6d\x61\x70\x65\154" => $mapel, "\x6e\x61\x6d\141\x5f\x6d\x61\x70\x65\154" => $nama_mapel, "\x6b\145\154\x61\163\x5f\x6d\141\160\x65\154" => $kelas];
        goto HX3Sg;
        WqW0n:
        $mapel = $this->input->post("\x6d\x61\160\x65\x6c\x5b" . $i . "\135", true);
        goto vtRTY;
        ZvfBO:
        goto H2aSJ;
        goto ynB0e;
        PlR4I:
        Y4n65:
        goto pThNe;
        tgYRz:
        $kelas[] = ["\x6b\x65\154\x61\163" => $kelass1[$tmp_nama2]];
        goto K1Kwg;
        Z8_1I:
        $ekstras[] = ["\151\x64\x5f\x65\x6b\x73\164\x72\141" => $ekstra, "\x6e\141\155\x61\x5f\x65\x6b\x73\164\x72\x61" => $nama_ekstra, "\x6b\x65\x6c\141\163\x5f\145\153\163\x74\x72\141" => $kelas];
        goto tLbSl;
        YCell:
        $kelas_mapel_guru = serialize($mapels);
        goto Vd0aO;
        E8sfK:
        $kelas = [];
        goto omBiT;
        vtRTY:
        $nama_mapel = $this->input->post("\x6e\x61\155\141\137\155\x61\160\x65\x6c" . $mapel, true);
        goto Fp3kF;
        TowGZ:
        if (!isset($kelass1[$tmp_nama])) {
            goto LRVHD;
        }
        goto trYNe;
        maiYi:
        $ekstra = $this->input->post("\145\x6b\x73\x74\162\141\x5b" . $i . "\x5d", true);
        goto ED5vn;
        XrEPS:
        HccDc:
        goto YCell;
        FG6C3:
        QGXXT:
        goto BWGzb;
        HOePa:
    }
    public function getDataKelas()
    {
        goto PQT3c;
        Vi7mF:
        $tp = $this->dashboard->getTahunActive();
        goto YNXmK;
        WRELz:
        $mapel_terisi = [];
        goto eFUV5;
        sneB0:
        $data["\x6d\x70\154\x5f\x74\145\162\x69\x73\151"] = $mapel_terisi;
        goto o_GDu;
        YppuA:
        $jbtn = [];
        goto IWRp0;
        NpCIa:
        $this->load->model("\125\x73\145\162\x73\137\x6d\x6f\x64\145\x6c", "\x75\163\x65\162\163");
        goto Vi7mF;
        k3NLj:
        $this->output_json($data);
        goto bG9la;
        Ia_XJ:
        $data["\153\x65\154\x61\x73"] = $this->users->getKelas($tp->id_tp, $smt->id_smt);
        goto k3NLj;
        tbySk:
        $data["\x6a\141\142\x61\164\141\156"] = $jbtn;
        goto sneB0;
        vzfaJ:
        $this->load->model("\x44\x61\x73\150\142\157\x61\162\x64\137\x6d\x6f\144\145\154", "\x64\141\x73\150\x62\x6f\x61\x72\144");
        goto NpCIa;
        PQT3c:
        $this->load->model("\115\141\x73\164\145\162\x5f\x6d\x6f\x64\145\154", "\155\x61\163\164\x65\162");
        goto vzfaJ;
        VaDl9:
        crsZc:
        goto tbySk;
        IWRp0:
        foreach ($jabatans as $jabatan) {
            goto PwcHv;
            jIjy_:
            Fm1x0:
            goto QXode;
            gdNdx:
            foreach ($eks_kls as $eks) {
                goto SWluT;
                HWEgC:
                $ekstra_terisi[$eks->id_ekstra][$jabatan->id_guru] = ["\151\x64\137\x67\165\162\x75" => $jabatan->id_guru, "\x67\x75\x72\x75" => $jabatan->nama_guru, "\x6b\145\154\141\x73" => $klse];
                goto Mcr7j;
                SWluT:
                $klse = [];
                goto Qx8vK;
                Qx8vK:
                foreach ($eks->kelas_ekstra as $ek) {
                    $klse[] = $ek->kelas;
                    YGOZo:
                }
                goto SQur3;
                Mcr7j:
                IJUv1:
                goto Muwrf;
                SQur3:
                dXGol:
                goto HWEgC;
                Muwrf:
            }
            goto jIjy_;
            JhIM_:
            K7uTS:
            goto gdNdx;
            rAvGg:
            $eks_kls = $jabatan->ekstra_kelas = json_decode(json_encode(unserialize($jabatan->ekstra_kelas)));
            goto N0caA;
            N0caA:
            foreach ($mpl_kls as $mpls) {
                goto nXXxL;
                jpA0D:
                foreach ($mpls->kelas_mapel as $mpl) {
                    $klss[] = $mpl->kelas;
                    s34S4:
                }
                goto jkTtS;
                jkTtS:
                Iy5pb:
                goto u4Ghs;
                nXXxL:
                $klss = [];
                goto jpA0D;
                u4Ghs:
                $mapel_terisi[$mpls->id_mapel][$jabatan->id_guru] = ["\x69\144\x5f\x67\165\162\x75" => $jabatan->id_guru, "\x67\x75\x72\165" => $jabatan->nama_guru, "\x6b\x65\x6c\141\163" => $klss];
                goto BeAE9;
                BeAE9:
                rfHqg:
                goto TZVrr;
                TZVrr:
            }
            goto JhIM_;
            PwcHv:
            $mpl_kls = $jabatan->mapel_kelas = json_decode(json_encode(unserialize($jabatan->mapel_kelas)));
            goto rAvGg;
            lwtG3:
            J72mB:
            goto EVH6f;
            QXode:
            $jbtn[$jabatan->id_jabatan][$jabatan->id_kelas] = ["\156\141\155\x61" => $jabatan->nama_guru, "\x69\144" => $jabatan->id_guru];
            goto lwtG3;
            EVH6f:
        }
        goto VaDl9;
        YNXmK:
        $smt = $this->dashboard->getSemesterActive();
        goto evYBP;
        evYBP:
        $jabatans = $this->master->getGuruMapel($tp->id_tp, $smt->id_smt);
        goto WRELz;
        eFUV5:
        $ekstra_terisi = [];
        goto YppuA;
        o_GDu:
        $data["\x65\153\x73\x5f\164\145\x72\151\163\x69"] = $ekstra_terisi;
        goto Ia_XJ;
        bG9la:
    }
    public function addjabatan()
    {
        goto uFgBJ;
        OOO1x:
        $insert = ["\151\144\137\154\x65\166\145\154" => $id, "\154\145\166\145\154" => $this->input->post("\x6c\x65\x76\x65\154", true)];
        goto LKmWK;
        hvsRc:
        $data = ["\x73\x75\x63\143\145\x73\163" => $replaced, "\155\163\x67" => $replaced ? "\x53\x75\x6b\163\145\x73\x20" . $s_mode . "\x20\152\141\x62\x61\164\141\156" : "\107\141\147\141\x6c\x20" . $s_mode . "\x20\152\141\x62\x61\x74\141\156"];
        goto VyXQO;
        plUpy:
        $replaced = $this->db->delete("\154\145\x76\145\x6c\137\147\165\x72\x75", "\151\144\x5f\x6c\x65\x76\145\x6c\75" . $id);
        goto PG9BC;
        VyXQO:
        $this->output_json($data);
        goto TTEuG;
        SgnNg:
        QuHyP:
        goto hvsRc;
        xDo0j:
        TZutf:
        goto OOO1x;
        PG9BC:
        goto QuHyP;
        goto xDo0j;
        LKmWK:
        $replaced = $this->db->replace("\x6c\x65\x76\x65\154\137\x67\165\x72\165", $insert);
        goto SgnNg;
        gai4G:
        $id = $this->input->post("\151\x64\x5f\x6c\x65\166\145\x6c", true);
        goto UitpF;
        GsbOw:
        if ($mode == "\x31") {
            goto TZutf;
        }
        goto plUpy;
        UitpF:
        $s_mode = $mode == "\61" ? "\x6d\x65\156\x79\151\155\160\141\156" : "\x6d\145\156\147\150\x61\x70\x75\163";
        goto GsbOw;
        uFgBJ:
        $mode = $this->input->post("\155\157\144\x65", true);
        goto gai4G;
        TTEuG:
    }
}

Function Calls

None

Variables

None

Stats

MD5 f6226b5dd30faf48ca1ce4a004cf104c
Eval Count 0
Decode Time 177 ms