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 Guruview extends CI_Controller 
{ 
    public function __construct() 
    { 
        goto JQVV3; 
        oAoZQ: 
        $this->load->model("Master_model", "master"); 
        goto LSRIR; 
        fwyEY: 
        if ($this->ion_auth->logged_in()) { 
            goto Auouy; 
        } 
        goto UhMSI; 
        AOM09: 
        Auouy: 
        goto h4RMD; 
        SA3Oj: 
        $this->load->model("Dashboard_model", "dashboard"); 
        goto oAoZQ; 
        xHzM1: 
        $this->load->library(["datatables", "form_validation"]); 
        goto kl9bk; 
        UhMSI: 
        redirect("auth"); 
        goto AOM09; 
        h4RMD: 
        $this->load->library("upload"); 
        goto xHzM1; 
        kl9bk: 
        $this->form_validation->set_error_delimiters('', ''); 
        goto SA3Oj; 
        JQVV3: 
        parent::__construct(); 
        goto fwyEY; 
        LSRIR: 
    } 
    public function output_json($data, $encode = true) 
    { 
        goto Cg034; 
        Cg034: 
        if (!$encode) { 
            goto t4oKq; 
        } 
        goto omSsi; 
        NLfWH: 
        $this->output->set_content_type("application/json")->set_output($data); 
        goto vuEkk; 
        omSsi: 
        $data = json_encode($data); 
        goto l9OEn; 
        l9OEn: 
        t4oKq: 
        goto NLfWH; 
        vuEkk: 
    } 
    public function index() 
    { 
        goto RBA3P; 
        PwCPG: 
        $data["smt_active"] = $smt; 
        goto zYO4f; 
        XQ4fz: 
        redirect("auth"); 
        goto T_e0N; 
        XGnYz: 
        $user = $this->ion_auth->user()->row(); 
        goto yaE6M; 
        guaOo: 
        $this->load->view("members/guru/templates/footer"); 
        goto l1dsK; 
        SJQr3: 
        $data["smt"] = $this->dashboard->getSemester(); 
        goto PwCPG; 
        t_p4G: 
        if (!($user == null)) { 
            goto eSbf_; 
        } 
        goto XQ4fz; 
        zYO4f: 
        $data["guru"] = $guru; 
        goto kutye; 
        z1AaD: 
        $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 NVOH2; 
        RBA3P: 
        $tp = $this->master->getTahunActive(); 
        goto rUtDu; 
        iisX2: 
        $data["tp"] = $this->dashboard->getTahun(); 
        goto bLjaO; 
        NVOH2: 
        $data["input_profile"] = json_decode(json_encode($inputsProfile), FALSE); 
        goto b2KX3; 
        rUtDu: 
        $smt = $this->master->getSemesterActive(); 
        goto XGnYz; 
        k0RfK: 
        $this->load->view("members/guru/templates/header", $data); 
        goto Nb8iv; 
        Nb8iv: 
        $this->load->view("members/guru/profile"); 
        goto guaOo; 
        b2KX3: 
        $data["input_alamat"] = json_decode(json_encode($inputsAlamat), FALSE); 
        goto k0RfK; 
        yaE6M: 
        $guru = $this->dashboard->getDetailGuruByUserId($user->id, $tp->id_tp, $smt->id_smt); 
        goto t_p4G; 
        FrF6v: 
        $data = ["user" => $user, "judul" => "Profile", "subjudul" => "Profile Saya", "setting" => $this->dashboard->getSetting()]; 
        goto iisX2; 
        bLjaO: 
        $data["tp_active"] = $tp; 
        goto SJQr3; 
        kutye: 
        $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 z1AaD; 
        T_e0N: 
        eSbf_: 
        goto FrF6v; 
        l1dsK: 
    } 
    public function save() 
    { 
        goto GI0Nb; 
        sLjid: 
        idJ52: 
        goto i2sEK; 
        Xk2KL: 
        $this->output_json(["status" => false]); 
        goto oFC8H; 
        q4p_G: 
        $no_ktp = $this->input->post("no_ktp", true); 
        goto fO1h8; 
        t5zSJ: 
        $kecamatan = $this->input->post("kecamatan", true); 
        goto tgF3w; 
        tTPTC: 
        if ($action) { 
            goto idJ52; 
        } 
        goto Xk2KL; 
        zdIow: 
        $provinsi = $this->input->post("provinsi", true); 
        goto tkAc4; 
        nFv1F: 
        $u_nip = $dbdata->nip === $nip ? '' : "|is_unique[master_guru.nip]"; 
        goto SX8XM; 
        PHl7P: 
        tnEHO: 
        goto CAYbJ; 
        i2sEK: 
        $this->output_json(["status" => true]); 
        goto ZkMDN; 
        ZuxeC: 
        $dbdata = $this->master->getGuruById($id_guru, $tp->id_tp, $smt->id_smt); 
        goto nFv1F; 
        Aww7g: 
        $no_hp = $this->input->post("no_hp", true); 
        goto jSr0M; 
        GI0Nb: 
        $id_guru = $this->input->post("id_guru", true); 
        goto vLKPO; 
        sxpsV: 
        $this->output_json($data); 
        goto JXmzO; 
        AgaqZ: 
        if ($this->form_validation->run() == FALSE) { 
            goto tnEHO; 
        } 
        goto xKVs3; 
        q7D57: 
        goto OLNJy; 
        goto PHl7P; 
        jSr0M: 
        $agama = $this->input->post("agama", true); 
        goto q4p_G; 
        vLKPO: 
        $nip = $this->input->post("nip", true); 
        goto Kk8I1; 
        XHTdE: 
        $alamat_jalan = $this->input->post("alamat_jalan", true); 
        goto t5zSJ; 
        OTFQE: 
        $tp = $this->master->getTahunActive(); 
        goto JFk9X; 
        xKVs3: 
        $input = ["nip" => $nip, "nama_guru" => $nama_guru, "email" => $email, "jenis_kelamin" => $jenis_kelamin, "no_hp" => $no_hp, "agama" => $agama, "no_ktp" => $no_ktp, "tempat_lahir" => $tempat_lahir, "tgl_lahir" => $this->strContains($tgl_lahir, "0000-") ? null : $tgl_lahir, "alamat_jalan" => $alamat_jalan, "kecamatan" => $kecamatan, "kabupaten" => $kabupaten, "provinsi" => $provinsi, "kode_pos" => $kode_pos]; 
        goto wyPOn; 
        wyPOn: 
        $action = $this->master->update("master_guru", $input, "id_guru", $id_guru); 
        goto tTPTC; 
        tgF3w: 
        $kabupaten = $this->input->post("kabupaten", true); 
        goto zdIow; 
        PSdVh: 
        $tgl_lahir = $this->input->post("tgl_lahir", true); 
        goto XHTdE; 
        BSA68: 
        $this->form_validation->set_rules("nama_guru", "Nama Guru", "required|trim|min_length[1]|max_length[50]"); 
        goto AgaqZ; 
        ZkMDN: 
        O5jlC: 
        goto q7D57; 
        oLhyX: 
        $jenis_kelamin = $this->input->post("jenis_kelamin", true); 
        goto Aww7g; 
        oFC8H: 
        goto O5jlC; 
        goto sLjid; 
        JFk9X: 
        $smt = $this->master->getSemesterActive(); 
        goto ZuxeC; 
        mUiSL: 
        $email = $this->input->post("email", true); 
        goto oLhyX; 
        JXmzO: 
        OLNJy: 
        goto kgVQu; 
        tkAc4: 
        $kode_pos = $this->input->post("kode_pos", true); 
        goto OTFQE; 
        fO1h8: 
        $tempat_lahir = $this->input->post("tempat_lahir", true); 
        goto PSdVh; 
        Kk8I1: 
        $nama_guru = $this->input->post("nama_guru", true); 
        goto mUiSL; 
        CAYbJ: 
        $data = ["status" => false, "errors" => ["nip" => form_error("nip"), "nama_guru" => form_error("nama_guru")]]; 
        goto sxpsV; 
        SX8XM: 
        $this->form_validation->set_rules("nip", "NIP", "required|trim|min_length[8]|max_length[30]" . $u_nip); 
        goto BSA68; 
        kgVQu: 
    } 
    function strContains($string, $val) 
    { 
        return strpos($string, $val) !== false; 
    } 
    function uploadFile($id_guru) 
    { 
        goto FSlGG; 
        GBbzU: 
        $result = $this->upload->data(); 
        goto gg7U2; 
        AiJhK: 
        $data["status"] = false; 
        goto dJ3Gn; 
        v5Rzz: 
        $this->db->where("id_guru", $id_guru); 
        goto KT9Sv; 
        zModm: 
        if (isset($_FILES["foto"]["name"])) { 
            goto cfidX; 
        } 
        goto SANOC; 
        FSlGG: 
        $guru = $this->master->getGuruById($id_guru); 
        goto zModm; 
        dkodq: 
        $config["upload_path"] = "./uploads/profiles/"; 
        goto TFRVI; 
        dflcv: 
        $config["overwrite"] = true; 
        goto EPtGk; 
        gg7U2: 
        $data["src"] = base_url() . "uploads/profiles/" . $result["file_name"]; 
        goto UkgXx; 
        UkgXx: 
        $data["filename"] = pathinfo($result["file_name"], PATHINFO_FILENAME); 
        goto NiDqY; 
        KT9Sv: 
        $this->db->update("master_guru"); 
        goto uByHD; 
        uByHD: 
        goto aBVX8; 
        goto PLIw5; 
        nh_aL: 
        goto c2jd2; 
        goto Gca28; 
        w47YP: 
        c2jd2: 
        goto kTefK; 
        SANOC: 
        $data["src"] = ''; 
        goto nh_aL; 
        mx5Zv: 
        $this->db->set("foto", "uploads/profiles/" . $result["file_name"]); 
        goto v5Rzz; 
        NiDqY: 
        $data["status"] = true; 
        goto mx5Zv; 
        dJ3Gn: 
        $data["src"] = $this->upload->display_errors(); 
        goto QSiD9; 
        nSTBM: 
        $this->upload->initialize($config); 
        goto pzbze; 
        Gca28: 
        cfidX: 
        goto dkodq; 
        qW5wB: 
        $data["size"] = $_FILES["foto"]["size"]; 
        goto w47YP; 
        pzbze: 
        if (!$this->upload->do_upload("foto")) { 
            goto zAUz7; 
        } 
        goto GBbzU; 
        PLIw5: 
        zAUz7: 
        goto AiJhK; 
        i7WWw: 
        $data["type"] = $_FILES["foto"]["type"]; 
        goto qW5wB; 
        kTefK: 
        $this->output_json($data); 
        goto tNMav; 
        QSiD9: 
        aBVX8: 
        goto i7WWw; 
        EPtGk: 
        $config["file_name"] = $guru->nip; 
        goto nSTBM; 
        TFRVI: 
        $config["allowed_types"] = "gif|jpg|png|jpeg|JPEG|JPG|PNG|GIF"; 
        goto dflcv; 
        tNMav: 
    } 
    function deleteFile($id_guru) 
    { 
        goto FGHGv; 
        QXyQx: 
        HUqvo: 
        goto Ccq_h; 
        zpoxR: 
        GseNK: 
        goto QXyQx; 
        KlQsG: 
        echo "File Delete Successfully"; 
        goto zpoxR; 
        n0Nvl: 
        if (!unlink($file_name)) { 
            goto GseNK; 
        } 
        goto vXoxk; 
        OvQ8L: 
        $this->db->update("master_guru"); 
        goto KlQsG; 
        HFkOg: 
        $this->db->where("id_guru", $id_guru); 
        goto OvQ8L; 
        vXoxk: 
        $this->db->set("foto", ''); 
        goto HFkOg; 
        nkbXB: 
        if (!($file_name != "user.jpg")) { 
            goto HUqvo; 
        } 
        goto n0Nvl; 
        FGHGv: 
        $src = $this->input->get("src"); 
        goto Ut0Ua; 
        Ut0Ua: 
        $file_name = str_replace(base_url(), '', $src); 
        goto nkbXB; 
        Ccq_h: 
    } 
} 
 ?>

Did this file decode correctly?

Original Code

<?php
/*   ________________________________________
    |                 GarudaCBT              |
    |    https://github.com/garudacbt/cbt    |
    |________________________________________|
*/
defined("\102\101\123\x45\120\x41\x54\110") or exit("\x4e\157\x20\x64\151\x72\145\x63\x74\40\x73\x63\162\x69\160\x74\40\x61\143\x63\145\163\163\40\x61\x6c\x6c\x6f\x77\x65\x64");
class Guruview extends CI_Controller
{
    public function __construct()
    {
        goto JQVV3;
        oAoZQ:
        $this->load->model("\115\141\x73\x74\145\x72\137\x6d\157\144\145\154", "\155\141\163\164\x65\x72");
        goto LSRIR;
        fwyEY:
        if ($this->ion_auth->logged_in()) {
            goto Auouy;
        }
        goto UhMSI;
        AOM09:
        Auouy:
        goto h4RMD;
        SA3Oj:
        $this->load->model("\104\x61\x73\150\x62\157\141\x72\144\x5f\155\x6f\x64\145\154", "\x64\141\x73\x68\x62\x6f\141\x72\x64");
        goto oAoZQ;
        xHzM1:
        $this->load->library(["\144\141\164\141\164\x61\142\154\x65\163", "\x66\157\162\155\x5f\166\x61\x6c\151\144\141\x74\x69\157\x6e"]);
        goto kl9bk;
        UhMSI:
        redirect("\141\165\164\150");
        goto AOM09;
        h4RMD:
        $this->load->library("\x75\x70\x6c\x6f\141\144");
        goto xHzM1;
        kl9bk:
        $this->form_validation->set_error_delimiters('', '');
        goto SA3Oj;
        JQVV3:
        parent::__construct();
        goto fwyEY;
        LSRIR:
    }
    public function output_json($data, $encode = true)
    {
        goto Cg034;
        Cg034:
        if (!$encode) {
            goto t4oKq;
        }
        goto omSsi;
        NLfWH:
        $this->output->set_content_type("\x61\160\160\154\151\143\x61\164\151\157\x6e\57\152\x73\x6f\156")->set_output($data);
        goto vuEkk;
        omSsi:
        $data = json_encode($data);
        goto l9OEn;
        l9OEn:
        t4oKq:
        goto NLfWH;
        vuEkk:
    }
    public function index()
    {
        goto RBA3P;
        PwCPG:
        $data["\163\x6d\164\137\x61\x63\x74\x69\x76\x65"] = $smt;
        goto zYO4f;
        XQ4fz:
        redirect("\141\165\164\150");
        goto T_e0N;
        XGnYz:
        $user = $this->ion_auth->user()->row();
        goto yaE6M;
        guaOo:
        $this->load->view("\x6d\x65\x6d\x62\x65\x72\163\x2f\x67\x75\x72\x75\57\x74\x65\155\160\154\141\164\145\163\57\146\157\157\164\145\x72");
        goto l1dsK;
        SJQr3:
        $data["\x73\x6d\x74"] = $this->dashboard->getSemester();
        goto PwCPG;
        t_p4G:
        if (!($user == null)) {
            goto eSbf_;
        }
        goto XQ4fz;
        zYO4f:
        $data["\147\x75\x72\x75"] = $guru;
        goto kutye;
        z1AaD:
        $inputsAlamat = [["\154\141\142\145\x6c" => "\116\x49\113", "\x6e\141\x6d\145" => "\156\x6f\x5f\153\x74\x70", "\x76\141\154\x75\x65" => $guru->no_ktp, "\151\143\x6f\x6e" => "\146\141\x72\x20\146\x61\x2d\151\x64\x2d\143\141\x72\x64", "\164\x79\x70\x65" => "\156\x75\x6d\142\x65\x72"], ["\x6c\x61\142\145\154" => "\x54\x65\155\x70\141\164\40\114\x61\x68\151\162", "\156\x61\155\x65" => "\x74\x65\155\x70\141\164\x5f\154\x61\150\151\162", "\x76\141\154\x75\145" => $guru->tempat_lahir, "\x69\x63\157\156" => "\x66\141\40\146\141\x2d\x6d\141\160\x2d\155\141\x72\x6b\145\x72", "\x74\171\160\145" => "\164\145\x78\164"], ["\154\141\x62\145\154" => "\124\x67\154\x2e\x20\x4c\141\150\151\162", "\x6e\141\155\x65" => "\164\147\154\x5f\x6c\x61\x68\151\162", "\166\141\x6c\x75\x65" => $guru->tgl_lahir, "\x69\x63\x6f\156" => "\x66\x61\40\x66\141\55\x63\x61\154\145\x6e\x64\141\x72", "\x74\171\x70\x65" => "\x74\145\x78\164"], ["\x6c\x61\142\x65\x6c" => "\101\x6c\x61\x6d\x61\164", "\156\141\155\145" => "\141\x6c\x61\x6d\141\164\x5f\x6a\x61\x6c\x61\156", "\x76\141\x6c\165\x65" => $guru->alamat_jalan, "\151\143\157\156" => "\146\x61\40\x66\141\55\155\141\160\x2d\155\141\x72\153\x65\162", "\164\171\160\x65" => "\x74\x65\x78\x74"], ["\154\141\142\145\x6c" => "\113\145\x63\x61\155\141\164\141\156", "\x6e\x61\155\145" => "\153\145\x63\141\155\x61\164\141\156", "\x76\141\x6c\165\145" => $guru->kecamatan, "\x69\x63\x6f\x6e" => "\146\141\40\x66\x61\55\x6d\x61\160\55\x6d\141\x72\153\145\x72", "\x74\x79\160\145" => "\164\x65\170\164"], ["\x6c\141\x62\145\x6c" => "\x4b\157\x74\141\57\113\141\x62\56", "\156\x61\155\145" => "\153\141\x62\x75\160\x61\164\145\156", "\x76\x61\154\165\x65" => $guru->kabupaten, "\x69\x63\x6f\x6e" => "\x66\x61\40\146\x61\55\x6d\x61\160\55\x6d\141\x72\153\145\x72", "\x74\x79\x70\145" => "\x74\145\x78\x74"], ["\x6c\x61\142\145\x6c" => "\x50\x72\157\x76\151\x6e\x73\151", "\156\141\155\145" => "\x70\x72\x6f\166\151\x6e\163\x69", "\166\x61\x6c\x75\x65" => $guru->provinsi, "\151\x63\157\x6e" => "\146\141\40\x66\141\x2d\155\141\160\55\155\141\162\153\145\162", "\x74\171\160\145" => "\164\x65\170\164"], ["\x6c\x61\x62\145\x6c" => "\113\157\144\x65\40\120\157\163", "\156\x61\x6d\x65" => "\x6b\x6f\144\x65\x5f\160\x6f\163", "\166\141\154\x75\145" => $guru->kode_pos, "\151\x63\x6f\156" => "\x66\141\40\146\x61\55\x65\x6e\x76\x65\x6c\157\160\x65", "\x74\171\160\x65" => "\x6e\165\155\142\145\162"]];
        goto NVOH2;
        RBA3P:
        $tp = $this->master->getTahunActive();
        goto rUtDu;
        iisX2:
        $data["\164\x70"] = $this->dashboard->getTahun();
        goto bLjaO;
        NVOH2:
        $data["\x69\x6e\160\165\164\137\x70\162\157\146\x69\x6c\145"] = json_decode(json_encode($inputsProfile), FALSE);
        goto b2KX3;
        rUtDu:
        $smt = $this->master->getSemesterActive();
        goto XGnYz;
        k0RfK:
        $this->load->view("\x6d\145\155\x62\x65\162\x73\57\x67\165\x72\x75\57\164\145\155\160\154\141\164\x65\163\x2f\150\x65\141\x64\x65\x72", $data);
        goto Nb8iv;
        Nb8iv:
        $this->load->view("\155\145\x6d\142\x65\x72\163\57\x67\165\162\x75\57\160\162\x6f\146\x69\154\x65");
        goto guaOo;
        b2KX3:
        $data["\x69\156\160\165\x74\137\141\154\141\155\141\x74"] = json_decode(json_encode($inputsAlamat), FALSE);
        goto k0RfK;
        yaE6M:
        $guru = $this->dashboard->getDetailGuruByUserId($user->id, $tp->id_tp, $smt->id_smt);
        goto t_p4G;
        FrF6v:
        $data = ["\x75\x73\145\x72" => $user, "\152\165\x64\x75\x6c" => "\120\x72\x6f\146\151\154\145", "\163\165\142\x6a\x75\144\165\x6c" => "\120\162\157\x66\151\154\145\x20\x53\141\x79\x61", "\x73\145\164\164\x69\x6e\147" => $this->dashboard->getSetting()];
        goto iisX2;
        bLjaO:
        $data["\x74\160\x5f\x61\143\164\x69\166\x65"] = $tp;
        goto SJQr3;
        kutye:
        $inputsProfile = [["\x6c\141\x62\145\154" => "\116\141\x6d\141\x20\114\145\x6e\147\153\x61\160", "\156\x61\155\x65" => "\x6e\x61\x6d\x61\x5f\147\x75\x72\165", "\x76\x61\x6c\x75\145" => $guru->nama_guru, "\x69\143\157\156" => "\x66\x61\162\x20\146\x61\x2d\165\x73\145\x72", "\x74\x79\160\145" => "\164\x65\170\x74"], ["\x6c\141\142\145\x6c" => "\105\155\x61\151\x6c", "\x6e\141\x6d\x65" => "\145\x6d\x61\x69\x6c", "\166\141\x6c\165\145" => $guru->email, "\x69\x63\157\x6e" => "\146\141\x72\40\146\141\55\x65\x6e\x76\145\x6c\157\160\145", "\164\x79\160\x65" => "\x74\x65\x78\x74"], ["\x6c\x61\x62\145\154" => "\116\111\120\40\57\40\x4e\x55\120\x54\x4b", "\156\x61\155\145" => "\156\151\x70", "\x76\x61\x6c\x75\x65" => $guru->nip, "\151\x63\x6f\x6e" => "\146\x61\x72\x20\x66\141\55\x69\144\x2d\143\x61\x72\x64", "\164\171\x70\145" => "\164\x65\x78\164"], ["\154\x61\x62\x65\154" => "\112\x65\x6e\151\x73\x20\x4b\145\x6c\141\x6d\x69\x6e", "\156\141\x6d\145" => "\152\145\x6e\x69\163\x5f\153\145\x6c\141\155\151\156", "\166\x61\x6c\x75\145" => $guru->jenis_kelamin, "\x69\x63\x6f\x6e" => "\x66\141\163\x20\146\141\55\x76\145\156\x75\x73\x2d\x6d\x61\x72\x73", "\x74\x79\x70\x65" => "\x74\x65\x78\x74"], ["\154\x61\142\145\154" => "\x4e\x6f\x2e\40\x48\141\156\144\160\150\x6f\x6e\145", "\156\141\x6d\145" => "\x6e\157\137\150\160", "\166\x61\x6c\x75\x65" => $guru->no_hp, "\151\143\157\x6e" => "\146\x61\x20\x66\x61\55\x70\150\157\156\145", "\164\x79\x70\x65" => "\156\165\x6d\x62\145\162"], ["\154\x61\142\x65\154" => "\101\147\141\x6d\141", "\156\141\x6d\145" => "\x61\x67\141\155\x61", "\166\141\154\x75\x65" => $guru->agama, "\x69\x63\x6f\x6e" => "\x66\x61\x72\40\146\x61\x2d\165\x73\145\x72", "\164\x79\x70\x65" => "\164\145\x78\164"]];
        goto z1AaD;
        T_e0N:
        eSbf_:
        goto FrF6v;
        l1dsK:
    }
    public function save()
    {
        goto GI0Nb;
        sLjid:
        idJ52:
        goto i2sEK;
        Xk2KL:
        $this->output_json(["\x73\x74\x61\x74\165\x73" => false]);
        goto oFC8H;
        q4p_G:
        $no_ktp = $this->input->post("\156\157\x5f\153\x74\x70", true);
        goto fO1h8;
        t5zSJ:
        $kecamatan = $this->input->post("\x6b\145\x63\141\x6d\141\164\x61\156", true);
        goto tgF3w;
        tTPTC:
        if ($action) {
            goto idJ52;
        }
        goto Xk2KL;
        zdIow:
        $provinsi = $this->input->post("\160\x72\x6f\x76\151\156\163\x69", true);
        goto tkAc4;
        nFv1F:
        $u_nip = $dbdata->nip === $nip ? '' : "\x7c\151\x73\137\165\156\x69\161\165\x65\x5b\155\141\163\x74\145\162\137\x67\165\162\165\x2e\x6e\151\x70\135";
        goto SX8XM;
        PHl7P:
        tnEHO:
        goto CAYbJ;
        i2sEK:
        $this->output_json(["\x73\x74\141\x74\165\163" => true]);
        goto ZkMDN;
        ZuxeC:
        $dbdata = $this->master->getGuruById($id_guru, $tp->id_tp, $smt->id_smt);
        goto nFv1F;
        Aww7g:
        $no_hp = $this->input->post("\156\157\x5f\150\x70", true);
        goto jSr0M;
        GI0Nb:
        $id_guru = $this->input->post("\x69\x64\137\147\x75\x72\165", true);
        goto vLKPO;
        sxpsV:
        $this->output_json($data);
        goto JXmzO;
        AgaqZ:
        if ($this->form_validation->run() == FALSE) {
            goto tnEHO;
        }
        goto xKVs3;
        q7D57:
        goto OLNJy;
        goto PHl7P;
        jSr0M:
        $agama = $this->input->post("\141\147\x61\x6d\x61", true);
        goto q4p_G;
        vLKPO:
        $nip = $this->input->post("\156\x69\160", true);
        goto Kk8I1;
        XHTdE:
        $alamat_jalan = $this->input->post("\x61\154\141\155\141\x74\137\x6a\x61\x6c\141\x6e", true);
        goto t5zSJ;
        OTFQE:
        $tp = $this->master->getTahunActive();
        goto JFk9X;
        xKVs3:
        $input = ["\156\x69\160" => $nip, "\x6e\141\155\141\x5f\147\165\x72\165" => $nama_guru, "\x65\155\x61\151\154" => $email, "\152\145\x6e\151\x73\x5f\153\x65\154\x61\x6d\x69\x6e" => $jenis_kelamin, "\156\157\x5f\x68\160" => $no_hp, "\x61\147\x61\x6d\141" => $agama, "\156\157\x5f\153\x74\160" => $no_ktp, "\x74\x65\155\x70\141\x74\137\154\x61\x68\151\x72" => $tempat_lahir, "\x74\x67\x6c\137\x6c\x61\150\x69\162" => $this->strContains($tgl_lahir, "\60\60\x30\60\x2d") ? null : $tgl_lahir, "\x61\x6c\141\x6d\x61\164\137\152\x61\154\141\x6e" => $alamat_jalan, "\x6b\x65\143\x61\x6d\x61\x74\x61\x6e" => $kecamatan, "\153\x61\142\x75\160\x61\x74\x65\x6e" => $kabupaten, "\x70\x72\x6f\x76\151\x6e\163\151" => $provinsi, "\153\x6f\x64\x65\137\x70\157\163" => $kode_pos];
        goto wyPOn;
        wyPOn:
        $action = $this->master->update("\155\141\x73\164\x65\162\137\x67\x75\162\165", $input, "\x69\144\x5f\x67\165\x72\165", $id_guru);
        goto tTPTC;
        tgF3w:
        $kabupaten = $this->input->post("\x6b\x61\142\x75\x70\x61\164\145\x6e", true);
        goto zdIow;
        PSdVh:
        $tgl_lahir = $this->input->post("\164\147\x6c\137\x6c\141\x68\x69\x72", true);
        goto XHTdE;
        BSA68:
        $this->form_validation->set_rules("\x6e\141\x6d\141\x5f\x67\165\162\165", "\116\141\x6d\141\40\x47\x75\162\x75", "\x72\145\x71\x75\x69\162\145\x64\174\x74\x72\151\x6d\174\155\x69\156\x5f\154\x65\x6e\147\164\x68\133\61\x5d\x7c\155\141\170\x5f\154\x65\156\147\x74\x68\133\65\60\135");
        goto AgaqZ;
        ZkMDN:
        O5jlC:
        goto q7D57;
        oLhyX:
        $jenis_kelamin = $this->input->post("\x6a\x65\x6e\x69\163\x5f\x6b\145\154\x61\x6d\151\x6e", true);
        goto Aww7g;
        oFC8H:
        goto O5jlC;
        goto sLjid;
        JFk9X:
        $smt = $this->master->getSemesterActive();
        goto ZuxeC;
        mUiSL:
        $email = $this->input->post("\x65\155\141\151\154", true);
        goto oLhyX;
        JXmzO:
        OLNJy:
        goto kgVQu;
        tkAc4:
        $kode_pos = $this->input->post("\153\x6f\144\x65\137\x70\157\163", true);
        goto OTFQE;
        fO1h8:
        $tempat_lahir = $this->input->post("\164\145\155\160\141\x74\137\154\141\x68\151\x72", true);
        goto PSdVh;
        Kk8I1:
        $nama_guru = $this->input->post("\x6e\141\x6d\x61\137\147\x75\x72\x75", true);
        goto mUiSL;
        CAYbJ:
        $data = ["\x73\x74\141\x74\x75\x73" => false, "\145\162\162\157\x72\163" => ["\156\x69\x70" => form_error("\x6e\x69\x70"), "\156\141\x6d\x61\x5f\x67\x75\162\x75" => form_error("\156\x61\155\x61\x5f\147\165\162\x75")]];
        goto sxpsV;
        SX8XM:
        $this->form_validation->set_rules("\156\x69\x70", "\x4e\111\x50", "\x72\145\x71\165\151\x72\145\x64\x7c\x74\x72\151\155\174\x6d\151\156\x5f\154\x65\156\x67\164\x68\x5b\x38\135\x7c\x6d\x61\170\x5f\154\145\x6e\x67\x74\x68\133\63\x30\x5d" . $u_nip);
        goto BSA68;
        kgVQu:
    }
    function strContains($string, $val)
    {
        return strpos($string, $val) !== false;
    }
    function uploadFile($id_guru)
    {
        goto FSlGG;
        GBbzU:
        $result = $this->upload->data();
        goto gg7U2;
        AiJhK:
        $data["\x73\164\x61\x74\165\x73"] = false;
        goto dJ3Gn;
        v5Rzz:
        $this->db->where("\151\x64\137\x67\165\x72\x75", $id_guru);
        goto KT9Sv;
        zModm:
        if (isset($_FILES["\x66\157\164\157"]["\156\x61\x6d\145"])) {
            goto cfidX;
        }
        goto SANOC;
        FSlGG:
        $guru = $this->master->getGuruById($id_guru);
        goto zModm;
        dkodq:
        $config["\165\x70\154\157\141\144\x5f\160\x61\x74\x68"] = "\x2e\x2f\165\160\154\x6f\x61\144\x73\x2f\160\162\157\146\x69\x6c\x65\163\x2f";
        goto TFRVI;
        dflcv:
        $config["\157\x76\x65\x72\x77\162\x69\164\145"] = true;
        goto EPtGk;
        gg7U2:
        $data["\163\162\143"] = base_url() . "\165\x70\x6c\x6f\141\x64\x73\x2f\x70\162\157\x66\x69\x6c\145\x73\57" . $result["\x66\x69\x6c\x65\x5f\156\x61\155\x65"];
        goto UkgXx;
        UkgXx:
        $data["\x66\x69\x6c\x65\156\141\155\x65"] = pathinfo($result["\x66\151\154\145\137\156\141\155\x65"], PATHINFO_FILENAME);
        goto NiDqY;
        KT9Sv:
        $this->db->update("\x6d\141\163\x74\x65\162\x5f\x67\x75\x72\x75");
        goto uByHD;
        uByHD:
        goto aBVX8;
        goto PLIw5;
        nh_aL:
        goto c2jd2;
        goto Gca28;
        w47YP:
        c2jd2:
        goto kTefK;
        SANOC:
        $data["\x73\x72\x63"] = '';
        goto nh_aL;
        mx5Zv:
        $this->db->set("\x66\x6f\164\x6f", "\x75\160\x6c\157\x61\x64\x73\57\160\162\157\x66\151\154\145\163\x2f" . $result["\x66\151\154\145\137\x6e\141\x6d\145"]);
        goto v5Rzz;
        NiDqY:
        $data["\x73\x74\141\164\x75\x73"] = true;
        goto mx5Zv;
        dJ3Gn:
        $data["\163\x72\x63"] = $this->upload->display_errors();
        goto QSiD9;
        nSTBM:
        $this->upload->initialize($config);
        goto pzbze;
        Gca28:
        cfidX:
        goto dkodq;
        qW5wB:
        $data["\x73\151\172\145"] = $_FILES["\146\157\164\x6f"]["\163\x69\172\145"];
        goto w47YP;
        pzbze:
        if (!$this->upload->do_upload("\x66\157\x74\x6f")) {
            goto zAUz7;
        }
        goto GBbzU;
        PLIw5:
        zAUz7:
        goto AiJhK;
        i7WWw:
        $data["\164\x79\x70\x65"] = $_FILES["\x66\157\x74\x6f"]["\x74\171\160\x65"];
        goto qW5wB;
        kTefK:
        $this->output_json($data);
        goto tNMav;
        QSiD9:
        aBVX8:
        goto i7WWw;
        EPtGk:
        $config["\x66\x69\154\x65\x5f\156\141\x6d\x65"] = $guru->nip;
        goto nSTBM;
        TFRVI:
        $config["\141\x6c\154\157\x77\x65\x64\137\x74\171\x70\145\163"] = "\x67\x69\x66\x7c\152\160\147\174\160\156\147\174\x6a\x70\x65\x67\x7c\x4a\120\x45\x47\174\x4a\x50\x47\174\x50\x4e\107\x7c\x47\111\106";
        goto dflcv;
        tNMav:
    }
    function deleteFile($id_guru)
    {
        goto FGHGv;
        QXyQx:
        HUqvo:
        goto Ccq_h;
        zpoxR:
        GseNK:
        goto QXyQx;
        KlQsG:
        echo "\x46\x69\x6c\145\x20\x44\x65\x6c\145\164\145\40\x53\165\x63\143\145\x73\x73\146\165\x6c\154\x79";
        goto zpoxR;
        n0Nvl:
        if (!unlink($file_name)) {
            goto GseNK;
        }
        goto vXoxk;
        OvQ8L:
        $this->db->update("\x6d\x61\163\164\145\162\137\x67\165\x72\x75");
        goto KlQsG;
        HFkOg:
        $this->db->where("\151\x64\137\x67\x75\x72\x75", $id_guru);
        goto OvQ8L;
        vXoxk:
        $this->db->set("\146\x6f\164\x6f", '');
        goto HFkOg;
        nkbXB:
        if (!($file_name != "\165\163\x65\162\x2e\152\160\x67")) {
            goto HUqvo;
        }
        goto n0Nvl;
        FGHGv:
        $src = $this->input->get("\163\x72\x63");
        goto Ut0Ua;
        Ut0Ua:
        $file_name = str_replace(base_url(), '', $src);
        goto nkbXB;
        Ccq_h:
    }
}

Function Calls

None

Variables

None

Stats

MD5 a8b5310d7a09341092a15bb38e9b7f36
Eval Count 0
Decode Time 70 ms