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 Datasiswa extends CI_Controller
{
public function __construct()
{
goto B4Qjt;
os9Qo:
redirect("auth");
goto YtCIK;
qrTmX:
goto RNLUS;
goto ow4Lx;
B4Qjt:
parent::__construct();
goto fRwYc;
ow4Lx:
uc8OG:
goto os9Qo;
tIUaL:
$this->form_validation->set_error_delimiters("", "");
goto hhfSg;
ireyn:
if (
!(
!$this->ion_auth->is_admin() &&
!$this->ion_auth->in_group("guru")
)
) {
goto P5fmt;
}
goto yqynH;
YtCIK:
RNLUS:
goto KHhaf;
tkg0x:
P5fmt:
goto qrTmX;
JDMcn:
$this->load->library([
"datatables",
"form_validation",
]);
goto tIUaL;
fRwYc:
if (!$this->ion_auth->logged_in()) {
goto uc8OG;
}
goto ireyn;
yqynH:
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 tkg0x;
KHhaf:
$this->load->library("upload");
goto JDMcn;
hhfSg:
}
public function output_json($data, $encode = true)
{
goto hv_fp;
g1SZS:
$data = json_encode($data);
goto YdK95;
YdK95:
VNfWd:
goto mH_Tk;
hv_fp:
if (!$encode) {
goto VNfWd;
}
goto g1SZS;
mH_Tk:
$this->output
->set_content_type(
"application/json"
)
->set_output($data);
goto X1P2W;
X1P2W:
}
public function index()
{
goto P1ooh;
hQWLZ:
$this->load->view(
"_templates/dashboard/_header",
$data
);
goto EwuVw;
ju73U:
$data[
"profile"
] = $this->dashboard->getProfileAdmin($user->id);
goto u9gt6;
xicfP:
$searchTp = array_search(
"1",
array_column($tp, "active")
);
goto qvfJv;
CmJeP:
$tpAktif = $tp[$searchTp];
goto AtMUu;
o7hiR:
$smt = $this->dashboard->getSemester();
goto LBEpW;
LBEpW:
$data["tp"] = $tp;
goto SKbxY;
sqY_1:
$this->load->model(
"Dropdown_model",
"dropdown"
);
goto VojnC;
EwuVw:
$this->load->view(
"master/siswa/data"
);
goto du0_D;
l7PBl:
$data = [
"user" => $user,
"judul" => "Siswa",
"subjudul" =>
"Data Siswa",
"setting" => $this->dashboard->getSetting(),
];
goto CEYm5;
du0_D:
$this->load->view(
"_templates/dashboard/_footer"
);
goto qNARX;
CEYm5:
$tp = $this->dashboard->getTahun();
goto o7hiR;
NieOh:
$data["tp_active"] = $tpAktif;
goto t0Rm9;
VojnC:
$user = $this->ion_auth->user()->row();
goto l7PBl;
SKbxY:
$data["smt"] = $smt;
goto xicfP;
AtMUu:
$smtAktif = $smt[$searchSmt];
goto NieOh;
t0Rm9:
$data["smt_active"] = $smtAktif;
goto ju73U;
u9gt6:
$data["kelass"] = $this->dropdown->getAllKelas(
$tpAktif->id_tp,
$smtAktif->id_smt
);
goto hQWLZ;
P1ooh:
$this->load->model(
"Dashboard_model",
"dashboard"
);
goto sqY_1;
qvfJv:
$searchSmt = array_search(
"1",
array_column($smt, "active")
);
goto CmJeP;
qNARX:
}
public function data()
{
goto sxoyf;
YChGJ:
$smt = $this->dashboard->getSemesterActive();
goto YYJU5;
YKo6x:
$tp = $this->dashboard->getTahunActive();
goto YChGJ;
VTok5:
$this->load->model(
"Dashboard_model",
"dashboard"
);
goto YKo6x;
sxoyf:
$this->load->model(
"Master_model",
"master"
);
goto VTok5;
YYJU5:
$this->output_json(
$this->master->getDataSiswa($tp->id_tp, $smt->id_smt),
false
);
goto KH2Uo;
KH2Uo:
}
public function list()
{
goto KZGci;
J4rlV:
$this->output_json($data);
goto JpBPU;
H7z2v:
$tp = $this->dashboard->getTahunActive();
goto dOquE;
GeZ2e:
$this->load->model(
"Dashboard_model",
"dashboard"
);
goto yqZll;
ktJ01:
$offset = ($page - 1) * $limit;
goto H7z2v;
ImLwm:
$lists = $this->master->getSiswaPage(
$tp->id_tp,
$smt->id_smt,
$offset,
$limit,
$filter,
$search
);
goto lJ9rQ;
dOquE:
$smt = $this->dashboard->getSemesterActive();
goto ZiYzy;
ZiYzy:
$count_siswa = $this->master->getSiswaTotalPage(
$tp->id_tp,
$smt->id_smt,
$filter,
$search
);
goto ImLwm;
LKYLk:
$filter = $this->input->post("filter", true);
goto ktJ01;
rXqnH:
$search = $this->input->post("search", true);
goto LKYLk;
yqZll:
$page = $this->input->post("page", true);
goto gP9hd;
lJ9rQ:
$data = [
"lists" => $lists,
"total" => $count_siswa,
"pages" => ceil($count_siswa / $limit),
"search" => $search,
"perpage" => $limit,
"filter" => $filter,
];
goto J4rlV;
KZGci:
$this->load->model(
"Master_model",
"master"
);
goto GeZ2e;
gP9hd:
$limit = $this->input->post("limit", true);
goto rXqnH;
JpBPU:
}
public function add()
{
goto I3QZV;
Em_b0:
$data["tp"] = $this->dashboard->getTahun();
goto K11Y1;
XUVS7:
$this->load->view(
"_templates/dashboard/_footer"
);
goto eSyfc;
I3QZV:
$this->load->model(
"Dashboard_model",
"dashboard"
);
goto hH9od;
sTvQu:
$data[
"profile"
] = $this->dashboard->getProfileAdmin($user->id);
goto glDL6;
N2Ypr:
$this->load->view(
"_templates/dashboard/_header",
$data
);
goto SBFTP;
SBFTP:
$this->load->view(
"master/siswa/add"
);
goto XUVS7;
glDL6:
$data["tipe"] = "add";
goto N2Ypr;
hH9od:
$user = $this->ion_auth->user()->row();
goto wLdd1;
wLdd1:
$data = [
"user" => $user,
"judul" => "Siswa",
"subjudul" =>
"Tambah Data Siswa",
"setting" => $this->dashboard->getSetting(),
];
goto Em_b0;
K11Y1:
$data[
"tp_active"
] = $this->dashboard->getTahunActive();
goto VnQnn;
VnQnn:
$data["smt"] = $this->dashboard->getSemester();
goto i4Zfu;
i4Zfu:
$data[
"smt_active"
] = $this->dashboard->getSemesterActive();
goto sTvQu;
eSyfc:
}
public function create()
{
goto IbWV_;
yQjFM:
$this->output_json($data);
goto LCD2y;
lfqbX:
$id = $this->db->insert_id();
goto n7VKD;
bAK23:
$this->form_validation->set_rules(
"nis",
"NIS",
"required|numeric|trim|min_length[6]|max_length[30]" .
$u_nis
);
goto MUq2A;
ElO5C:
$data["insert"] = false;
goto gFCuD;
L_vu6:
LvmJE:
goto ElO5C;
vby3T:
if ($this->form_validation->run() == false) {
goto LvmJE;
}
goto Lo8aW;
cmjNl:
$nisn = $this->input->post("nisn", true);
goto updnY;
Q0DYH:
$u_name =
"|is_unique[master_siswa.username]";
goto bAK23;
pzATA:
$this->db->insert("buku_induk", $induk);
goto ueQbW;
MMhwK:
$induk = [
"id_siswa" => $id,
"uid" => $siswa->uid,
"status" => 1,
];
goto pzATA;
Pmy5x:
$nis = $this->input->post("nis", true);
goto cmjNl;
aNmk1:
$data["insert"] = $this->db->insert(
"master_siswa",
$insert
);
goto lfqbX;
ueQbW:
$data["text"] =
"Siswa berhasil ditambahkan";
goto NLvtu;
nTy_F:
$u_nisn =
"|is_unique[master_siswa.nisn]";
goto Q0DYH;
FbBeL:
$this->db->set("uid", "UUID()", false);
goto aNmk1;
MUq2A:
$this->form_validation->set_rules(
"nisn",
"NISN",
"required|numeric|trim|min_length[6]|max_length[20]" .
$u_nisn
);
goto ZfApO;
updnY:
$username = $this->input->post(
"username",
true
);
goto V3HBA;
o1WET:
F6xZm:
goto yQjFM;
gFCuD:
$data["text"] =
"Data Sudah ada, Pastikan NIS, NISN dan Username belum digunakan siswa lain";
goto o1WET;
V3HBA:
$u_nis =
"|is_unique[master_siswa.nis]";
goto nTy_F;
IbWV_:
$this->load->model(
"Master_model",
"master"
);
goto Pmy5x;
Lo8aW:
$insert = [
"nama" => $this->input->post(
"nama_siswa",
true
),
"nis" => $nis,
"nisn" => $nisn,
"jenis_kelamin" => $this->input->post(
"jenis_kelamin",
true
),
"kelas_awal" => $this->input->post(
"kelas_awal",
true
),
"tahun_masuk" => $this->input->post(
"tahun_masuk",
true
),
"username" => $username,
"password" => $this->input->post(
"password",
true
),
"foto" =>
"uploads/foto_siswa/" .
$nis .
"jpg",
];
goto FbBeL;
n7VKD:
$siswa = $this->master->getSiswaById($id);
goto MMhwK;
NLvtu:
goto F6xZm;
goto L_vu6;
ZfApO:
$this->form_validation->set_rules(
"username",
"Username",
"required|trim" . $u_name
);
goto vby3T;
LCD2y:
}
public function edit($id)
{
goto oPyox;
up4DI:
$data["tp_active"] = $tp;
goto IbFdn;
PFPwb:
$smt = $this->master->getSemesterActive();
goto RNyVz;
XYRJe:
$this->load->view(
"_templates/dashboard/_header",
$data
);
goto o26u6;
o26u6:
$this->load->view(
"master/siswa/edit"
);
goto T3M23;
HmLqz:
$data["input_bio"] = json_decode(
json_encode($inputBio),
false
);
goto i2_y3;
Ud5EM:
$this->load->model(
"Dashboard_model",
"dashboard"
);
goto ihlHL;
IbFdn:
$data["smt_active"] = $smt;
goto WTDEr;
HVtfo:
$data = [
"user" => $user,
"judul" => "Siswa",
"subjudul" =>
"Edit Data Siswa",
"siswa" => $siswa,
"setting" => $this->dashboard->getSetting(),
];
goto rA9Sl;
rm_ha:
goto DcDt_;
goto caReJ;
EFZ6O:
$this->load->view(
"master/siswa/edit"
);
goto yPJmW;
auNqW:
$user = $this->ion_auth->user()->row();
goto HVtfo;
LBP4G:
$inputBio = [
[
"name" =>
"tempat_lahir",
"label" =>
"Tempat Lahir",
"value" => $siswa->tempat_lahir,
"icon" => "far fa-map",
"class" => "",
"type" => "text",
],
[
"name" =>
"tanggal_lahir",
"label" =>
"Tanggal Lahir",
"value" => $siswa->tanggal_lahir,
"icon" =>
"far fa-calendar",
"class" => "tahun",
"type" => "text",
],
[
"class" => "",
"name" => "agama",
"label" => "Agama",
"value" => $siswa->agama,
"icon" =>
"far fa-calendar",
"type" => "text",
],
[
"class" => "",
"name" => "alamat",
"label" => "Alamat",
"value" => $siswa->alamat,
"icon" =>
"far fa-user",
"type" => "text",
],
[
"class" => "",
"name" => "rt",
"label" => "Rt",
"value" => $siswa->rt,
"icon" =>
"far fa-user",
"type" => "text",
],
[
"class" => "",
"name" => "rw",
"label" => "Rw",
"value" => $siswa->rw,
"icon" =>
"far fa-user",
"type" => "text",
],
[
"class" => "",
"name" => "kelurahan",
"label" =>
"Kelurahan/Desa",
"value" => $siswa->kelurahan,
"icon" =>
"far fa-user",
"type" => "text",
],
[
"class" => "",
"name" => "kecamatan",
"label" =>
"Kecamatan",
"value" => $siswa->kecamatan,
"icon" =>
"far fa-user",
"type" => "text",
],
[
"class" => "",
"name" => "kabupaten",
"label" =>
"Kabupaten/Kota",
"value" => $siswa->kabupaten,
"icon" =>
"far fa-user",
"type" => "text",
],
[
"class" => "",
"name" => "kode_pos",
"label" => "Kode Pos",
"value" => $siswa->kode_pos,
"icon" =>
"far fa-user",
"type" => "text",
],
[
"class" => "",
"name" => "hp",
"label" => "Hp",
"value" => $siswa->hp,
"icon" =>
"far fa-user",
"type" => "text",
],
];
goto cknwe;
i2_y3:
$data["input_ortu"] = json_decode(
json_encode($inputOrtu),
false
);
goto EUmxK;
rA9Sl:
$tp = $this->master->getTahunActive();
goto PFPwb;
cknwe:
$inputOrtu = [
[
"name" =>
"status_keluarga",
"label" =>
"Status Keluarga",
"value" => $siswa->status_keluarga,
"icon" =>
"far fa-user",
"type" => "text",
],
[
"name" => "anak_ke",
"label" => "Anak ke",
"value" => $siswa->anak_ke,
"icon" =>
"far fa-user",
"type" => "number",
],
[
"name" => "nama_ayah",
"label" => "Nama Ayah",
"value" => $siswa->nama_ayah,
"icon" =>
"far fa-user",
"type" => "text",
],
[
"name" =>
"pekerjaan_ayah",
"label" =>
"Pekerjaan Ayah",
"value" => $siswa->pekerjaan_ayah,
"icon" =>
"far fa-user",
"type" => "text",
],
[
"name" =>
"alamat_ayah",
"label" =>
"Alamat Ayah",
"value" => $siswa->alamat_ayah,
"icon" =>
"far fa-user",
"type" => "text",
],
[
"name" => "nohp_ayah",
"label" =>
"No. HP Ayah",
"value" => $siswa->nohp_ayah,
"icon" =>
"far fa-user",
"type" => "number",
],
[
"name" => "nama_ibu",
"label" => "Nama Ibu",
"value" => $siswa->nama_ibu,
"icon" =>
"far fa-user",
"type" => "text",
],
[
"name" =>
"pekerjaan_ibu",
"label" =>
"Pekerjaan Ibu",
"value" => $siswa->pekerjaan_ibu,
"icon" =>
"far fa-user",
"type" => "text",
],
[
"name" =>
"alamat_ibu",
"label" =>
"Alamat Ibu",
"value" => $siswa->alamat_ibu,
"icon" =>
"far fa-user",
"type" => "text",
],
[
"name" => "nohp_ibu",
"label" =>
"No. HP Ibu",
"value" => $siswa->nohp_ibu,
"icon" =>
"far fa-user",
"type" => "number",
],
];
goto aetjP;
Gin5S:
$data[
"profile"
] = $this->dashboard->getProfileAdmin($user->id);
goto NpiVi;
oPyox:
$this->load->model(
"Master_model",
"master"
);
goto Ud5EM;
EUmxK:
$data["input_wali"] = json_decode(
json_encode($inputWali),
false
);
goto Gin5S;
yPJmW:
$this->load->view(
"members/guru/templates/footer"
);
goto rm_ha;
T3M23:
$this->load->view(
"_templates/dashboard/_footer"
);
goto PYmNg;
wFaD0:
$this->load->view(
"members/guru/templates/header",
$data
);
goto EFZ6O;
HUBH0:
$inputData = [
[
"label" =>
"Nama Lengkap",
"name" => "nama",
"value" => $siswa->nama,
"icon" =>
"far fa-user",
"class" => "",
"type" => "text",
],
[
"label" => "NIS",
"name" => "nis",
"value" => $siswa->nis,
"icon" =>
"far fa-id-card",
"class" => "",
"type" => "number",
],
[
"name" => "nisn",
"label" => "NISN",
"value" => $siswa->nisn,
"icon" =>
"far fa-id-card",
"class" => "",
"type" => "text",
],
[
"label" =>
"Jenis Kelamin",
"name" =>
"jenis_kelamin",
"value" => $siswa->jenis_kelamin,
"icon" =>
"fas fa-venus-mars",
"class" => "",
"type" => "text",
],
[
"name" =>
"kelas_awal",
"label" =>
"Diterima di kelas",
"value" => $siswa->kelas_awal,
"icon" =>
"fas fa-graduation-cap",
"class" => "",
"type" => "text",
],
[
"name" =>
"tahun_masuk",
"label" =>
"Tgl diterima",
"value" => $siswa->tahun_masuk,
"icon" =>
"tahun far fa-calendar-alt",
"class" => "tahun",
"type" => "text",
],
[
"name" =>
"sekolah_asal",
"label" =>
"Sekolah Asal",
"value" => $siswa->sekolah_asal,
"icon" =>
"fas fa-graduation-cap",
"class" => "",
"type" => "text",
],
[
"name" => "status",
"label" => "Status",
"value" => $siswa->status,
"icon" =>
"far fa-user",
"class" => "status",
"type" => "text",
],
];
goto LBP4G;
PYmNg:
DcDt_:
goto Rj9gG;
s9ep3:
$data["smt"] = $this->dashboard->getSemester();
goto up4DI;
RNyVz:
$data["tp"] = $this->dashboard->getTahun();
goto s9ep3;
WTDEr:
$data["input_data"] = json_decode(
json_encode($inputData),
false
);
goto HmLqz;
aetjP:
$inputWali = [
[
"name" => "nama_wali",
"label" => "Nama Wali",
"value" => $siswa->nama_wali,
"icon" =>
"far fa-user",
"type" => "text",
],
[
"name" =>
"pekerjaan_wali",
"label" =>
"Pekerjaan Wali",
"value" => $siswa->pekerjaan_wali,
"icon" =>
"far fa-user",
"type" => "text",
],
[
"name" =>
"alamat_wali",
"label" =>
"Alamat Wali",
"value" => $siswa->alamat_wali,
"icon" =>
"far fa-user",
"type" => "text",
],
[
"name" => "nohp_wali",
"label" =>
"No. HP Wali",
"value" => $siswa->nohp_wali,
"icon" =>
"far fa-user",
"type" => "number",
],
];
goto auNqW;
ihlHL:
$siswa = $this->master->getSiswaById($id);
goto HUBH0;
NpiVi:
if ($this->ion_auth->is_admin()) {
goto abpc9;
}
goto b0Y21;
b0Y21:
$data["guru"] = $this->dashboard->getDataGuruByUserId(
$user->id,
$tp->id_tp,
$smt->id_smt
);
goto wFaD0;
caReJ:
abpc9:
goto XYRJe;
Rj9gG:
}
public function updateData()
{
goto U35ba;
yAXg0:
exUOL:
goto NYnib;
uxU3D:
$tgl_lahir = $this->input->post(
"tanggal_lahir",
true
);
goto IJ0te;
NYnib:
$this->output_json($data);
goto duEdR;
OXPHw:
goto exUOL;
goto u1AOm;
yYfi0:
$data["insert"] = $input;
goto HICJP;
veiLT:
if ($this->form_validation->run() == false) {
goto CSNYs;
}
goto uxU3D;
IJ0te:
$tgl_masuk = $this->input->post(
"tahun_masuk",
true
);
goto CM7X0;
YpCTz:
$u_nisn =
$siswa->nisn === $nisn
? ""
: "|is_unique[master_siswa.nisn]";
goto aZW_P;
UXSNz:
$data["insert"] = false;
goto AKp24;
GIF6B:
$this->db->update("buku_induk");
goto yYfi0;
icA2Y:
$nisn = $this->input->post("nisn", true);
goto av0hA;
CM7X0:
$input = [
"nisn" => $this->input->post("nisn", true),
"nis" => $this->input->post("nis", true),
"nama" => $this->input->post("nama", true),
"jenis_kelamin" => $this->input->post(
"jenis_kelamin",
true
),
"tempat_lahir" => $this->input->post(
"tempat_lahir",
true
),
"tanggal_lahir" => $this->strContains(
$tgl_lahir,
"0000-"
)
? null
: $tgl_lahir,
"agama" => $this->input->post(
"agama",
true
),
"status_keluarga" => $this->input->post(
"status_keluarga",
true
),
"anak_ke" => $this->input->post(
"anak_ke",
true
),
"alamat" => $this->input->post(
"alamat",
true
),
"rt" => $this->input->post("rt", true),
"rw" => $this->input->post("rw", true),
"kelurahan" => $this->input->post(
"kelurahan",
true
),
"kecamatan" => $this->input->post(
"kecamatan",
true
),
"kabupaten" => $this->input->post(
"kabupaten",
true
),
"provinsi" => $this->input->post(
"provinsi",
true
),
"kode_pos" => $this->input->post(
"kode_pos",
true
),
"hp" => $this->input->post("hp", true),
"nama_ayah" => $this->input->post(
"nama_ayah",
true
),
"nohp_ayah" => $this->input->post(
"nohp_ayah",
true
),
"pendidikan_ayah" => $this->input->post(
"pendidikan_ayah",
true
),
"pekerjaan_ayah" => $this->input->post(
"pekerjaan_ayah",
true
),
"alamat_ayah" => $this->input->post(
"alamat_ayah",
true
),
"nama_ibu" => $this->input->post(
"nama_ibu",
true
),
"nohp_ibu" => $this->input->post(
"nohp_ibu",
true
),
"pendidikan_ibu" => $this->input->post(
"pendidikan_ibu",
true
),
"pekerjaan_ibu" => $this->input->post(
"pekerjaan_ibu",
true
),
"alamat_ibu" => $this->input->post(
"alamat_ibu",
true
),
"nama_wali" => $this->input->post(
"nama_wali",
true
),
"pendidikan_wali" => $this->input->post(
"pendidikan_wali",
true
),
"pekerjaan_wali" => $this->input->post(
"pekerjaan_wali",
true
),
"nohp_wali" => $this->input->post(
"nohp_wali",
true
),
"alamat_wali" => $this->input->post(
"alamat_wali",
true
),
"tahun_masuk" => $this->strContains(
$tgl_masuk,
"0000-"
)
? null
: $tgl_masuk,
"kelas_awal" => $this->input->post(
"kelas_awal",
true
),
"tgl_lahir_ayah" => $this->input->post(
"tgl_lahir_ayah",
true
),
"tgl_lahir_ibu" => $this->input->post(
"tgl_lahir_ibu",
true
),
"tgl_lahir_wali" => $this->input->post(
"tgl_lahir_wali",
true
),
"sekolah_asal" => $this->input->post(
"sekolah_asal",
true
),
"foto" =>
$siswa->foto != null && $siswa->foto != ""
? $siswa->foto
: "uploads/foto_siswa/" .
$nis .
".jpg",
];
goto Ey7Lm;
HICJP:
$data["text"] =
"Siswa berhasil diperbaharui";
goto OXPHw;
UqYFG:
$this->db->where("id_siswa", $siswa->id_siswa);
goto GIF6B;
u1AOm:
CSNYs:
goto UXSNz;
B5oLh:
$nis = $this->input->post("nis", true);
goto icA2Y;
av0hA:
$siswa = $this->master->getSiswaById($id_siswa);
goto fiUCb;
ECKoF:
$id_siswa = $this->input->post(
"id_siswa",
true
);
goto B5oLh;
RATLF:
$this->db->set(
"status",
$this->input->post("status", true)
);
goto UqYFG;
fiUCb:
$u_nis =
$siswa->nis === $nis
? ""
: "|is_unique[master_siswa.nis]";
goto YpCTz;
aZW_P:
$this->form_validation->set_rules(
"nis",
"NIS",
"required|numeric|trim|min_length[6]|max_length[30]" .
$u_nis
);
goto veiLT;
U35ba:
$this->load->model(
"Master_model",
"master"
);
goto ECKoF;
AKp24:
$data["text"] =
"NIS kurang dari 6 angka, atau data Sudah ada, Pastikan NIS, dan NISN belum digunakan siswa lain";
goto yAXg0;
Ey7Lm:
$this->master->update(
"master_siswa",
$input,
"id_siswa",
$id_siswa
);
goto RATLF;
duEdR:
}
function strContains($string, $val)
{
return strpos($string, $val) !== false;
}
function uploadFile($id_siswa)
{
goto Uj29B;
YpuSO:
$data["src"] = "";
goto ruV3Y;
OoKSH:
$siswa = $this->master->getSiswaById($id_siswa);
goto eUcHJ;
hefzY:
$this->upload->initialize($config);
goto IEuQ0;
fjI3U:
tknvd:
goto WtBTu;
hICze:
UDVHs:
goto X1W2b;
fR0zl:
$result = $this->upload->data();
goto PfX3w;
qatPs:
$config["overwrite"] = true;
goto c9iK0;
X1W2b:
$data["type"] =
$_FILES["foto"]["type"];
goto grXZZ;
jMai5:
$data["filename"] = pathinfo(
$result["file_name"],
PATHINFO_FILENAME
);
goto z7DpZ;
IEuQ0:
if (!$this->upload->do_upload("foto")) {
goto W117L;
}
goto fR0zl;
iek0s:
W117L:
goto JY1Jf;
XBOTk:
$config["upload_path"] =
"./uploads/foto_siswa/";
goto UY9Aq;
Iij7R:
$data["src"] = $this->upload->display_errors();
goto hICze;
WiKYa:
wJ_Ah:
goto XBOTk;
UY9Aq:
$config["allowed_types"] =
"gif|jpg|png|jpeg|JPEG|JPG|PNG|GIF";
goto qatPs;
WtBTu:
$this->output_json($data);
goto MpHEE;
grXZZ:
$data["size"] =
$_FILES["foto"]["size"];
goto fjI3U;
eUcHJ:
if (isset($_FILES["foto"]["name"])) {
goto wJ_Ah;
}
goto YpuSO;
PfX3w:
$data["src"] =
base_url() .
"uploads/foto_siswa/" .
$result["file_name"];
goto jMai5;
ckC7q:
goto UDVHs;
goto iek0s;
Ytgzn:
$this->db->where("id_siswa", $id_siswa);
goto jtEHg;
z7DpZ:
$data["status"] = true;
goto P2kAa;
JY1Jf:
$data["status"] = false;
goto Iij7R;
ruV3Y:
goto tknvd;
goto WiKYa;
P2kAa:
$this->db->set(
"foto",
"uploads/foto_siswa/" .
$result["file_name"]
);
goto Ytgzn;
Uj29B:
$this->load->model(
"Master_model",
"master"
);
goto OoKSH;
c9iK0:
$config["file_name"] = $siswa->nis;
goto hefzY;
jtEHg:
$this->db->update("master_siswa");
goto ckC7q;
MpHEE:
}
function deleteFile($id_siswa)
{
goto e0yU3;
lseXH:
$file_name = str_replace(base_url(), "", $src ?? "");
goto SQO1m;
ulApc:
$this->db->where("id_siswa", $id_siswa);
goto i2nMq;
sjl1A:
$this->db->set("foto", "");
goto ulApc;
duaoU:
WBIgV:
goto ewq7a;
i2nMq:
$this->db->update("master_siswa");
goto Jtqlq;
SQO1m:
if (
!(
$file_name !=
"assets/img/siswa.png"
)
) {
goto eBR9H;
}
goto LWJKz;
Jtqlq:
echo "File Delete Successfully";
goto duaoU;
LWJKz:
if (!unlink($file_name)) {
goto WBIgV;
}
goto sjl1A;
ewq7a:
eBR9H:
goto Cbnvf;
e0yU3:
$src = $this->input->post("src");
goto lseXH;
Cbnvf:
}
public function delete()
{
goto bWTvn;
PxvT7:
foreach ($chk as $id) {
goto Xgeyh;
OAMTL:
$this->db->update("buku_induk");
goto N2QlH;
gFE5Z:
$this->db->where("id_siswa", $id);
goto OAMTL;
N2QlH:
OsHsm:
goto BgID8;
Xgeyh:
$this->db->set("status", "3");
goto gFE5Z;
BgID8:
}
goto fIOhF;
l_MEl:
ZVP2u:
goto PxvT7;
rA92W:
goto nYOK3;
goto l_MEl;
dcdg5:
goto nYOK3;
goto Rjghi;
Sv8fs:
if (
!$this->master->delete(
"master_siswa",
$chk,
"id_siswa"
)
) {
goto Dtp7p;
}
goto C2fI5;
C2fI5:
$this->master->delete(
"buku_induk",
$chk,
"id_siswa"
);
goto rE9wf;
bWTvn:
$this->load->model(
"Master_model",
"master"
);
goto jJ5_K;
fIOhF:
mNhQY:
goto s4AfX;
PPKsy:
if ($aksi == "hapus") {
goto rcOY0;
}
goto rA92W;
Rjghi:
rcOY0:
goto Sv8fs;
pjO33:
if ($aksi == "pindah") {
goto ZVP2u;
}
goto GOur6;
xqwk0:
YVDme:
goto AEhlI;
rE9wf:
Dtp7p:
goto i7QlP;
AEhlI:
foreach ($chk as $id) {
goto PLQfu;
cU8L8:
$this->db->where("id_siswa", $id);
goto bk_Ii;
bk_Ii:
$this->db->update("buku_induk");
goto hjxT_;
PLQfu:
$this->db->set("status", "4");
goto cU8L8;
hjxT_:
MHsuB:
goto HpfHv;
HpfHv:
}
goto PMtpx;
GOur6:
if ($aksi == "keluar") {
goto YVDme;
}
goto PPKsy;
PLvf2:
if (!$chk) {
goto zOojP;
}
goto Bc0O9;
pIliS:
$this->output_json([
"status" => true,
"total" => count($chk),
"last" => $last,
]);
goto rlN0k;
ISpwf:
IqTdD:
goto xPmBR;
rlN0k:
goto IqTdD;
goto sPGNv;
jJ5_K:
$chk = $this->input->post("checked", true);
goto qQfww;
Bc0O9:
$last = $aksi;
goto pjO33;
i7QlP:
nYOK3:
goto pIliS;
s4AfX:
goto nYOK3;
goto xqwk0;
Vwfsi:
$this->output_json(["status" => false]);
goto ISpwf;
PMtpx:
j_liD:
goto dcdg5;
qQfww:
$aksi = $this->input->post("aksi", true);
goto PLvf2;
sPGNv:
zOojP:
goto Vwfsi;
xPmBR:
}
public function do_import()
{
goto rfbTq;
BGJxz:
MQXQu:
goto e1qq0;
zivNt:
foreach ($input as $value) {
goto BAGOr;
plRUe:
a9MZ8:
goto yrUGW;
BAGOr:
$siswa = [
"nisn" => $value["2"] ?? "",
"nis" => $value["3"] ?? "",
"nama" => $value["4"] ?? "",
"jenis_kelamin" =>
$value["5"] ?? "",
"username" => $value["6"] ?? "",
"password" => $value["7"] ?? "",
"kelas_awal" =>
$value["8"] ?? "",
"tahun_masuk" =>
$value["9"] ?? "",
"sekolah_asal" =>
$value["10"] ?? "",
"tempat_lahir" =>
$value["11"] ?? "",
"tanggal_lahir" =>
$value["12"] ?? "",
"agama" => $value["13"] ?? "",
"hp" => $value["14"] ?? "0",
"email" => $value["15"] ?? "",
"anak_ke" => $value["16"] ?? "1",
"status_keluarga" =>
$value["17"] ?? "1",
"alamat" => $value["18"] ?? "",
"rt" => $value["19"] ?? "",
"rw" => $value["20"] ?? "",
"kelurahan" =>
$value["21"] ?? "",
"kecamatan" =>
$value["22"] ?? "",
"kabupaten" =>
$value["23"] ?? "",
"provinsi" => $value["24"] ?? "",
"kode_pos" => $value["25"] ?? "",
"nama_ayah" =>
$value["26"] ?? "",
"tgl_lahir_ayah" =>
$value["27"] ?? "",
"pendidikan_ayah" =>
$value["28"] ?? "",
"pekerjaan_ayah" =>
$value["29"] ?? "",
"nohp_ayah" =>
$value["30"] ?? "",
"alamat_ayah" =>
$value["31"] ?? "",
"nama_ibu" => $value["32"] ?? "",
"tgl_lahir_ibu" =>
$value["33"] ?? "",
"pendidikan_ibu" =>
$value["34"] ?? "",
"pekerjaan_ibu" =>
$value["35"] ?? "",
"nohp_ibu" => $value["36"] ?? "",
"alamat_ibu" =>
$value["37"] ?? "",
"nama_wali" =>
$value["38"] ?? "",
"tgl_lahir_wali" =>
$value["39"] ?? "",
"pendidikan_wali" =>
$value["40"] ?? "",
"pekerjaan_wali" =>
$value["41"] ?? "",
"nohp_wali" =>
$value["42"] ?? "",
"alamat_wali" =>
$value["43"] ?? "",
];
goto B1qga;
ono2c:
$save = $this->db->insert(
"master_siswa",
$siswa
);
goto plRUe;
B1qga:
$siswa["foto"] =
"uploads/foto_siswa/" .
$siswa["nis"] .
".jpg";
goto k_Kei;
k_Kei:
$this->db->set("uid", "UUID()", false);
goto ono2c;
yrUGW:
}
goto a6108;
wS3ex:
$data = [
"status" => true,
"errors" => [],
];
goto z4F0e;
z4F0e:
$this->output_json($data);
goto odP1h;
mjueX:
VBzIg:
goto XKWzo;
XKWzo:
$this->db->trans_complete();
goto wS3ex;
E0ZhR:
if (count($errors) > 0) {
goto nTFsW;
}
goto T60l6;
fKoF0:
$data = [
"status" => false,
"errors" => $errors,
"duplikat" => $duplikat,
];
goto fxOQT;
hhUVq:
foreach ($input as $value) {
goto sEq9J;
w6vYY:
$errors[$data["nama"]] = [
"nama" => form_error("nama"),
"nis" => form_error("nis"),
"nisn" => form_error("nisn"),
"username" => form_error(
"username"
),
"password" => form_error(
"password"
),
];
goto wCsOP;
wCsOP:
Qx_99:
goto aaaUW;
U3g5I:
if (!($this->form_validation->run() == false)) {
goto Qx_99;
}
goto I1eUe;
GaUXr:
$this->form_validation->set_rules(
"nisn",
"NISN",
"required|numeric|trim|min_length[6]|max_length[20]|is_unique[master_siswa.nisn]"
);
goto Os53z;
MN2W2:
$this->form_validation->set_rules(
"nis",
"NIS",
"required|numeric|trim|min_length[6]|max_length[30]|is_unique[master_siswa.nis]"
);
goto GaUXr;
m32yu:
$this->form_validation->set_data($data);
goto MN2W2;
sEq9J:
$data = [
"nisn" => $value["2"] ?? "",
"nis" => $value["3"] ?? "",
"nama" => $value["4"] ?? "",
"username" => $value["6"] ?? "",
"password" => $value["7"] ?? "",
];
goto m32yu;
jnkVA:
$this->form_validation->set_rules(
"password",
"Password",
"required|trim|is_unique[master_siswa.username]"
);
goto U3g5I;
Os53z:
$this->form_validation->set_rules(
"username",
"Username",
"required|trim|is_unique[master_siswa.username]"
);
goto jnkVA;
I1eUe:
$duplikat[] = $data;
goto w6vYY;
aaaUW:
FuaoW:
goto XQJFt;
XQJFt:
}
goto KVQan;
jZLbe:
$uids = $this->db
->select("id_siswa, uid")
->from("master_siswa")
->get()
->result();
goto DmYT6;
rfbTq:
$input = $this->input->post("siswa", true);
goto MaXro;
MaXro:
$errors = [];
goto dzlY1;
a6108:
gcKai:
goto jZLbe;
dzlY1:
$duplikat = [];
goto hhUVq;
HTzCK:
nTFsW:
goto fKoF0;
T60l6:
$this->db->trans_start();
goto zivNt;
fxOQT:
$this->output_json($data);
goto BGJxz;
odP1h:
goto MQXQu;
goto HTzCK;
DmYT6:
foreach ($uids as $uid) {
goto l7ocO;
YlHnV:
if (!($check->get()->num_rows() == 0)) {
goto Qxaxq;
}
goto ni5Po;
l7ocO:
$check = $this->db
->select("id_siswa")
->from("buku_induk")
->where("id_siswa", $uid->id_siswa);
goto YlHnV;
ni5Po:
$this->db->insert("buku_induk", $uid);
goto lzZqN;
lzZqN:
Qxaxq:
goto lKP6m;
lKP6m:
kxGI1:
goto QBh5W;
QBh5W:
}
goto mjueX;
KVQan:
bbePc:
goto E0ZhR;
e1qq0:
}
public function update()
{
goto WaxU2;
E2mBq:
$data = [
"user" => $user,
"judul" =>
"Update Data Siswa",
"subjudul" =>
"Update Data Siswa",
"setting" => $this->dashboard->getSetting(),
];
goto RH2Zf;
fe5Da:
$this->load->view(
"_templates/dashboard/_header",
$data
);
goto kxCoW;
J1FdC:
$this->load->view(
"_templates/dashboard/_footer"
);
goto C21yp;
AfIOZ:
$data["smt"] = $this->dashboard->getSemester();
goto fCq2z;
oHZl1:
$data["tp"] = $this->dashboard->getTahun();
goto AfIOZ;
Vfa7a:
$smt = $this->dashboard->getSemesterActive();
goto r7Jrx;
r7Jrx:
$data["tp_active"] = $tp;
goto U_V3q;
fCq2z:
$data[
"profile"
] = $this->dashboard->getProfileAdmin($user->id);
goto R8D89;
tawfx:
$this->load->model(
"Dropdown_model",
"dropdown"
);
goto n6TlU;
RH2Zf:
$tp = $this->dashboard->getTahunActive();
goto Vfa7a;
n6TlU:
$user = $this->ion_auth->user()->row();
goto E2mBq;
R8D89:
$data["tipe"] = "update";
goto j9H3N;
WaxU2:
$this->load->model(
"Dashboard_model",
"dashboard"
);
goto tawfx;
j9H3N:
$data["kelas"] = $this->dropdown->getAllKelas(
$tp->id_tp,
$smt->id_smt
);
goto fe5Da;
U_V3q:
$data["smt_active"] = $smt;
goto oHZl1;
kxCoW:
$this->load->view(
"master/siswa/update"
);
goto J1FdC;
C21yp:
}
public function downloadData($id_kelas)
{
goto hMIiK;
bmqOF:
foreach ($siswas as $ind => $siswa) {
$siswa->no = $ind + 1;
h1M8T:
}
goto gpc0x;
sWi2o:
$this->output_json([
"status" => true,
"siswa" => $siswas,
]);
goto ns80c;
d6MPk:
$siswas = $this->master->getSiswaByKelas(
$tp->id_tp,
$smt->id_smt,
$id_kelas
);
goto bmqOF;
QQcp9:
$smt = $this->master->getSemesterActive();
goto d6MPk;
gpc0x:
J9e2f:
goto sWi2o;
nSxiK:
$tp = $this->master->getTahunActive();
goto QQcp9;
hMIiK:
$this->load->model(
"Master_model",
"master"
);
goto nSxiK;
ns80c:
}
public function updateAll()
{
goto C8viY;
sfbF9:
foreach ($input as $value) {
goto pQD4r;
pQD4r:
$siswa = [
"nisn" => $value["2"] ?? "",
"nis" => $value["3"] ?? "",
"nama" => $value["4"] ?? "",
"jenis_kelamin" =>
$value["5"] ?? "",
"username" => $value["6"] ?? "",
"password" => $value["7"] ?? "",
"kelas_awal" =>
$value["8"] ?? "",
"tahun_masuk" =>
$value["9"] ?? "",
"sekolah_asal" =>
$value["10"] ?? "",
"tempat_lahir" =>
$value["11"] ?? "",
"tanggal_lahir" =>
$value["12"] ?? "",
"agama" => $value["13"] ?? "",
"hp" => $value["14"] ?? "0",
"email" => $value["15"] ?? "",
"anak_ke" => $value["16"] ?? "1",
"status_keluarga" =>
$value["17"] ?? "1",
"alamat" => $value["18"] ?? "",
"rt" => $value["19"] ?? "",
"rw" => $value["20"] ?? "",
"kelurahan" =>
$value["21"] ?? "",
"kecamatan" =>
$value["22"] ?? "",
"kabupaten" =>
$value["23"] ?? "",
"provinsi" => $value["24"] ?? "",
"kode_pos" => $value["25"] ?? "",
"nama_ayah" =>
$value["26"] ?? "",
"tgl_lahir_ayah" =>
$value["27"] ?? "",
"pendidikan_ayah" =>
$value["28"] ?? "",
"pekerjaan_ayah" =>
$value["29"] ?? "",
"nohp_ayah" =>
$value["30"] ?? "",
"alamat_ayah" =>
$value["31"] ?? "",
"nama_ibu" => $value["32"] ?? "",
"tgl_lahir_ibu" =>
$value["33"] ?? "",
"pendidikan_ibu" =>
$value["34"] ?? "",
"pekerjaan_ibu" =>
$value["35"] ?? "",
"nohp_ibu" => $value["36"] ?? "",
"alamat_ibu" =>
$value["37"] ?? "",
"nama_wali" =>
$value["38"] ?? "",
"tgl_lahir_wali" =>
$value["39"] ?? "",
"pendidikan_wali" =>
$value["40"] ?? "",
"pekerjaan_wali" =>
$value["41"] ?? "",
"nohp_wali" =>
$value["42"] ?? "",
"alamat_wali" =>
$value["43"] ?? "",
];
goto g3x90;
NFnrC:
PK4y8:
goto EObU4;
HQe5B:
$save = $this->db->update(
"master_siswa",
$siswa,
["id_siswa" => $value["44"]]
);
goto NFnrC;
g3x90:
$siswa["foto"] =
"uploads/foto_siswa/" .
$value["3"] .
".jpg";
goto HQe5B;
EObU4:
}
goto Toub8;
t_NlV:
$data = [
"status" => $save ?? false,
"errors" => [],
];
goto U2ijM;
Toub8:
gKoYd:
goto hNikW;
U2ijM:
$this->output_json($data);
goto PgY9I;
hNikW:
$this->db->trans_complete();
goto t_NlV;
C8viY:
$input = $this->input->post("siswa", true);
goto CO8cU;
CO8cU:
$this->db->trans_start();
goto sfbF9;
PgY9I:
}
public function update_foto()
{
goto gtEok;
gtEok:
$input = $this->input->post("siswa", true);
goto ffSz3;
TlCPW:
YHqjg:
goto lu_FN;
ykmgK:
if (count($errors) > 0) {
goto qQTal;
}
goto jbe7x;
jEWlN:
goto YHqjg;
goto I6xec;
ltdIF:
$duplikat = [];
goto VIhjS;
kse6r:
NJFhZ:
goto Cjapu;
Q1unB:
foreach ($input as $value) {
goto ivY_a;
xxWkq:
$siswa = [
"nis" => $value["nis"] ?? "",
"foto" => $foto,
];
goto V_ryn;
MWrWF:
$base64_image_string = $value["foto"];
goto blF3o;
NcysT:
$extension = "jpg";
goto SAyd5;
E2oFC:
if (!($extension == "jpeg")) {
goto RlmWa;
}
goto NcysT;
ivY_a:
$foto =
"uploads/foto_siswa/" .
trim($value["nis"] ?? "00") .
".jpg";
goto VkR1i;
VkR1i:
if (!isset($value["foto"])) {
goto FB8Ty;
}
goto MWrWF;
SAyd5:
RlmWa:
goto Annkc;
V_ryn:
$save = $this->db->update(
"master_siswa",
$siswa,
["id_siswa" => $value["id"]]
);
goto marwO;
jMPb9:
FB8Ty:
goto xxWkq;
marwO:
tugd9:
goto Ir4X_;
Annkc:
$output_file =
trim($value["nis"] ?? "00") . "." . $extension;
goto xbsUt;
p1Pd5:
$foto =
"uploads/foto_siswa/" .
$output_file;
goto jMPb9;
xbsUt:
file_put_contents(
"./uploads/foto_siswa/" .
$output_file,
base64_decode($base64_image_string)
);
goto p1Pd5;
blF3o:
$extension = $value["ext"];
goto E2oFC;
Ir4X_:
}
goto kse6r;
p_aNy:
$this->output_json($data);
goto TlCPW;
jbe7x:
$this->db->trans_start();
goto Q1unB;
I6xec:
qQTal:
goto IYSKy;
LORJK:
$data = [
"status" => true,
"errors" => [],
];
goto RQUNO;
Cjapu:
$this->db->trans_complete();
goto LORJK;
IYSKy:
$data = [
"status" => false,
"errors" => $errors,
"duplikat" => $duplikat,
];
goto p_aNy;
RQUNO:
$this->output_json($data);
goto jEWlN;
ffSz3:
$errors = [];
goto ltdIF;
y5kb0:
v0O1M:
goto ykmgK;
VIhjS:
foreach ($input as $value) {
goto ZOPeH;
upq8Y:
$duplikat[] = $value;
goto f8cwq;
GBneQ:
c1bcg:
goto dp_JT;
vOUB2:
if (!($this->form_validation->run() == false)) {
goto m65ax;
}
goto upq8Y;
ZOPeH:
$this->form_validation->set_data($value);
goto ooRRK;
f8cwq:
$errors[$value["nama"]] = [
"nis" => form_error("nis"),
];
goto TUVJp;
TUVJp:
m65ax:
goto GBneQ;
ooRRK:
$this->form_validation->set_rules(
"nis",
"NIS",
"required|numeric|trim|min_length[6]|max_length[30]"
);
goto vOUB2;
dp_JT:
}
goto y5kb0;
lu_FN:
}
public function updateNisByNisn()
{
goto tAHre;
Yxzpd:
B12s_:
goto Y_Bff;
GCxc8:
$this->output_json($save);
goto sAcqX;
W7yZ8:
foreach ($input as $val) {
goto jqDSK;
JVJWI:
qh2Uf:
goto w1oa5;
zbYEz:
$save = $this->db->update(
"master_siswa"
);
goto JVJWI;
jqDSK:
$this->db->set("nis", trim($val->nis ?? ""));
goto RwlaT;
RwlaT:
$this->db->where("nisn", trim($val->nisn ?? ""));
goto zbYEz;
w1oa5:
}
goto Yxzpd;
Y_Bff:
$this->db->trans_complete();
goto GCxc8;
tAHre:
$input = json_decode($this->input->post("siswa", true));
goto W7yZ8;
sAcqX:
}
public function editLogin()
{
goto hG_mS;
h4RYO:
$deleted = true;
goto SIJMn;
ZgExc:
$last_name = end($nama);
goto HLwoG;
LdG2S:
$tp = $this->master->getTahunActive();
goto LCUXB;
XNm6c:
goto BC9X5;
goto PQAfN;
M3IYV:
$data = [
"status" => false,
"errors" => [
"username" =>
"Username sudah digunakan",
],
];
goto iFvVK;
ZTI4M:
$status = $this->db->update(
"master_siswa"
);
goto p9Xct;
hG_mS:
$this->load->model(
"Master_model",
"master"
);
goto obYfb;
x3gHN:
$group = ["3"];
goto pPnPW;
ApzZU:
$id_siswa = $this->input->post(
"id_siswa",
true
);
goto q4jp8;
Z627X:
$status = false;
goto gCbEe;
aMlvT:
IpJcY:
goto nvFb_;
RLGv_:
$this->form_validation->set_rules(
"old",
$this->lang->line(
"change_password_validation_old_password_label"
),
"required"
);
goto sJNbO;
B5xPT:
RLWZe:
goto fPGQi;
UJsKi:
if ($siswa_lain && $siswa_lain->id_siswa != $id_siswa) {
goto Nq9M3;
}
goto hXXSo;
aKZSg:
qKN4X:
goto zxlvn;
HjsIy:
$this->form_validation->set_rules(
"new_confirm",
$this->lang->line(
"change_password_validation_new_password_confirm_label"
),
"required"
);
goto UJsKi;
nfTLS:
$this->output_json($data);
goto bQo3u;
tN99N:
BC9X5:
goto nfTLS;
c1mjG:
$pass = $this->input->post("new", true);
goto LdG2S;
fo5e_:
rzGNY:
goto IO3nB;
IreHc:
$this->db->set("username", $username);
goto R0tMM;
hXXSo:
if ($this->form_validation->run() === false) {
goto qKN4X;
}
goto K9saQ;
tUFWF:
$first_name = $nama[0];
goto ZgExc;
Cl3YC:
$nama = explode(" ", $siswa->nama ?? "");
goto tUFWF;
UQHsF:
$deleted = $this->ion_auth->delete_user($user_siswa->id);
goto B5xPT;
KUHYe:
$additional_data = [
"first_name" => $first_name,
"last_name" => $last_name,
];
goto x3gHN;
HLwoG:
$username = trim($username ?? "");
goto Upwnx;
QBtiq:
$siswa_lain = $this->dashboard->getDataSiswa(
$username,
$tp->id_tp,
$smt->id_smt
);
goto RLGv_;
nvFb_:
$data["status"] = $status;
goto i6_gT;
LCUXB:
$smt = $this->master->getSemesterActive();
goto QBtiq;
K9saQ:
$siswa = $this->db
->get_where(
"master_siswa",
"id_siswa="" . $id_siswa . """
)
->row();
goto Cl3YC;
IO3nB:
$this->ion_auth->register(
$username,
$password,
$email,
$additional_data,
$group
);
goto IreHc;
R0tMM:
$this->db->set("password", $password);
goto f_JM5;
obYfb:
$this->load->model(
"Dashboard_model",
"dashboard"
);
goto ApzZU;
i6_gT:
$data["text"] = $msg;
goto XNm6c;
sJNbO:
$this->form_validation->set_rules(
"new",
$this->lang->line(
"change_password_validation_new_password_label"
),
"required|min_length[" .
$this->config->item(
"min_password_length",
"ion_auth"
) .
"]|matches[new_confirm]"
);
goto HjsIy;
p9Xct:
$msg = !$status
? "Gagal mengganti username/passsword."
: "berhasil mengganti username/passsword.";
goto aMlvT;
q4jp8:
$username = $this->input->post(
"username",
true
);
goto c1mjG;
xJjs5:
goto IpJcY;
goto fo5e_;
gCbEe:
$msg =
"Gagal mengganti username/passsword.";
goto xJjs5;
PQAfN:
Nq9M3:
goto M3IYV;
f_JM5:
$this->db->where("id_siswa", $id_siswa);
goto ZTI4M;
SIJMn:
if (!($user_siswa != null)) {
goto RLWZe;
}
goto UQHsF;
pPnPW:
$user_siswa = $this->db
->get_where(
"users",
"email="" . $email . """
)
->row();
goto h4RYO;
fgJUq:
$email = $siswa->nis . "@siswa.com";
goto KUHYe;
zxlvn:
$data = [
"status" => false,
"errors" => [
"old" => form_error("old"),
"new" => form_error("new"),
"new_confirm" => form_error(
"new_confirm"
),
],
];
goto tN99N;
fPGQi:
if ($deleted) {
goto rzGNY;
}
goto Z627X;
iFvVK:
goto BC9X5;
goto aKZSg;
Upwnx:
$password = trim($pass ?? "");
goto fgJUq;
bQo3u:
}
private function registerSiswa(
$username,
$password,
$email,
$additional_data,
$group
) {
goto nl6bI;
Sbq0s:
$data["id"] = $reg;
goto iXPA2;
XFcrN:
UX4gd:
goto qEaRS;
wRUyq:
$data["status"] = false;
goto XFcrN;
jPMgl:
$data["status"] = true;
goto Sbq0s;
iXPA2:
if (!($reg == false)) {
goto UX4gd;
}
goto wRUyq;
qEaRS:
return $data;
goto VyaNT;
nl6bI:
$reg = $this->ion_auth->register(
$username,
$password,
$email,
$additional_data,
$group
);
goto jPMgl;
VyaNT:
}
}
?>
Did this file decode correctly?
Original Code
<?php
/* ________________________________________
| GarudaCBT |
| https://github.com/garudacbt/cbt |
|________________________________________|
*/
defined("\x42\101\123\x45\120\x41\124\110") or
exit(
"\116\x6f\x20\x64\151\162\x65\143\164\40\x73\x63\x72\x69\160\x74\x20\x61\x63\x63\x65\163\x73\40\x61\x6c\x6c\157\167\145\144"
);
class Datasiswa extends CI_Controller
{
public function __construct()
{
goto B4Qjt;
os9Qo:
redirect("\x61\x75\x74\150");
goto YtCIK;
qrTmX:
goto RNLUS;
goto ow4Lx;
B4Qjt:
parent::__construct();
goto fRwYc;
ow4Lx:
uc8OG:
goto os9Qo;
tIUaL:
$this->form_validation->set_error_delimiters("", "");
goto hhfSg;
ireyn:
if (
!(
!$this->ion_auth->is_admin() &&
!$this->ion_auth->in_group("\147\x75\162\165")
)
) {
goto P5fmt;
}
goto yqynH;
YtCIK:
RNLUS:
goto KHhaf;
tkg0x:
P5fmt:
goto qrTmX;
JDMcn:
$this->load->library([
"\144\141\164\x61\x74\141\142\154\145\163",
"\146\x6f\x72\155\137\166\x61\x6c\151\144\141\164\151\x6f\156",
]);
goto tIUaL;
fRwYc:
if (!$this->ion_auth->logged_in()) {
goto uc8OG;
}
goto ireyn;
yqynH:
show_error(
"\110\x61\156\x79\x61\40\101\x64\x6d\151\156\151\x73\x74\x72\141\x74\157\x72\x20\171\x61\x6e\147\40\x64\x69\x62\x65\162\x69\40\150\141\x6b\x20\165\156\164\165\x6b\x20\155\145\x6e\x67\141\153\x73\145\x73\40\x68\141\154\141\x6d\x61\x6e\40\x69\x6e\x69\x2c\x20\74\x61\40\150\x72\x65\146\75\42" .
base_url("\x64\x61\x73\x68\142\x6f\141\x72\x64") .
"\42\x3e\x4b\x65\x6d\x62\x61\154\151\x20\153\145\40\155\x65\x6e\165\x20\141\x77\x61\x6c\x3c\57\x61\x3e",
403,
"\x41\153\x73\145\x73\40\x54\x65\162\x6c\141\x72\x61\156\147"
);
goto tkg0x;
KHhaf:
$this->load->library("\165\160\x6c\x6f\x61\x64");
goto JDMcn;
hhfSg:
}
public function output_json($data, $encode = true)
{
goto hv_fp;
g1SZS:
$data = json_encode($data);
goto YdK95;
YdK95:
VNfWd:
goto mH_Tk;
hv_fp:
if (!$encode) {
goto VNfWd;
}
goto g1SZS;
mH_Tk:
$this->output
->set_content_type(
"\x61\x70\160\154\x69\143\x61\x74\x69\157\x6e\x2f\x6a\x73\157\x6e"
)
->set_output($data);
goto X1P2W;
X1P2W:
}
public function index()
{
goto P1ooh;
hQWLZ:
$this->load->view(
"\x5f\x74\145\155\x70\x6c\141\164\145\163\x2f\144\x61\163\150\142\157\141\162\x64\57\137\150\145\x61\144\145\162",
$data
);
goto EwuVw;
ju73U:
$data[
"\160\162\157\x66\151\x6c\145"
] = $this->dashboard->getProfileAdmin($user->id);
goto u9gt6;
xicfP:
$searchTp = array_search(
"\x31",
array_column($tp, "\141\x63\164\x69\x76\145")
);
goto qvfJv;
CmJeP:
$tpAktif = $tp[$searchTp];
goto AtMUu;
o7hiR:
$smt = $this->dashboard->getSemester();
goto LBEpW;
LBEpW:
$data["\x74\x70"] = $tp;
goto SKbxY;
sqY_1:
$this->load->model(
"\104\x72\157\160\x64\x6f\x77\156\137\155\157\144\x65\x6c",
"\144\162\x6f\x70\x64\157\167\x6e"
);
goto VojnC;
EwuVw:
$this->load->view(
"\155\141\x73\164\145\x72\x2f\163\x69\163\x77\141\57\x64\x61\x74\141"
);
goto du0_D;
l7PBl:
$data = [
"\165\x73\x65\162" => $user,
"\152\x75\144\165\x6c" => "\123\151\x73\x77\141",
"\x73\x75\x62\x6a\x75\144\165\154" =>
"\x44\141\x74\x61\40\123\151\163\x77\x61",
"\163\x65\x74\164\151\156\x67" => $this->dashboard->getSetting(),
];
goto CEYm5;
du0_D:
$this->load->view(
"\137\x74\x65\x6d\x70\154\141\164\x65\163\57\x64\x61\163\x68\142\157\x61\x72\144\x2f\137\x66\x6f\x6f\164\145\x72"
);
goto qNARX;
CEYm5:
$tp = $this->dashboard->getTahun();
goto o7hiR;
NieOh:
$data["\164\x70\x5f\x61\143\x74\x69\x76\x65"] = $tpAktif;
goto t0Rm9;
VojnC:
$user = $this->ion_auth->user()->row();
goto l7PBl;
SKbxY:
$data["\x73\155\164"] = $smt;
goto xicfP;
AtMUu:
$smtAktif = $smt[$searchSmt];
goto NieOh;
t0Rm9:
$data["\x73\155\x74\x5f\141\143\164\x69\166\x65"] = $smtAktif;
goto ju73U;
u9gt6:
$data["\x6b\145\154\x61\163\x73"] = $this->dropdown->getAllKelas(
$tpAktif->id_tp,
$smtAktif->id_smt
);
goto hQWLZ;
P1ooh:
$this->load->model(
"\104\x61\x73\x68\x62\x6f\x61\x72\144\137\155\x6f\144\145\154",
"\144\x61\x73\150\142\x6f\x61\162\x64"
);
goto sqY_1;
qvfJv:
$searchSmt = array_search(
"\61",
array_column($smt, "\141\143\x74\x69\x76\145")
);
goto CmJeP;
qNARX:
}
public function data()
{
goto sxoyf;
YChGJ:
$smt = $this->dashboard->getSemesterActive();
goto YYJU5;
YKo6x:
$tp = $this->dashboard->getTahunActive();
goto YChGJ;
VTok5:
$this->load->model(
"\x44\141\163\150\142\157\141\x72\144\x5f\155\x6f\x64\145\x6c",
"\x64\x61\163\x68\142\x6f\x61\162\x64"
);
goto YKo6x;
sxoyf:
$this->load->model(
"\115\141\x73\x74\x65\x72\x5f\155\x6f\x64\145\154",
"\155\x61\163\164\x65\x72"
);
goto VTok5;
YYJU5:
$this->output_json(
$this->master->getDataSiswa($tp->id_tp, $smt->id_smt),
false
);
goto KH2Uo;
KH2Uo:
}
public function list()
{
goto KZGci;
J4rlV:
$this->output_json($data);
goto JpBPU;
H7z2v:
$tp = $this->dashboard->getTahunActive();
goto dOquE;
GeZ2e:
$this->load->model(
"\x44\x61\x73\x68\142\x6f\141\162\x64\x5f\155\157\x64\145\154",
"\x64\141\x73\x68\x62\157\141\x72\144"
);
goto yqZll;
ktJ01:
$offset = ($page - 1) * $limit;
goto H7z2v;
ImLwm:
$lists = $this->master->getSiswaPage(
$tp->id_tp,
$smt->id_smt,
$offset,
$limit,
$filter,
$search
);
goto lJ9rQ;
dOquE:
$smt = $this->dashboard->getSemesterActive();
goto ZiYzy;
ZiYzy:
$count_siswa = $this->master->getSiswaTotalPage(
$tp->id_tp,
$smt->id_smt,
$filter,
$search
);
goto ImLwm;
LKYLk:
$filter = $this->input->post("\x66\x69\x6c\x74\145\162", true);
goto ktJ01;
rXqnH:
$search = $this->input->post("\x73\145\141\162\143\x68", true);
goto LKYLk;
yqZll:
$page = $this->input->post("\160\x61\147\x65", true);
goto gP9hd;
lJ9rQ:
$data = [
"\x6c\x69\163\x74\163" => $lists,
"\x74\157\164\141\x6c" => $count_siswa,
"\160\x61\x67\145\x73" => ceil($count_siswa / $limit),
"\x73\x65\141\x72\x63\150" => $search,
"\160\145\x72\160\141\x67\x65" => $limit,
"\146\151\154\x74\145\162" => $filter,
];
goto J4rlV;
KZGci:
$this->load->model(
"\x4d\x61\x73\164\x65\162\137\155\x6f\144\145\154",
"\x6d\141\x73\x74\x65\162"
);
goto GeZ2e;
gP9hd:
$limit = $this->input->post("\x6c\151\155\151\164", true);
goto rXqnH;
JpBPU:
}
public function add()
{
goto I3QZV;
Em_b0:
$data["\x74\160"] = $this->dashboard->getTahun();
goto K11Y1;
XUVS7:
$this->load->view(
"\137\x74\145\155\160\x6c\141\x74\145\x73\57\x64\x61\163\150\142\157\141\x72\144\x2f\x5f\x66\x6f\157\x74\x65\162"
);
goto eSyfc;
I3QZV:
$this->load->model(
"\104\141\x73\150\x62\x6f\x61\162\144\137\x6d\157\x64\x65\x6c",
"\144\x61\163\x68\142\157\141\162\x64"
);
goto hH9od;
sTvQu:
$data[
"\160\x72\x6f\146\151\x6c\145"
] = $this->dashboard->getProfileAdmin($user->id);
goto glDL6;
N2Ypr:
$this->load->view(
"\x5f\x74\x65\x6d\160\x6c\141\x74\x65\163\x2f\x64\x61\163\150\142\x6f\141\162\x64\57\x5f\x68\x65\x61\x64\145\x72",
$data
);
goto SBFTP;
SBFTP:
$this->load->view(
"\x6d\x61\x73\x74\145\x72\x2f\163\151\x73\x77\x61\x2f\141\x64\x64"
);
goto XUVS7;
glDL6:
$data["\x74\x69\160\145"] = "\141\x64\x64";
goto N2Ypr;
hH9od:
$user = $this->ion_auth->user()->row();
goto wLdd1;
wLdd1:
$data = [
"\165\163\145\x72" => $user,
"\x6a\165\144\x75\x6c" => "\x53\x69\x73\167\x61",
"\x73\x75\142\152\x75\144\x75\x6c" =>
"\124\x61\x6d\x62\141\150\x20\x44\141\x74\x61\40\x53\x69\x73\x77\141",
"\x73\145\x74\x74\x69\156\147" => $this->dashboard->getSetting(),
];
goto Em_b0;
K11Y1:
$data[
"\164\160\x5f\x61\143\x74\x69\166\145"
] = $this->dashboard->getTahunActive();
goto VnQnn;
VnQnn:
$data["\x73\155\164"] = $this->dashboard->getSemester();
goto i4Zfu;
i4Zfu:
$data[
"\163\155\x74\x5f\x61\143\x74\x69\166\x65"
] = $this->dashboard->getSemesterActive();
goto sTvQu;
eSyfc:
}
public function create()
{
goto IbWV_;
yQjFM:
$this->output_json($data);
goto LCD2y;
lfqbX:
$id = $this->db->insert_id();
goto n7VKD;
bAK23:
$this->form_validation->set_rules(
"\x6e\151\x73",
"\x4e\111\x53",
"\162\x65\161\x75\151\x72\x65\144\x7c\x6e\165\155\x65\x72\x69\x63\x7c\x74\x72\x69\155\174\x6d\151\x6e\x5f\154\x65\x6e\147\164\150\x5b\66\135\x7c\155\141\170\137\154\145\156\x67\164\x68\133\x33\x30\135" .
$u_nis
);
goto MUq2A;
ElO5C:
$data["\x69\x6e\163\145\x72\164"] = false;
goto gFCuD;
L_vu6:
LvmJE:
goto ElO5C;
vby3T:
if ($this->form_validation->run() == false) {
goto LvmJE;
}
goto Lo8aW;
cmjNl:
$nisn = $this->input->post("\x6e\x69\x73\156", true);
goto updnY;
Q0DYH:
$u_name =
"\174\x69\x73\x5f\x75\156\151\161\165\x65\133\x6d\141\x73\164\145\162\137\x73\151\163\167\141\56\x75\x73\x65\x72\x6e\x61\155\x65\x5d";
goto bAK23;
pzATA:
$this->db->insert("\142\165\153\x75\137\151\x6e\x64\x75\153", $induk);
goto ueQbW;
MMhwK:
$induk = [
"\x69\144\x5f\163\x69\163\167\x61" => $id,
"\165\151\x64" => $siswa->uid,
"\x73\164\141\164\165\163" => 1,
];
goto pzATA;
Pmy5x:
$nis = $this->input->post("\x6e\151\163", true);
goto cmjNl;
aNmk1:
$data["\151\x6e\163\x65\162\164"] = $this->db->insert(
"\155\141\163\x74\145\162\137\x73\x69\163\167\141",
$insert
);
goto lfqbX;
ueQbW:
$data["\x74\x65\x78\164"] =
"\x53\x69\163\167\x61\40\x62\145\x72\150\x61\x73\151\154\40\x64\x69\164\x61\x6d\142\x61\x68\153\x61\x6e";
goto NLvtu;
nTy_F:
$u_nisn =
"\174\151\x73\x5f\x75\156\151\x71\165\145\133\x6d\141\x73\x74\145\162\x5f\x73\x69\x73\167\x61\56\156\x69\163\156\135";
goto Q0DYH;
FbBeL:
$this->db->set("\165\151\144", "\125\x55\111\x44\x28\x29", false);
goto aNmk1;
MUq2A:
$this->form_validation->set_rules(
"\x6e\151\163\x6e",
"\x4e\111\x53\x4e",
"\x72\x65\161\165\x69\162\x65\x64\174\156\x75\155\145\x72\x69\x63\174\164\162\151\x6d\174\x6d\x69\156\137\x6c\145\156\147\164\150\x5b\x36\x5d\x7c\x6d\x61\x78\x5f\154\x65\x6e\147\164\x68\x5b\x32\60\135" .
$u_nisn
);
goto ZfApO;
updnY:
$username = $this->input->post(
"\165\163\145\162\x6e\x61\x6d\x65",
true
);
goto V3HBA;
o1WET:
F6xZm:
goto yQjFM;
gFCuD:
$data["\164\145\170\x74"] =
"\x44\x61\164\x61\40\123\x75\144\x61\150\x20\x61\144\x61\x2c\40\120\x61\x73\164\x69\x6b\x61\x6e\40\116\111\x53\54\x20\x4e\x49\x53\x4e\x20\144\x61\x6e\x20\125\163\145\x72\156\141\155\145\40\142\x65\x6c\x75\x6d\40\144\x69\x67\165\x6e\141\x6b\141\x6e\x20\x73\151\x73\167\141\40\154\141\151\156";
goto o1WET;
V3HBA:
$u_nis =
"\x7c\151\x73\x5f\x75\x6e\x69\x71\x75\145\x5b\155\x61\163\x74\145\x72\137\163\151\x73\x77\141\x2e\156\151\163\135";
goto nTy_F;
IbWV_:
$this->load->model(
"\115\141\x73\164\145\162\x5f\x6d\157\144\145\154",
"\155\x61\x73\x74\145\162"
);
goto Pmy5x;
Lo8aW:
$insert = [
"\x6e\x61\x6d\x61" => $this->input->post(
"\x6e\141\x6d\141\x5f\163\151\163\x77\141",
true
),
"\156\151\163" => $nis,
"\x6e\x69\x73\156" => $nisn,
"\152\145\156\x69\x73\x5f\153\145\154\141\155\151\x6e" => $this->input->post(
"\152\145\x6e\x69\163\x5f\x6b\x65\154\141\x6d\151\156",
true
),
"\153\145\x6c\x61\163\x5f\x61\x77\141\154" => $this->input->post(
"\x6b\145\154\141\x73\137\141\x77\x61\x6c",
true
),
"\x74\x61\x68\x75\156\x5f\x6d\141\163\x75\x6b" => $this->input->post(
"\164\x61\x68\x75\156\x5f\x6d\x61\x73\x75\x6b",
true
),
"\165\x73\145\x72\x6e\141\x6d\x65" => $username,
"\160\141\x73\x73\167\x6f\162\x64" => $this->input->post(
"\x70\x61\163\x73\167\x6f\162\144",
true
),
"\146\x6f\x74\x6f" =>
"\x75\160\154\x6f\141\x64\163\57\146\x6f\x74\157\x5f\163\151\x73\167\x61\57" .
$nis .
"\x6a\x70\x67",
];
goto FbBeL;
n7VKD:
$siswa = $this->master->getSiswaById($id);
goto MMhwK;
NLvtu:
goto F6xZm;
goto L_vu6;
ZfApO:
$this->form_validation->set_rules(
"\165\163\145\x72\156\x61\155\145",
"\x55\x73\145\x72\x6e\141\x6d\145",
"\x72\145\x71\x75\151\162\x65\x64\174\x74\x72\x69\155" . $u_name
);
goto vby3T;
LCD2y:
}
public function edit($id)
{
goto oPyox;
up4DI:
$data["\x74\x70\137\x61\143\x74\151\x76\145"] = $tp;
goto IbFdn;
PFPwb:
$smt = $this->master->getSemesterActive();
goto RNyVz;
XYRJe:
$this->load->view(
"\137\164\145\x6d\x70\154\x61\x74\x65\163\57\x64\x61\x73\x68\x62\157\x61\x72\144\x2f\x5f\150\145\x61\x64\145\x72",
$data
);
goto o26u6;
o26u6:
$this->load->view(
"\x6d\141\x73\164\x65\x72\57\x73\x69\163\x77\141\57\x65\x64\x69\x74"
);
goto T3M23;
HmLqz:
$data["\151\156\160\165\164\x5f\x62\x69\x6f"] = json_decode(
json_encode($inputBio),
false
);
goto i2_y3;
Ud5EM:
$this->load->model(
"\104\141\163\x68\x62\157\x61\x72\x64\137\x6d\157\x64\145\x6c",
"\x64\141\163\x68\142\157\141\x72\x64"
);
goto ihlHL;
IbFdn:
$data["\x73\155\164\137\141\143\x74\151\166\145"] = $smt;
goto WTDEr;
HVtfo:
$data = [
"\165\x73\x65\162" => $user,
"\x6a\165\x64\165\x6c" => "\123\151\163\167\x61",
"\x73\x75\x62\152\165\x64\x75\154" =>
"\105\x64\151\164\40\104\141\x74\x61\x20\x53\x69\163\167\141",
"\163\151\x73\167\141" => $siswa,
"\163\145\164\164\151\x6e\147" => $this->dashboard->getSetting(),
];
goto rA9Sl;
rm_ha:
goto DcDt_;
goto caReJ;
EFZ6O:
$this->load->view(
"\x6d\x61\163\x74\145\x72\57\163\x69\x73\x77\x61\57\x65\144\151\164"
);
goto yPJmW;
auNqW:
$user = $this->ion_auth->user()->row();
goto HVtfo;
LBP4G:
$inputBio = [
[
"\x6e\x61\155\x65" =>
"\164\x65\155\160\141\x74\x5f\x6c\x61\150\x69\162",
"\x6c\x61\142\x65\154" =>
"\124\145\155\x70\x61\x74\x20\114\x61\x68\151\x72",
"\x76\141\x6c\x75\145" => $siswa->tempat_lahir,
"\x69\143\x6f\x6e" => "\146\141\x72\x20\x66\141\55\x6d\x61\x70",
"\143\154\x61\163\x73" => "",
"\164\171\x70\145" => "\x74\x65\x78\164",
],
[
"\156\x61\x6d\145" =>
"\164\x61\x6e\147\x67\141\x6c\137\x6c\141\x68\151\162",
"\154\x61\142\x65\x6c" =>
"\x54\x61\156\147\x67\x61\154\40\x4c\141\x68\x69\162",
"\x76\x61\154\x75\x65" => $siswa->tanggal_lahir,
"\x69\143\157\x6e" =>
"\x66\141\162\x20\x66\x61\x2d\x63\x61\x6c\x65\156\x64\x61\162",
"\143\154\141\x73\x73" => "\164\141\150\x75\x6e",
"\164\171\160\x65" => "\x74\145\170\164",
],
[
"\143\154\141\163\163" => "",
"\156\x61\x6d\145" => "\141\x67\141\x6d\x61",
"\154\141\142\145\154" => "\101\x67\x61\x6d\x61",
"\x76\x61\x6c\x75\145" => $siswa->agama,
"\x69\x63\157\156" =>
"\146\141\162\40\146\x61\55\x63\x61\154\x65\x6e\144\141\x72",
"\x74\x79\x70\x65" => "\x74\145\170\x74",
],
[
"\x63\x6c\x61\163\163" => "",
"\x6e\141\155\145" => "\x61\x6c\x61\155\141\x74",
"\x6c\x61\x62\145\x6c" => "\x41\x6c\x61\155\x61\164",
"\x76\x61\x6c\165\145" => $siswa->alamat,
"\151\x63\x6f\x6e" =>
"\146\141\162\x20\146\x61\55\x75\x73\x65\x72",
"\x74\171\160\145" => "\x74\145\170\x74",
],
[
"\x63\x6c\141\x73\163" => "",
"\x6e\x61\155\145" => "\162\x74",
"\x6c\141\x62\145\154" => "\x52\x74",
"\166\x61\x6c\165\x65" => $siswa->rt,
"\151\143\x6f\156" =>
"\146\141\x72\x20\x66\141\x2d\x75\163\145\162",
"\x74\x79\160\x65" => "\164\145\170\x74",
],
[
"\x63\x6c\x61\163\x73" => "",
"\x6e\x61\x6d\145" => "\x72\167",
"\x6c\x61\142\145\x6c" => "\122\167",
"\166\141\x6c\x75\145" => $siswa->rw,
"\x69\x63\157\156" =>
"\x66\141\162\x20\x66\x61\55\165\x73\x65\162",
"\x74\x79\x70\145" => "\164\x65\x78\x74",
],
[
"\x63\154\141\163\163" => "",
"\x6e\141\x6d\145" => "\153\x65\154\165\162\141\150\141\x6e",
"\x6c\141\x62\x65\x6c" =>
"\x4b\x65\x6c\165\x72\141\x68\x61\x6e\x2f\x44\145\x73\141",
"\166\141\x6c\165\x65" => $siswa->kelurahan,
"\x69\x63\x6f\x6e" =>
"\146\141\162\40\146\141\x2d\x75\163\x65\x72",
"\x74\x79\x70\x65" => "\164\x65\x78\x74",
],
[
"\143\x6c\x61\x73\163" => "",
"\x6e\141\155\145" => "\153\x65\x63\x61\x6d\141\164\141\156",
"\x6c\141\x62\145\154" =>
"\x4b\145\143\x61\155\141\164\x61\156",
"\x76\141\x6c\x75\x65" => $siswa->kecamatan,
"\x69\143\x6f\x6e" =>
"\146\x61\162\x20\x66\x61\x2d\165\x73\145\162",
"\164\171\160\145" => "\x74\x65\170\x74",
],
[
"\143\154\x61\x73\163" => "",
"\156\141\155\x65" => "\153\x61\142\x75\x70\x61\x74\145\156",
"\154\141\x62\145\154" =>
"\113\x61\142\165\160\x61\164\x65\x6e\x2f\x4b\157\164\x61",
"\166\x61\x6c\165\145" => $siswa->kabupaten,
"\x69\x63\157\156" =>
"\146\141\162\40\x66\x61\55\165\163\145\162",
"\x74\x79\x70\145" => "\164\x65\x78\x74",
],
[
"\x63\154\141\163\163" => "",
"\156\141\155\145" => "\x6b\x6f\144\x65\137\x70\157\163",
"\x6c\141\x62\145\154" => "\x4b\x6f\x64\145\40\120\157\x73",
"\166\141\x6c\165\x65" => $siswa->kode_pos,
"\x69\143\x6f\156" =>
"\x66\x61\162\x20\146\141\x2d\x75\x73\x65\x72",
"\x74\171\160\145" => "\164\x65\x78\164",
],
[
"\x63\154\x61\163\163" => "",
"\156\141\155\x65" => "\x68\x70",
"\154\x61\142\x65\x6c" => "\110\x70",
"\166\141\x6c\165\145" => $siswa->hp,
"\x69\143\x6f\156" =>
"\146\x61\162\40\146\x61\55\165\163\x65\162",
"\164\171\160\x65" => "\164\145\x78\x74",
],
];
goto cknwe;
i2_y3:
$data["\151\156\160\x75\x74\x5f\157\x72\164\x75"] = json_decode(
json_encode($inputOrtu),
false
);
goto EUmxK;
rA9Sl:
$tp = $this->master->getTahunActive();
goto PFPwb;
cknwe:
$inputOrtu = [
[
"\156\x61\x6d\145" =>
"\x73\x74\x61\164\x75\163\x5f\153\x65\154\x75\x61\162\147\x61",
"\154\141\142\145\154" =>
"\123\164\141\164\x75\x73\x20\113\145\x6c\x75\x61\x72\x67\x61",
"\166\x61\x6c\x75\145" => $siswa->status_keluarga,
"\151\143\157\x6e" =>
"\x66\141\x72\x20\x66\141\55\165\163\x65\162",
"\164\171\x70\145" => "\164\145\x78\x74",
],
[
"\x6e\141\155\x65" => "\x61\x6e\141\x6b\137\x6b\145",
"\154\141\x62\x65\154" => "\x41\x6e\x61\153\x20\x6b\x65",
"\x76\141\154\165\x65" => $siswa->anak_ke,
"\151\x63\x6f\x6e" =>
"\x66\141\x72\x20\146\x61\x2d\x75\x73\x65\x72",
"\x74\x79\x70\145" => "\156\x75\155\142\145\162",
],
[
"\x6e\x61\155\145" => "\x6e\x61\x6d\141\137\141\x79\x61\150",
"\154\x61\x62\145\x6c" => "\116\x61\x6d\141\40\101\x79\x61\x68",
"\166\141\154\x75\x65" => $siswa->nama_ayah,
"\x69\x63\x6f\156" =>
"\x66\141\162\x20\146\x61\55\x75\163\145\162",
"\x74\171\160\145" => "\164\x65\170\x74",
],
[
"\156\141\x6d\145" =>
"\x70\x65\x6b\145\x72\152\x61\x61\x6e\x5f\141\x79\x61\150",
"\154\x61\142\x65\154" =>
"\x50\x65\x6b\x65\162\152\141\x61\156\x20\101\x79\141\150",
"\x76\x61\x6c\165\x65" => $siswa->pekerjaan_ayah,
"\x69\x63\157\x6e" =>
"\x66\x61\162\x20\x66\x61\x2d\165\163\145\x72",
"\164\x79\160\145" => "\x74\145\170\x74",
],
[
"\x6e\x61\x6d\145" =>
"\x61\x6c\x61\155\x61\x74\x5f\141\171\141\150",
"\x6c\141\x62\x65\154" =>
"\101\154\x61\x6d\141\x74\x20\x41\171\x61\x68",
"\166\141\x6c\x75\x65" => $siswa->alamat_ayah,
"\151\x63\x6f\x6e" =>
"\x66\141\x72\40\x66\141\55\165\x73\x65\162",
"\164\171\160\145" => "\x74\145\170\x74",
],
[
"\x6e\x61\x6d\145" => "\156\157\x68\160\x5f\141\171\141\x68",
"\x6c\x61\x62\145\154" =>
"\x4e\x6f\x2e\40\110\x50\x20\x41\171\141\x68",
"\x76\x61\x6c\165\145" => $siswa->nohp_ayah,
"\151\143\157\x6e" =>
"\x66\x61\162\x20\x66\141\x2d\x75\163\x65\x72",
"\164\x79\x70\x65" => "\156\x75\155\142\145\x72",
],
[
"\156\x61\155\x65" => "\x6e\x61\155\x61\137\151\142\x75",
"\x6c\141\142\145\154" => "\116\141\155\x61\40\111\142\165",
"\x76\141\x6c\165\x65" => $siswa->nama_ibu,
"\151\143\x6f\156" =>
"\x66\x61\162\x20\x66\141\55\165\163\x65\162",
"\164\171\160\x65" => "\x74\145\x78\164",
],
[
"\x6e\141\x6d\x65" =>
"\160\x65\153\145\x72\152\x61\141\x6e\137\x69\142\x75",
"\154\141\142\145\x6c" =>
"\120\x65\153\x65\162\x6a\x61\141\156\40\111\142\165",
"\x76\141\154\x75\x65" => $siswa->pekerjaan_ibu,
"\151\143\157\x6e" =>
"\x66\141\x72\40\x66\141\x2d\165\163\x65\x72",
"\x74\171\x70\145" => "\164\145\170\164",
],
[
"\x6e\141\x6d\145" =>
"\141\154\x61\155\141\x74\137\151\x62\x75",
"\x6c\141\142\145\x6c" =>
"\x41\154\x61\x6d\141\x74\x20\111\x62\x75",
"\166\141\154\165\x65" => $siswa->alamat_ibu,
"\x69\x63\x6f\x6e" =>
"\146\141\162\x20\x66\141\55\165\163\145\162",
"\x74\171\x70\145" => "\x74\145\x78\164",
],
[
"\156\141\x6d\145" => "\x6e\157\x68\x70\x5f\151\x62\x75",
"\x6c\141\142\x65\154" =>
"\116\157\56\40\x48\x50\x20\111\142\x75",
"\x76\141\154\x75\x65" => $siswa->nohp_ibu,
"\151\x63\157\x6e" =>
"\x66\141\162\x20\x66\141\55\x75\163\145\x72",
"\x74\171\x70\x65" => "\156\x75\x6d\x62\x65\x72",
],
];
goto aetjP;
Gin5S:
$data[
"\160\162\x6f\146\x69\154\x65"
] = $this->dashboard->getProfileAdmin($user->id);
goto NpiVi;
oPyox:
$this->load->model(
"\115\141\163\164\x65\162\x5f\155\x6f\144\145\x6c",
"\155\141\163\x74\145\162"
);
goto Ud5EM;
EUmxK:
$data["\x69\156\160\x75\164\137\167\141\154\x69"] = json_decode(
json_encode($inputWali),
false
);
goto Gin5S;
yPJmW:
$this->load->view(
"\x6d\x65\155\142\145\162\x73\x2f\x67\165\162\x75\x2f\164\145\155\x70\154\x61\x74\x65\163\x2f\146\x6f\157\x74\x65\162"
);
goto rm_ha;
T3M23:
$this->load->view(
"\137\164\x65\x6d\x70\154\x61\164\x65\163\57\144\x61\x73\x68\142\x6f\141\162\x64\57\137\146\x6f\x6f\x74\145\x72"
);
goto PYmNg;
wFaD0:
$this->load->view(
"\x6d\x65\155\142\145\162\x73\x2f\x67\x75\x72\165\57\164\145\x6d\160\154\141\x74\145\x73\x2f\x68\x65\141\x64\x65\162",
$data
);
goto EFZ6O;
HUBH0:
$inputData = [
[
"\154\141\x62\x65\154" =>
"\116\141\155\141\40\114\145\x6e\147\x6b\141\160",
"\156\x61\x6d\145" => "\x6e\141\x6d\141",
"\x76\141\154\x75\145" => $siswa->nama,
"\151\x63\x6f\x6e" =>
"\146\141\162\x20\x66\x61\x2d\x75\x73\x65\162",
"\x63\x6c\141\163\x73" => "",
"\x74\x79\160\x65" => "\x74\145\170\164",
],
[
"\154\x61\x62\x65\x6c" => "\x4e\x49\123",
"\x6e\x61\x6d\x65" => "\156\x69\x73",
"\x76\141\x6c\165\x65" => $siswa->nis,
"\151\143\157\156" =>
"\x66\141\x72\x20\146\x61\55\151\144\x2d\x63\x61\162\144",
"\x63\154\141\163\163" => "",
"\164\x79\x70\145" => "\156\x75\x6d\142\x65\x72",
],
[
"\x6e\141\x6d\x65" => "\x6e\151\x73\156",
"\154\141\x62\x65\154" => "\x4e\111\x53\x4e",
"\x76\x61\154\165\145" => $siswa->nisn,
"\151\x63\157\156" =>
"\146\141\162\40\146\x61\55\x69\x64\x2d\143\141\162\x64",
"\143\x6c\141\x73\163" => "",
"\x74\x79\x70\x65" => "\x74\145\170\x74",
],
[
"\x6c\141\x62\145\x6c" =>
"\x4a\x65\x6e\151\163\x20\113\145\154\141\155\151\x6e",
"\156\x61\155\145" =>
"\152\x65\x6e\x69\163\137\x6b\x65\154\141\155\x69\x6e",
"\x76\141\x6c\165\145" => $siswa->jenis_kelamin,
"\x69\143\157\156" =>
"\146\x61\x73\40\146\141\x2d\166\x65\156\x75\163\x2d\155\x61\x72\x73",
"\x63\x6c\141\163\163" => "",
"\164\171\160\145" => "\164\145\x78\164",
],
[
"\x6e\141\155\145" =>
"\x6b\145\154\141\163\x5f\x61\x77\141\x6c",
"\154\x61\142\145\x6c" =>
"\104\x69\x74\x65\162\151\x6d\141\40\x64\151\40\x6b\x65\x6c\141\x73",
"\x76\x61\154\x75\x65" => $siswa->kelas_awal,
"\151\x63\x6f\156" =>
"\x66\141\163\40\146\141\x2d\147\x72\141\x64\x75\x61\x74\x69\157\156\x2d\x63\141\160",
"\143\154\x61\x73\x73" => "",
"\164\x79\x70\145" => "\x74\145\x78\x74",
],
[
"\x6e\141\x6d\145" =>
"\164\x61\x68\x75\x6e\137\x6d\x61\163\165\153",
"\x6c\x61\142\x65\154" =>
"\x54\147\154\x20\144\151\x74\x65\x72\151\x6d\141",
"\166\x61\x6c\x75\x65" => $siswa->tahun_masuk,
"\151\x63\157\156" =>
"\164\x61\x68\x75\156\40\146\x61\x72\40\x66\x61\55\x63\x61\x6c\145\x6e\x64\x61\162\x2d\x61\x6c\x74",
"\x63\154\141\x73\163" => "\x74\141\x68\x75\156",
"\164\x79\x70\x65" => "\164\145\x78\164",
],
[
"\156\141\x6d\x65" =>
"\163\x65\153\x6f\x6c\141\150\x5f\x61\x73\141\x6c",
"\x6c\x61\142\x65\154" =>
"\123\145\x6b\x6f\x6c\x61\x68\x20\101\x73\x61\x6c",
"\166\x61\x6c\x75\x65" => $siswa->sekolah_asal,
"\151\143\157\x6e" =>
"\x66\141\163\x20\x66\141\55\x67\x72\x61\x64\165\x61\x74\151\157\x6e\x2d\x63\x61\x70",
"\143\x6c\141\163\163" => "",
"\x74\171\160\145" => "\164\x65\x78\164",
],
[
"\x6e\141\155\145" => "\x73\164\141\x74\165\163",
"\x6c\x61\142\x65\x6c" => "\x53\x74\141\164\165\163",
"\x76\141\154\x75\x65" => $siswa->status,
"\151\x63\157\x6e" =>
"\x66\x61\162\40\x66\141\x2d\165\163\x65\162",
"\x63\154\141\x73\163" => "\x73\164\141\164\165\x73",
"\164\171\x70\145" => "\x74\145\x78\164",
],
];
goto LBP4G;
PYmNg:
DcDt_:
goto Rj9gG;
s9ep3:
$data["\163\x6d\164"] = $this->dashboard->getSemester();
goto up4DI;
RNyVz:
$data["\164\160"] = $this->dashboard->getTahun();
goto s9ep3;
WTDEr:
$data["\151\156\160\x75\x74\x5f\144\141\164\x61"] = json_decode(
json_encode($inputData),
false
);
goto HmLqz;
aetjP:
$inputWali = [
[
"\156\141\155\145" => "\156\141\x6d\141\x5f\x77\141\154\151",
"\x6c\x61\142\145\154" => "\x4e\x61\x6d\x61\40\127\141\x6c\151",
"\x76\141\154\165\x65" => $siswa->nama_wali,
"\151\x63\157\156" =>
"\146\x61\162\x20\146\x61\x2d\165\x73\x65\162",
"\164\x79\160\x65" => "\x74\145\x78\x74",
],
[
"\x6e\x61\x6d\x65" =>
"\x70\145\153\x65\x72\152\141\x61\156\137\167\141\154\x69",
"\154\141\x62\145\x6c" =>
"\x50\145\153\x65\x72\152\141\141\156\40\x57\x61\x6c\151",
"\166\141\x6c\x75\x65" => $siswa->pekerjaan_wali,
"\x69\143\157\156" =>
"\x66\141\x72\x20\x66\141\55\165\163\145\162",
"\x74\x79\x70\145" => "\x74\x65\170\x74",
],
[
"\156\141\x6d\x65" =>
"\x61\154\x61\x6d\x61\164\x5f\167\x61\x6c\151",
"\x6c\x61\142\x65\154" =>
"\x41\154\141\155\141\x74\40\x57\x61\x6c\x69",
"\x76\141\x6c\x75\145" => $siswa->alamat_wali,
"\x69\x63\x6f\x6e" =>
"\x66\141\x72\x20\146\x61\55\165\163\145\162",
"\x74\x79\x70\145" => "\x74\145\x78\164",
],
[
"\x6e\x61\x6d\145" => "\156\x6f\x68\x70\x5f\167\141\154\151",
"\154\x61\x62\145\154" =>
"\116\x6f\x2e\x20\110\x50\x20\x57\141\154\151",
"\166\141\154\165\x65" => $siswa->nohp_wali,
"\x69\x63\x6f\156" =>
"\146\141\162\40\x66\x61\55\165\163\x65\162",
"\x74\171\160\x65" => "\x6e\x75\x6d\x62\145\x72",
],
];
goto auNqW;
ihlHL:
$siswa = $this->master->getSiswaById($id);
goto HUBH0;
NpiVi:
if ($this->ion_auth->is_admin()) {
goto abpc9;
}
goto b0Y21;
b0Y21:
$data["\147\165\x72\x75"] = $this->dashboard->getDataGuruByUserId(
$user->id,
$tp->id_tp,
$smt->id_smt
);
goto wFaD0;
caReJ:
abpc9:
goto XYRJe;
Rj9gG:
}
public function updateData()
{
goto U35ba;
yAXg0:
exUOL:
goto NYnib;
uxU3D:
$tgl_lahir = $this->input->post(
"\x74\x61\x6e\147\147\x61\x6c\x5f\154\x61\150\151\162",
true
);
goto IJ0te;
NYnib:
$this->output_json($data);
goto duEdR;
OXPHw:
goto exUOL;
goto u1AOm;
yYfi0:
$data["\151\156\x73\x65\162\164"] = $input;
goto HICJP;
veiLT:
if ($this->form_validation->run() == false) {
goto CSNYs;
}
goto uxU3D;
IJ0te:
$tgl_masuk = $this->input->post(
"\164\141\150\x75\x6e\137\x6d\x61\x73\x75\x6b",
true
);
goto CM7X0;
YpCTz:
$u_nisn =
$siswa->nisn === $nisn
? ""
: "\174\x69\x73\x5f\165\x6e\x69\161\165\145\133\x6d\141\163\x74\x65\x72\137\x73\151\163\167\x61\x2e\x6e\151\x73\156\x5d";
goto aZW_P;
UXSNz:
$data["\151\x6e\163\145\x72\164"] = false;
goto AKp24;
GIF6B:
$this->db->update("\x62\165\153\x75\x5f\x69\x6e\144\x75\x6b");
goto yYfi0;
icA2Y:
$nisn = $this->input->post("\x6e\151\x73\x6e", true);
goto av0hA;
CM7X0:
$input = [
"\x6e\x69\x73\x6e" => $this->input->post("\156\x69\163\x6e", true),
"\x6e\x69\x73" => $this->input->post("\156\151\x73", true),
"\x6e\141\x6d\141" => $this->input->post("\156\x61\155\x61", true),
"\152\x65\x6e\x69\163\137\153\x65\154\x61\x6d\x69\156" => $this->input->post(
"\152\x65\156\151\x73\x5f\153\145\x6c\141\x6d\x69\156",
true
),
"\164\145\x6d\x70\x61\x74\137\154\141\x68\151\162" => $this->input->post(
"\164\x65\x6d\160\x61\x74\137\x6c\x61\150\151\162",
true
),
"\164\x61\156\x67\x67\x61\154\x5f\x6c\141\x68\x69\162" => $this->strContains(
$tgl_lahir,
"\60\60\x30\x30\x2d"
)
? null
: $tgl_lahir,
"\141\x67\x61\155\x61" => $this->input->post(
"\x61\x67\141\x6d\x61",
true
),
"\x73\x74\141\x74\x75\x73\x5f\x6b\x65\154\165\141\162\147\x61" => $this->input->post(
"\163\164\x61\164\165\163\x5f\153\x65\x6c\x75\x61\x72\147\141",
true
),
"\x61\156\141\153\x5f\153\145" => $this->input->post(
"\x61\x6e\141\x6b\x5f\153\x65",
true
),
"\x61\x6c\x61\155\x61\x74" => $this->input->post(
"\141\154\x61\x6d\x61\164",
true
),
"\162\x74" => $this->input->post("\162\164", true),
"\x72\167" => $this->input->post("\x72\x77", true),
"\x6b\x65\154\165\x72\141\150\141\x6e" => $this->input->post(
"\153\x65\154\x75\x72\x61\150\x61\x6e",
true
),
"\153\145\143\x61\155\141\x74\x61\x6e" => $this->input->post(
"\153\x65\x63\x61\155\141\164\141\156",
true
),
"\153\x61\x62\165\160\x61\x74\x65\156" => $this->input->post(
"\x6b\x61\x62\x75\x70\141\164\145\x6e",
true
),
"\160\x72\x6f\166\151\156\x73\x69" => $this->input->post(
"\x70\162\x6f\166\151\x6e\163\151",
true
),
"\153\157\x64\145\137\160\x6f\163" => $this->input->post(
"\153\x6f\144\145\x5f\x70\x6f\163",
true
),
"\x68\160" => $this->input->post("\x68\x70", true),
"\x6e\141\x6d\x61\137\141\171\141\x68" => $this->input->post(
"\x6e\x61\x6d\141\x5f\x61\x79\x61\x68",
true
),
"\156\x6f\150\160\x5f\x61\x79\x61\150" => $this->input->post(
"\156\x6f\150\x70\137\x61\171\x61\x68",
true
),
"\x70\145\x6e\x64\151\144\151\x6b\x61\x6e\137\x61\x79\x61\150" => $this->input->post(
"\x70\145\156\x64\x69\144\x69\x6b\x61\x6e\x5f\141\x79\x61\150",
true
),
"\x70\145\153\x65\162\152\141\x61\156\x5f\x61\x79\141\x68" => $this->input->post(
"\160\145\x6b\145\162\152\141\x61\x6e\x5f\141\x79\x61\150",
true
),
"\x61\x6c\x61\x6d\x61\164\137\x61\x79\x61\150" => $this->input->post(
"\141\x6c\141\x6d\x61\x74\137\x61\x79\141\150",
true
),
"\x6e\x61\x6d\x61\x5f\151\x62\165" => $this->input->post(
"\156\141\155\x61\x5f\x69\x62\165",
true
),
"\156\157\x68\160\x5f\x69\142\x75" => $this->input->post(
"\x6e\157\x68\x70\137\x69\142\x75",
true
),
"\x70\x65\156\x64\x69\x64\151\x6b\x61\156\137\151\142\165" => $this->input->post(
"\x70\145\x6e\x64\151\x64\x69\x6b\141\156\x5f\151\142\165",
true
),
"\160\145\153\145\x72\152\x61\141\156\x5f\x69\142\x75" => $this->input->post(
"\x70\145\153\x65\162\152\x61\141\156\x5f\151\142\x75",
true
),
"\x61\x6c\x61\155\x61\164\x5f\x69\x62\165" => $this->input->post(
"\141\154\x61\155\x61\x74\137\x69\x62\165",
true
),
"\x6e\141\155\141\137\x77\141\x6c\x69" => $this->input->post(
"\x6e\x61\x6d\141\137\x77\x61\x6c\151",
true
),
"\x70\145\x6e\x64\151\144\151\153\x61\x6e\137\167\141\154\x69" => $this->input->post(
"\x70\x65\x6e\144\151\x64\151\153\141\x6e\137\167\x61\x6c\151",
true
),
"\160\145\153\145\162\152\x61\x61\156\x5f\167\x61\x6c\x69" => $this->input->post(
"\160\x65\x6b\x65\x72\152\141\141\x6e\x5f\x77\x61\x6c\151",
true
),
"\x6e\x6f\x68\x70\137\167\141\154\x69" => $this->input->post(
"\156\x6f\150\x70\137\167\x61\154\151",
true
),
"\x61\154\141\155\x61\x74\x5f\167\x61\154\151" => $this->input->post(
"\141\x6c\x61\x6d\141\164\x5f\x77\141\x6c\151",
true
),
"\x74\x61\150\165\156\137\x6d\x61\x73\x75\x6b" => $this->strContains(
$tgl_masuk,
"\x30\x30\60\60\x2d"
)
? null
: $tgl_masuk,
"\153\x65\154\x61\163\x5f\x61\x77\141\154" => $this->input->post(
"\x6b\145\154\x61\x73\x5f\x61\167\x61\154",
true
),
"\164\x67\x6c\x5f\x6c\x61\150\x69\162\x5f\x61\171\x61\150" => $this->input->post(
"\x74\147\154\x5f\x6c\x61\150\x69\162\137\141\x79\x61\150",
true
),
"\x74\147\154\x5f\154\x61\x68\151\x72\x5f\x69\x62\x75" => $this->input->post(
"\164\x67\x6c\x5f\154\x61\150\x69\x72\x5f\x69\142\165",
true
),
"\x74\147\154\137\x6c\141\150\151\x72\137\167\141\x6c\151" => $this->input->post(
"\164\147\x6c\137\x6c\141\150\x69\162\137\x77\x61\154\151",
true
),
"\x73\145\x6b\x6f\154\141\150\137\141\163\141\x6c" => $this->input->post(
"\163\145\153\157\154\x61\150\x5f\141\163\x61\154",
true
),
"\146\x6f\x74\x6f" =>
$siswa->foto != null && $siswa->foto != ""
? $siswa->foto
: "\x75\160\154\157\x61\144\163\x2f\x66\x6f\x74\157\137\x73\x69\163\167\141\x2f" .
$nis .
"\x2e\152\160\147",
];
goto Ey7Lm;
HICJP:
$data["\164\145\170\x74"] =
"\x53\151\163\167\141\x20\142\x65\162\x68\x61\x73\x69\x6c\x20\x64\x69\x70\145\162\142\x61\x68\x61\162\x75\151";
goto OXPHw;
UqYFG:
$this->db->where("\x69\144\137\x73\x69\163\167\141", $siswa->id_siswa);
goto GIF6B;
u1AOm:
CSNYs:
goto UXSNz;
B5oLh:
$nis = $this->input->post("\x6e\x69\163", true);
goto icA2Y;
av0hA:
$siswa = $this->master->getSiswaById($id_siswa);
goto fiUCb;
ECKoF:
$id_siswa = $this->input->post(
"\151\x64\x5f\163\151\x73\x77\x61",
true
);
goto B5oLh;
RATLF:
$this->db->set(
"\x73\x74\x61\x74\x75\x73",
$this->input->post("\x73\x74\x61\x74\165\x73", true)
);
goto UqYFG;
fiUCb:
$u_nis =
$siswa->nis === $nis
? ""
: "\x7c\x69\x73\137\165\x6e\x69\x71\165\x65\x5b\155\x61\x73\164\x65\162\137\x73\151\x73\167\x61\56\156\x69\x73\135";
goto YpCTz;
aZW_P:
$this->form_validation->set_rules(
"\156\x69\163",
"\116\111\x53",
"\162\145\x71\165\x69\x72\145\x64\174\x6e\x75\155\x65\162\x69\x63\174\164\x72\x69\x6d\174\155\151\x6e\x5f\x6c\145\x6e\x67\x74\x68\x5b\66\x5d\174\x6d\141\170\137\154\x65\x6e\x67\164\150\133\x33\60\135" .
$u_nis
);
goto veiLT;
U35ba:
$this->load->model(
"\115\x61\x73\x74\x65\162\x5f\155\x6f\x64\145\154",
"\x6d\141\163\x74\145\x72"
);
goto ECKoF;
AKp24:
$data["\x74\x65\170\x74"] =
"\x4e\111\123\x20\x6b\x75\162\141\x6e\147\x20\144\141\162\151\40\66\x20\x61\156\x67\x6b\x61\54\x20\141\164\x61\165\40\x64\x61\164\141\40\123\x75\144\141\x68\40\x61\144\141\54\x20\x50\x61\163\x74\x69\x6b\141\x6e\40\x4e\111\123\54\40\x64\141\x6e\x20\116\x49\123\116\40\x62\x65\x6c\x75\x6d\x20\144\151\147\165\156\x61\x6b\141\x6e\40\163\151\163\167\141\40\x6c\x61\151\x6e";
goto yAXg0;
Ey7Lm:
$this->master->update(
"\x6d\x61\x73\164\x65\162\x5f\x73\x69\163\x77\x61",
$input,
"\x69\x64\137\x73\151\x73\167\141",
$id_siswa
);
goto RATLF;
duEdR:
}
function strContains($string, $val)
{
return strpos($string, $val) !== false;
}
function uploadFile($id_siswa)
{
goto Uj29B;
YpuSO:
$data["\x73\x72\143"] = "";
goto ruV3Y;
OoKSH:
$siswa = $this->master->getSiswaById($id_siswa);
goto eUcHJ;
hefzY:
$this->upload->initialize($config);
goto IEuQ0;
fjI3U:
tknvd:
goto WtBTu;
hICze:
UDVHs:
goto X1W2b;
fR0zl:
$result = $this->upload->data();
goto PfX3w;
qatPs:
$config["\157\x76\x65\x72\167\162\151\x74\x65"] = true;
goto c9iK0;
X1W2b:
$data["\x74\171\x70\x65"] =
$_FILES["\146\x6f\x74\157"]["\x74\171\160\145"];
goto grXZZ;
jMai5:
$data["\x66\x69\154\145\156\x61\155\x65"] = pathinfo(
$result["\x66\x69\154\145\137\x6e\x61\155\145"],
PATHINFO_FILENAME
);
goto z7DpZ;
IEuQ0:
if (!$this->upload->do_upload("\146\x6f\164\157")) {
goto W117L;
}
goto fR0zl;
iek0s:
W117L:
goto JY1Jf;
XBOTk:
$config["\165\x70\154\157\141\x64\137\x70\141\164\x68"] =
"\56\57\x75\x70\x6c\157\x61\144\163\x2f\146\157\x74\x6f\137\163\151\x73\167\141\x2f";
goto UY9Aq;
Iij7R:
$data["\163\x72\143"] = $this->upload->display_errors();
goto hICze;
WiKYa:
wJ_Ah:
goto XBOTk;
UY9Aq:
$config["\x61\154\154\x6f\167\145\144\x5f\164\x79\160\145\163"] =
"\147\151\x66\174\x6a\x70\147\x7c\x70\x6e\x67\x7c\x6a\x70\145\x67\x7c\112\120\x45\107\x7c\112\x50\x47\174\x50\116\x47\174\x47\x49\106";
goto qatPs;
WtBTu:
$this->output_json($data);
goto MpHEE;
grXZZ:
$data["\x73\x69\x7a\x65"] =
$_FILES["\x66\x6f\x74\157"]["\x73\151\172\x65"];
goto fjI3U;
eUcHJ:
if (isset($_FILES["\146\157\164\157"]["\156\141\x6d\x65"])) {
goto wJ_Ah;
}
goto YpuSO;
PfX3w:
$data["\163\162\143"] =
base_url() .
"\165\x70\x6c\157\141\x64\x73\x2f\x66\157\x74\x6f\x5f\163\x69\x73\167\141\x2f" .
$result["\x66\x69\x6c\145\x5f\x6e\x61\x6d\x65"];
goto jMai5;
ckC7q:
goto UDVHs;
goto iek0s;
Ytgzn:
$this->db->where("\151\x64\x5f\163\151\x73\167\141", $id_siswa);
goto jtEHg;
z7DpZ:
$data["\163\164\x61\164\x75\163"] = true;
goto P2kAa;
JY1Jf:
$data["\x73\164\x61\x74\165\x73"] = false;
goto Iij7R;
ruV3Y:
goto tknvd;
goto WiKYa;
P2kAa:
$this->db->set(
"\146\157\x74\x6f",
"\x75\160\154\157\x61\x64\163\57\x66\157\164\x6f\137\163\x69\163\x77\141\57" .
$result["\x66\151\154\x65\137\156\141\155\x65"]
);
goto Ytgzn;
Uj29B:
$this->load->model(
"\x4d\141\163\164\x65\x72\137\x6d\157\x64\x65\x6c",
"\x6d\141\x73\164\x65\162"
);
goto OoKSH;
c9iK0:
$config["\x66\151\x6c\x65\x5f\156\141\x6d\x65"] = $siswa->nis;
goto hefzY;
jtEHg:
$this->db->update("\x6d\141\x73\x74\145\162\137\163\151\163\167\141");
goto ckC7q;
MpHEE:
}
function deleteFile($id_siswa)
{
goto e0yU3;
lseXH:
$file_name = str_replace(base_url(), "", $src ?? "");
goto SQO1m;
ulApc:
$this->db->where("\151\x64\x5f\163\x69\x73\167\x61", $id_siswa);
goto i2nMq;
sjl1A:
$this->db->set("\x66\x6f\164\157", "");
goto ulApc;
duaoU:
WBIgV:
goto ewq7a;
i2nMq:
$this->db->update("\155\141\163\164\x65\x72\137\x73\x69\x73\167\x61");
goto Jtqlq;
SQO1m:
if (
!(
$file_name !=
"\x61\x73\163\x65\x74\163\x2f\151\155\x67\57\x73\x69\163\167\141\x2e\x70\156\147"
)
) {
goto eBR9H;
}
goto LWJKz;
Jtqlq:
echo "\x46\x69\x6c\145\x20\x44\x65\154\145\164\x65\40\123\x75\x63\x63\x65\163\x73\146\165\x6c\154\171";
goto duaoU;
LWJKz:
if (!unlink($file_name)) {
goto WBIgV;
}
goto sjl1A;
ewq7a:
eBR9H:
goto Cbnvf;
e0yU3:
$src = $this->input->post("\163\162\143");
goto lseXH;
Cbnvf:
}
public function delete()
{
goto bWTvn;
PxvT7:
foreach ($chk as $id) {
goto Xgeyh;
OAMTL:
$this->db->update("\x62\x75\x6b\x75\x5f\151\156\144\165\x6b");
goto N2QlH;
gFE5Z:
$this->db->where("\151\144\x5f\163\151\x73\167\141", $id);
goto OAMTL;
N2QlH:
OsHsm:
goto BgID8;
Xgeyh:
$this->db->set("\163\164\x61\164\165\x73", "\63");
goto gFE5Z;
BgID8:
}
goto fIOhF;
l_MEl:
ZVP2u:
goto PxvT7;
rA92W:
goto nYOK3;
goto l_MEl;
dcdg5:
goto nYOK3;
goto Rjghi;
Sv8fs:
if (
!$this->master->delete(
"\x6d\x61\x73\x74\145\x72\137\x73\x69\163\167\x61",
$chk,
"\151\x64\137\x73\x69\163\x77\141"
)
) {
goto Dtp7p;
}
goto C2fI5;
C2fI5:
$this->master->delete(
"\142\165\153\165\137\151\156\x64\165\x6b",
$chk,
"\151\x64\x5f\163\x69\x73\x77\141"
);
goto rE9wf;
bWTvn:
$this->load->model(
"\x4d\141\163\164\x65\162\x5f\155\157\144\x65\x6c",
"\x6d\141\x73\x74\x65\x72"
);
goto jJ5_K;
fIOhF:
mNhQY:
goto s4AfX;
PPKsy:
if ($aksi == "\x68\x61\160\165\163") {
goto rcOY0;
}
goto rA92W;
Rjghi:
rcOY0:
goto Sv8fs;
pjO33:
if ($aksi == "\160\151\x6e\x64\141\x68") {
goto ZVP2u;
}
goto GOur6;
xqwk0:
YVDme:
goto AEhlI;
rE9wf:
Dtp7p:
goto i7QlP;
AEhlI:
foreach ($chk as $id) {
goto PLQfu;
cU8L8:
$this->db->where("\x69\144\137\x73\151\x73\x77\x61", $id);
goto bk_Ii;
bk_Ii:
$this->db->update("\142\x75\153\x75\x5f\151\156\x64\x75\153");
goto hjxT_;
PLQfu:
$this->db->set("\x73\x74\x61\x74\165\x73", "\64");
goto cU8L8;
hjxT_:
MHsuB:
goto HpfHv;
HpfHv:
}
goto PMtpx;
GOur6:
if ($aksi == "\x6b\x65\x6c\165\141\162") {
goto YVDme;
}
goto PPKsy;
PLvf2:
if (!$chk) {
goto zOojP;
}
goto Bc0O9;
pIliS:
$this->output_json([
"\x73\x74\x61\x74\165\x73" => true,
"\x74\157\164\141\x6c" => count($chk),
"\x6c\141\x73\164" => $last,
]);
goto rlN0k;
ISpwf:
IqTdD:
goto xPmBR;
rlN0k:
goto IqTdD;
goto sPGNv;
jJ5_K:
$chk = $this->input->post("\143\150\145\143\153\x65\144", true);
goto qQfww;
Bc0O9:
$last = $aksi;
goto pjO33;
i7QlP:
nYOK3:
goto pIliS;
s4AfX:
goto nYOK3;
goto xqwk0;
Vwfsi:
$this->output_json(["\163\x74\141\x74\165\x73" => false]);
goto ISpwf;
PMtpx:
j_liD:
goto dcdg5;
qQfww:
$aksi = $this->input->post("\141\x6b\163\x69", true);
goto PLvf2;
sPGNv:
zOojP:
goto Vwfsi;
xPmBR:
}
public function do_import()
{
goto rfbTq;
BGJxz:
MQXQu:
goto e1qq0;
zivNt:
foreach ($input as $value) {
goto BAGOr;
plRUe:
a9MZ8:
goto yrUGW;
BAGOr:
$siswa = [
"\x6e\x69\x73\x6e" => $value["\x32"] ?? "",
"\x6e\x69\x73" => $value["\63"] ?? "",
"\156\x61\155\141" => $value["\64"] ?? "",
"\152\145\x6e\151\x73\137\153\145\x6c\x61\x6d\x69\x6e" =>
$value["\x35"] ?? "",
"\x75\x73\145\162\156\141\x6d\x65" => $value["\x36"] ?? "",
"\x70\141\163\x73\167\x6f\162\144" => $value["\x37"] ?? "",
"\153\145\154\x61\163\137\141\x77\x61\154" =>
$value["\70"] ?? "",
"\164\x61\150\x75\x6e\x5f\155\141\x73\165\x6b" =>
$value["\x39"] ?? "",
"\163\x65\x6b\x6f\154\141\150\x5f\x61\x73\141\154" =>
$value["\61\60"] ?? "",
"\x74\x65\155\160\x61\164\137\154\x61\x68\x69\162" =>
$value["\x31\x31"] ?? "",
"\164\141\156\x67\147\x61\x6c\137\154\141\x68\x69\x72" =>
$value["\x31\x32"] ?? "",
"\141\x67\x61\x6d\x61" => $value["\x31\63"] ?? "",
"\150\x70" => $value["\x31\64"] ?? "\x30",
"\145\155\141\151\154" => $value["\61\x35"] ?? "",
"\141\x6e\141\x6b\137\153\x65" => $value["\61\66"] ?? "\61",
"\163\164\x61\x74\165\163\137\x6b\x65\154\x75\x61\x72\x67\141" =>
$value["\x31\x37"] ?? "\61",
"\x61\x6c\x61\x6d\141\x74" => $value["\61\x38"] ?? "",
"\x72\164" => $value["\x31\71"] ?? "",
"\x72\x77" => $value["\62\60"] ?? "",
"\x6b\x65\154\x75\162\141\150\x61\x6e" =>
$value["\x32\61"] ?? "",
"\153\x65\x63\141\x6d\141\x74\141\156" =>
$value["\x32\x32"] ?? "",
"\x6b\141\142\x75\x70\141\164\x65\x6e" =>
$value["\62\63"] ?? "",
"\x70\x72\157\166\x69\156\x73\x69" => $value["\x32\x34"] ?? "",
"\x6b\x6f\144\145\137\160\157\163" => $value["\62\65"] ?? "",
"\x6e\x61\x6d\141\137\x61\x79\x61\150" =>
$value["\62\x36"] ?? "",
"\x74\147\x6c\137\x6c\x61\150\151\162\137\141\171\141\x68" =>
$value["\62\67"] ?? "",
"\160\x65\x6e\x64\151\144\x69\153\141\x6e\x5f\141\171\x61\x68" =>
$value["\x32\70"] ?? "",
"\x70\x65\x6b\145\162\x6a\x61\x61\156\137\x61\171\141\x68" =>
$value["\x32\x39"] ?? "",
"\156\x6f\150\x70\137\x61\x79\141\x68" =>
$value["\x33\60"] ?? "",
"\141\x6c\x61\155\x61\x74\x5f\x61\x79\x61\x68" =>
$value["\63\x31"] ?? "",
"\156\x61\155\141\x5f\151\142\x75" => $value["\63\62"] ?? "",
"\x74\147\154\x5f\x6c\x61\x68\151\162\x5f\x69\142\x75" =>
$value["\x33\x33"] ?? "",
"\160\x65\156\144\151\x64\x69\153\141\156\137\151\x62\165" =>
$value["\x33\64"] ?? "",
"\160\x65\x6b\145\162\152\141\141\x6e\137\151\142\165" =>
$value["\63\x35"] ?? "",
"\156\157\150\x70\x5f\151\142\165" => $value["\x33\x36"] ?? "",
"\x61\154\x61\155\x61\x74\x5f\x69\142\165" =>
$value["\x33\67"] ?? "",
"\156\x61\155\x61\x5f\x77\x61\x6c\151" =>
$value["\63\x38"] ?? "",
"\164\x67\154\137\x6c\x61\150\151\162\x5f\167\x61\x6c\x69" =>
$value["\x33\x39"] ?? "",
"\160\x65\x6e\x64\x69\x64\x69\x6b\141\156\137\x77\x61\154\x69" =>
$value["\64\60"] ?? "",
"\x70\145\x6b\x65\162\152\141\141\x6e\x5f\167\x61\154\151" =>
$value["\64\61"] ?? "",
"\x6e\157\x68\160\x5f\x77\x61\154\x69" =>
$value["\64\x32"] ?? "",
"\141\154\x61\155\x61\164\x5f\x77\x61\154\x69" =>
$value["\x34\x33"] ?? "",
];
goto B1qga;
ono2c:
$save = $this->db->insert(
"\x6d\141\163\x74\x65\162\x5f\x73\x69\x73\167\141",
$siswa
);
goto plRUe;
B1qga:
$siswa["\x66\x6f\164\x6f"] =
"\x75\160\x6c\157\141\x64\163\57\x66\157\164\157\137\x73\x69\163\x77\141\57" .
$siswa["\156\x69\163"] .
"\56\152\x70\x67";
goto k_Kei;
k_Kei:
$this->db->set("\x75\x69\x64", "\125\x55\111\x44\x28\51", false);
goto ono2c;
yrUGW:
}
goto a6108;
wS3ex:
$data = [
"\x73\x74\141\x74\165\163" => true,
"\145\x72\x72\157\x72\163" => [],
];
goto z4F0e;
z4F0e:
$this->output_json($data);
goto odP1h;
mjueX:
VBzIg:
goto XKWzo;
XKWzo:
$this->db->trans_complete();
goto wS3ex;
E0ZhR:
if (count($errors) > 0) {
goto nTFsW;
}
goto T60l6;
fKoF0:
$data = [
"\163\x74\141\164\x75\x73" => false,
"\x65\x72\162\157\162\x73" => $errors,
"\x64\x75\x70\x6c\x69\x6b\x61\164" => $duplikat,
];
goto fxOQT;
hhUVq:
foreach ($input as $value) {
goto sEq9J;
w6vYY:
$errors[$data["\156\141\155\141"]] = [
"\156\141\x6d\x61" => form_error("\x6e\141\155\141"),
"\x6e\151\x73" => form_error("\156\151\x73"),
"\156\x69\163\x6e" => form_error("\156\x69\163\x6e"),
"\x75\x73\x65\162\x6e\141\x6d\145" => form_error(
"\x75\163\x65\x72\x6e\x61\x6d\x65"
),
"\160\141\163\x73\x77\x6f\162\x64" => form_error(
"\160\x61\x73\x73\167\157\x72\x64"
),
];
goto wCsOP;
wCsOP:
Qx_99:
goto aaaUW;
U3g5I:
if (!($this->form_validation->run() == false)) {
goto Qx_99;
}
goto I1eUe;
GaUXr:
$this->form_validation->set_rules(
"\x6e\x69\x73\156",
"\x4e\111\x53\116",
"\x72\145\161\165\x69\x72\145\144\x7c\x6e\165\x6d\145\162\x69\143\174\x74\162\x69\155\174\155\x69\156\x5f\x6c\145\156\x67\x74\x68\x5b\66\135\x7c\155\x61\x78\x5f\x6c\x65\156\x67\x74\150\x5b\62\60\135\x7c\x69\163\x5f\x75\156\151\x71\165\x65\x5b\155\141\163\164\145\162\137\163\x69\163\167\x61\56\156\151\163\156\x5d"
);
goto Os53z;
MN2W2:
$this->form_validation->set_rules(
"\x6e\x69\x73",
"\116\x49\x53",
"\162\x65\161\165\151\x72\145\x64\174\156\165\155\x65\x72\x69\x63\x7c\x74\x72\x69\155\174\155\x69\x6e\x5f\x6c\x65\x6e\x67\164\150\x5b\x36\135\x7c\x6d\x61\170\137\x6c\x65\156\x67\x74\150\133\x33\60\135\x7c\x69\x73\x5f\165\156\151\161\165\x65\133\155\x61\x73\164\x65\162\137\163\x69\x73\x77\141\x2e\156\151\163\135"
);
goto GaUXr;
m32yu:
$this->form_validation->set_data($data);
goto MN2W2;
sEq9J:
$data = [
"\156\151\x73\156" => $value["\62"] ?? "",
"\x6e\151\163" => $value["\63"] ?? "",
"\x6e\x61\x6d\141" => $value["\x34"] ?? "",
"\165\163\145\162\x6e\x61\155\x65" => $value["\x36"] ?? "",
"\x70\141\x73\163\167\157\162\144" => $value["\x37"] ?? "",
];
goto m32yu;
jnkVA:
$this->form_validation->set_rules(
"\x70\141\x73\x73\x77\x6f\162\x64",
"\120\x61\163\163\x77\x6f\162\144",
"\162\145\161\x75\x69\162\x65\x64\174\164\x72\x69\155\x7c\151\163\x5f\x75\156\x69\161\x75\x65\x5b\x6d\141\163\164\x65\x72\x5f\x73\x69\x73\167\x61\56\x75\x73\145\162\156\x61\155\145\x5d"
);
goto U3g5I;
Os53z:
$this->form_validation->set_rules(
"\x75\x73\145\x72\x6e\x61\x6d\145",
"\x55\x73\x65\x72\156\x61\155\x65",
"\x72\x65\161\165\151\x72\x65\144\174\164\162\151\155\174\151\163\137\x75\156\151\161\165\145\133\x6d\x61\163\x74\x65\x72\137\x73\x69\163\x77\141\x2e\x75\163\x65\162\156\x61\x6d\145\135"
);
goto jnkVA;
I1eUe:
$duplikat[] = $data;
goto w6vYY;
aaaUW:
FuaoW:
goto XQJFt;
XQJFt:
}
goto KVQan;
jZLbe:
$uids = $this->db
->select("\x69\144\137\163\151\163\167\141\x2c\40\x75\x69\144")
->from("\155\141\163\164\145\162\137\x73\151\x73\x77\x61")
->get()
->result();
goto DmYT6;
rfbTq:
$input = $this->input->post("\x73\151\163\x77\x61", true);
goto MaXro;
MaXro:
$errors = [];
goto dzlY1;
a6108:
gcKai:
goto jZLbe;
dzlY1:
$duplikat = [];
goto hhUVq;
HTzCK:
nTFsW:
goto fKoF0;
T60l6:
$this->db->trans_start();
goto zivNt;
fxOQT:
$this->output_json($data);
goto BGJxz;
odP1h:
goto MQXQu;
goto HTzCK;
DmYT6:
foreach ($uids as $uid) {
goto l7ocO;
YlHnV:
if (!($check->get()->num_rows() == 0)) {
goto Qxaxq;
}
goto ni5Po;
l7ocO:
$check = $this->db
->select("\x69\x64\x5f\163\151\163\x77\x61")
->from("\x62\165\153\x75\x5f\151\x6e\144\x75\153")
->where("\x69\144\x5f\163\x69\163\x77\141", $uid->id_siswa);
goto YlHnV;
ni5Po:
$this->db->insert("\x62\165\x6b\x75\137\151\156\x64\x75\153", $uid);
goto lzZqN;
lzZqN:
Qxaxq:
goto lKP6m;
lKP6m:
kxGI1:
goto QBh5W;
QBh5W:
}
goto mjueX;
KVQan:
bbePc:
goto E0ZhR;
e1qq0:
}
public function update()
{
goto WaxU2;
E2mBq:
$data = [
"\x75\163\145\162" => $user,
"\x6a\x75\x64\165\x6c" =>
"\125\160\x64\141\x74\x65\40\x44\x61\164\141\x20\123\x69\163\x77\141",
"\163\165\x62\x6a\x75\144\x75\x6c" =>
"\x55\160\144\141\164\x65\40\104\x61\x74\x61\x20\x53\151\x73\x77\141",
"\x73\145\x74\x74\x69\x6e\x67" => $this->dashboard->getSetting(),
];
goto RH2Zf;
fe5Da:
$this->load->view(
"\137\x74\145\155\x70\x6c\141\164\x65\x73\x2f\x64\141\163\150\x62\x6f\x61\x72\144\x2f\137\x68\x65\141\144\x65\x72",
$data
);
goto kxCoW;
J1FdC:
$this->load->view(
"\137\164\145\155\160\154\x61\x74\145\163\x2f\x64\141\x73\150\142\157\x61\162\144\x2f\x5f\x66\x6f\157\164\145\x72"
);
goto C21yp;
AfIOZ:
$data["\x73\x6d\164"] = $this->dashboard->getSemester();
goto fCq2z;
oHZl1:
$data["\164\x70"] = $this->dashboard->getTahun();
goto AfIOZ;
Vfa7a:
$smt = $this->dashboard->getSemesterActive();
goto r7Jrx;
r7Jrx:
$data["\164\160\137\x61\143\x74\151\x76\145"] = $tp;
goto U_V3q;
fCq2z:
$data[
"\160\162\x6f\x66\x69\x6c\145"
] = $this->dashboard->getProfileAdmin($user->id);
goto R8D89;
tawfx:
$this->load->model(
"\x44\162\157\160\x64\157\167\x6e\x5f\x6d\157\144\145\154",
"\x64\x72\157\x70\144\x6f\167\156"
);
goto n6TlU;
RH2Zf:
$tp = $this->dashboard->getTahunActive();
goto Vfa7a;
n6TlU:
$user = $this->ion_auth->user()->row();
goto E2mBq;
R8D89:
$data["\164\x69\x70\145"] = "\165\160\x64\x61\164\145";
goto j9H3N;
WaxU2:
$this->load->model(
"\x44\141\x73\x68\142\x6f\x61\162\144\137\155\157\144\145\154",
"\144\141\x73\x68\x62\x6f\x61\162\144"
);
goto tawfx;
j9H3N:
$data["\x6b\145\154\141\x73"] = $this->dropdown->getAllKelas(
$tp->id_tp,
$smt->id_smt
);
goto fe5Da;
U_V3q:
$data["\x73\155\x74\137\x61\x63\x74\151\166\x65"] = $smt;
goto oHZl1;
kxCoW:
$this->load->view(
"\x6d\141\x73\164\145\162\57\x73\x69\x73\167\x61\x2f\165\160\144\141\x74\145"
);
goto J1FdC;
C21yp:
}
public function downloadData($id_kelas)
{
goto hMIiK;
bmqOF:
foreach ($siswas as $ind => $siswa) {
$siswa->no = $ind + 1;
h1M8T:
}
goto gpc0x;
sWi2o:
$this->output_json([
"\x73\164\x61\x74\165\163" => true,
"\163\151\x73\167\141" => $siswas,
]);
goto ns80c;
d6MPk:
$siswas = $this->master->getSiswaByKelas(
$tp->id_tp,
$smt->id_smt,
$id_kelas
);
goto bmqOF;
QQcp9:
$smt = $this->master->getSemesterActive();
goto d6MPk;
gpc0x:
J9e2f:
goto sWi2o;
nSxiK:
$tp = $this->master->getTahunActive();
goto QQcp9;
hMIiK:
$this->load->model(
"\x4d\141\163\x74\x65\162\x5f\155\157\144\145\x6c",
"\x6d\x61\x73\x74\x65\162"
);
goto nSxiK;
ns80c:
}
public function updateAll()
{
goto C8viY;
sfbF9:
foreach ($input as $value) {
goto pQD4r;
pQD4r:
$siswa = [
"\156\151\x73\x6e" => $value["\x32"] ?? "",
"\x6e\151\163" => $value["\x33"] ?? "",
"\x6e\141\x6d\x61" => $value["\64"] ?? "",
"\x6a\145\x6e\151\x73\x5f\x6b\145\154\x61\x6d\x69\156" =>
$value["\x35"] ?? "",
"\x75\163\145\162\x6e\x61\x6d\145" => $value["\66"] ?? "",
"\x70\x61\163\163\x77\x6f\x72\x64" => $value["\67"] ?? "",
"\x6b\145\154\x61\x73\x5f\141\x77\141\x6c" =>
$value["\x38"] ?? "",
"\x74\x61\150\165\156\137\155\x61\163\x75\153" =>
$value["\71"] ?? "",
"\163\x65\x6b\x6f\x6c\141\150\137\141\x73\141\154" =>
$value["\61\60"] ?? "",
"\164\x65\x6d\x70\141\164\x5f\154\141\150\x69\162" =>
$value["\x31\x31"] ?? "",
"\x74\x61\x6e\147\147\x61\x6c\x5f\x6c\x61\150\x69\x72" =>
$value["\x31\x32"] ?? "",
"\x61\x67\x61\x6d\141" => $value["\61\x33"] ?? "",
"\150\160" => $value["\61\x34"] ?? "\60",
"\x65\155\141\151\154" => $value["\61\65"] ?? "",
"\x61\x6e\x61\153\137\153\145" => $value["\61\66"] ?? "\x31",
"\x73\x74\x61\x74\165\x73\x5f\x6b\145\x6c\165\x61\162\147\141" =>
$value["\x31\x37"] ?? "\61",
"\x61\154\141\x6d\x61\x74" => $value["\61\70"] ?? "",
"\162\164" => $value["\61\71"] ?? "",
"\x72\167" => $value["\x32\x30"] ?? "",
"\153\145\154\165\162\x61\150\141\156" =>
$value["\62\x31"] ?? "",
"\153\145\143\141\x6d\141\164\141\156" =>
$value["\62\62"] ?? "",
"\153\x61\x62\165\x70\x61\164\145\x6e" =>
$value["\x32\63"] ?? "",
"\x70\162\157\x76\151\156\x73\151" => $value["\x32\x34"] ?? "",
"\x6b\157\x64\145\x5f\x70\157\x73" => $value["\62\x35"] ?? "",
"\156\141\155\x61\x5f\x61\171\141\x68" =>
$value["\x32\66"] ?? "",
"\x74\147\x6c\x5f\154\x61\150\x69\162\x5f\141\171\x61\x68" =>
$value["\62\x37"] ?? "",
"\x70\x65\x6e\144\151\144\151\x6b\141\x6e\x5f\x61\x79\141\150" =>
$value["\62\70"] ?? "",
"\160\x65\x6b\x65\x72\152\141\141\156\137\x61\x79\x61\150" =>
$value["\62\71"] ?? "",
"\x6e\157\x68\x70\137\x61\171\141\x68" =>
$value["\63\x30"] ?? "",
"\x61\x6c\x61\x6d\x61\x74\137\141\171\141\150" =>
$value["\63\x31"] ?? "",
"\x6e\x61\155\141\x5f\151\142\x75" => $value["\63\x32"] ?? "",
"\164\x67\154\137\x6c\141\x68\151\x72\137\151\x62\x75" =>
$value["\x33\x33"] ?? "",
"\x70\x65\156\x64\x69\144\x69\x6b\141\x6e\x5f\x69\x62\x75" =>
$value["\63\x34"] ?? "",
"\x70\x65\153\x65\162\x6a\x61\x61\x6e\x5f\x69\142\165" =>
$value["\x33\x35"] ?? "",
"\156\157\150\160\137\x69\x62\x75" => $value["\x33\x36"] ?? "",
"\x61\154\141\x6d\141\164\137\x69\142\x75" =>
$value["\63\x37"] ?? "",
"\x6e\141\x6d\141\137\167\141\154\151" =>
$value["\x33\x38"] ?? "",
"\x74\147\x6c\137\154\141\x68\x69\162\x5f\167\141\x6c\151" =>
$value["\x33\71"] ?? "",
"\160\x65\x6e\x64\x69\x64\x69\153\x61\x6e\137\x77\141\x6c\151" =>
$value["\64\60"] ?? "",
"\x70\145\153\145\162\152\141\x61\156\137\167\x61\x6c\x69" =>
$value["\64\x31"] ?? "",
"\156\157\150\160\137\x77\141\154\151" =>
$value["\64\x32"] ?? "",
"\141\154\141\x6d\141\164\137\167\141\x6c\x69" =>
$value["\x34\x33"] ?? "",
];
goto g3x90;
NFnrC:
PK4y8:
goto EObU4;
HQe5B:
$save = $this->db->update(
"\155\x61\x73\x74\x65\162\x5f\x73\x69\x73\x77\x61",
$siswa,
["\x69\144\x5f\x73\151\x73\167\x61" => $value["\x34\64"]]
);
goto NFnrC;
g3x90:
$siswa["\146\157\164\x6f"] =
"\165\160\154\157\x61\x64\x73\x2f\146\157\164\x6f\137\163\x69\163\x77\x61\x2f" .
$value["\x33"] .
"\x2e\152\160\147";
goto HQe5B;
EObU4:
}
goto Toub8;
t_NlV:
$data = [
"\x73\164\141\x74\x75\163" => $save ?? false,
"\145\162\162\x6f\x72\163" => [],
];
goto U2ijM;
Toub8:
gKoYd:
goto hNikW;
U2ijM:
$this->output_json($data);
goto PgY9I;
hNikW:
$this->db->trans_complete();
goto t_NlV;
C8viY:
$input = $this->input->post("\163\x69\x73\167\141", true);
goto CO8cU;
CO8cU:
$this->db->trans_start();
goto sfbF9;
PgY9I:
}
public function update_foto()
{
goto gtEok;
gtEok:
$input = $this->input->post("\x73\x69\x73\x77\141", true);
goto ffSz3;
TlCPW:
YHqjg:
goto lu_FN;
ykmgK:
if (count($errors) > 0) {
goto qQTal;
}
goto jbe7x;
jEWlN:
goto YHqjg;
goto I6xec;
ltdIF:
$duplikat = [];
goto VIhjS;
kse6r:
NJFhZ:
goto Cjapu;
Q1unB:
foreach ($input as $value) {
goto ivY_a;
xxWkq:
$siswa = [
"\156\151\x73" => $value["\156\151\163"] ?? "",
"\146\x6f\164\157" => $foto,
];
goto V_ryn;
MWrWF:
$base64_image_string = $value["\146\x6f\164\157"];
goto blF3o;
NcysT:
$extension = "\x6a\x70\147";
goto SAyd5;
E2oFC:
if (!($extension == "\x6a\160\x65\147")) {
goto RlmWa;
}
goto NcysT;
ivY_a:
$foto =
"\x75\x70\x6c\157\x61\144\163\x2f\x66\157\164\x6f\137\163\151\163\x77\141\x2f" .
trim($value["\x6e\151\x73"] ?? "\x30\x30") .
"\x2e\152\160\x67";
goto VkR1i;
VkR1i:
if (!isset($value["\146\x6f\164\x6f"])) {
goto FB8Ty;
}
goto MWrWF;
SAyd5:
RlmWa:
goto Annkc;
V_ryn:
$save = $this->db->update(
"\x6d\141\163\x74\x65\x72\137\x73\x69\163\x77\141",
$siswa,
["\x69\144\x5f\163\151\x73\167\141" => $value["\x69\144"]]
);
goto marwO;
jMPb9:
FB8Ty:
goto xxWkq;
marwO:
tugd9:
goto Ir4X_;
Annkc:
$output_file =
trim($value["\x6e\x69\x73"] ?? "\x30\60") . "\x2e" . $extension;
goto xbsUt;
p1Pd5:
$foto =
"\x75\160\154\157\141\144\x73\57\x66\157\x74\x6f\x5f\x73\x69\163\167\141\57" .
$output_file;
goto jMPb9;
xbsUt:
file_put_contents(
"\56\x2f\165\x70\x6c\x6f\x61\x64\x73\x2f\x66\157\164\157\137\x73\x69\x73\x77\141\57" .
$output_file,
base64_decode($base64_image_string)
);
goto p1Pd5;
blF3o:
$extension = $value["\145\170\x74"];
goto E2oFC;
Ir4X_:
}
goto kse6r;
p_aNy:
$this->output_json($data);
goto TlCPW;
jbe7x:
$this->db->trans_start();
goto Q1unB;
I6xec:
qQTal:
goto IYSKy;
LORJK:
$data = [
"\x73\164\x61\164\x75\x73" => true,
"\x65\x72\162\x6f\x72\163" => [],
];
goto RQUNO;
Cjapu:
$this->db->trans_complete();
goto LORJK;
IYSKy:
$data = [
"\x73\164\x61\164\165\163" => false,
"\145\x72\x72\157\162\163" => $errors,
"\x64\x75\160\x6c\151\x6b\x61\x74" => $duplikat,
];
goto p_aNy;
RQUNO:
$this->output_json($data);
goto jEWlN;
ffSz3:
$errors = [];
goto ltdIF;
y5kb0:
v0O1M:
goto ykmgK;
VIhjS:
foreach ($input as $value) {
goto ZOPeH;
upq8Y:
$duplikat[] = $value;
goto f8cwq;
GBneQ:
c1bcg:
goto dp_JT;
vOUB2:
if (!($this->form_validation->run() == false)) {
goto m65ax;
}
goto upq8Y;
ZOPeH:
$this->form_validation->set_data($value);
goto ooRRK;
f8cwq:
$errors[$value["\156\x61\155\141"]] = [
"\156\x69\163" => form_error("\156\151\x73"),
];
goto TUVJp;
TUVJp:
m65ax:
goto GBneQ;
ooRRK:
$this->form_validation->set_rules(
"\156\151\163",
"\x4e\x49\123",
"\162\145\x71\x75\x69\x72\x65\144\174\156\165\155\145\162\x69\143\x7c\164\x72\x69\x6d\174\155\151\x6e\x5f\154\x65\156\147\164\150\133\x36\x5d\174\x6d\141\170\137\x6c\x65\x6e\x67\164\x68\x5b\x33\60\135"
);
goto vOUB2;
dp_JT:
}
goto y5kb0;
lu_FN:
}
public function updateNisByNisn()
{
goto tAHre;
Yxzpd:
B12s_:
goto Y_Bff;
GCxc8:
$this->output_json($save);
goto sAcqX;
W7yZ8:
foreach ($input as $val) {
goto jqDSK;
JVJWI:
qh2Uf:
goto w1oa5;
zbYEz:
$save = $this->db->update(
"\x6d\x61\163\164\x65\162\x5f\163\151\163\x77\141"
);
goto JVJWI;
jqDSK:
$this->db->set("\156\x69\x73", trim($val->nis ?? ""));
goto RwlaT;
RwlaT:
$this->db->where("\x6e\x69\163\156", trim($val->nisn ?? ""));
goto zbYEz;
w1oa5:
}
goto Yxzpd;
Y_Bff:
$this->db->trans_complete();
goto GCxc8;
tAHre:
$input = json_decode($this->input->post("\x73\151\x73\167\x61", true));
goto W7yZ8;
sAcqX:
}
public function editLogin()
{
goto hG_mS;
h4RYO:
$deleted = true;
goto SIJMn;
ZgExc:
$last_name = end($nama);
goto HLwoG;
LdG2S:
$tp = $this->master->getTahunActive();
goto LCUXB;
XNm6c:
goto BC9X5;
goto PQAfN;
M3IYV:
$data = [
"\x73\x74\x61\164\165\x73" => false,
"\x65\x72\162\157\162\x73" => [
"\165\163\x65\x72\156\x61\155\x65" =>
"\x55\x73\145\x72\x6e\x61\x6d\145\x20\x73\x75\x64\141\150\x20\x64\151\x67\165\x6e\141\x6b\x61\156",
],
];
goto iFvVK;
ZTI4M:
$status = $this->db->update(
"\155\x61\x73\164\145\162\137\x73\151\x73\167\141"
);
goto p9Xct;
hG_mS:
$this->load->model(
"\115\x61\x73\x74\x65\162\137\155\157\144\x65\154",
"\155\141\x73\164\145\162"
);
goto obYfb;
x3gHN:
$group = ["\63"];
goto pPnPW;
ApzZU:
$id_siswa = $this->input->post(
"\151\x64\137\163\151\163\167\141",
true
);
goto q4jp8;
Z627X:
$status = false;
goto gCbEe;
aMlvT:
IpJcY:
goto nvFb_;
RLGv_:
$this->form_validation->set_rules(
"\157\154\144",
$this->lang->line(
"\x63\x68\141\156\x67\145\137\x70\x61\x73\163\x77\157\x72\x64\137\166\x61\x6c\x69\144\141\164\151\x6f\x6e\137\x6f\x6c\144\137\x70\x61\x73\163\x77\157\x72\144\137\154\x61\142\145\x6c"
),
"\x72\x65\161\x75\151\162\x65\144"
);
goto sJNbO;
B5xPT:
RLWZe:
goto fPGQi;
UJsKi:
if ($siswa_lain && $siswa_lain->id_siswa != $id_siswa) {
goto Nq9M3;
}
goto hXXSo;
aKZSg:
qKN4X:
goto zxlvn;
HjsIy:
$this->form_validation->set_rules(
"\156\145\x77\137\143\157\x6e\x66\151\x72\x6d",
$this->lang->line(
"\x63\150\141\x6e\147\145\x5f\x70\x61\x73\163\x77\157\x72\144\x5f\x76\x61\154\151\x64\141\164\x69\157\156\137\156\x65\167\x5f\160\141\163\x73\167\x6f\x72\x64\137\143\x6f\x6e\146\151\162\155\137\154\x61\142\x65\x6c"
),
"\x72\145\x71\165\151\162\x65\144"
);
goto UJsKi;
nfTLS:
$this->output_json($data);
goto bQo3u;
tN99N:
BC9X5:
goto nfTLS;
c1mjG:
$pass = $this->input->post("\156\x65\167", true);
goto LdG2S;
fo5e_:
rzGNY:
goto IO3nB;
IreHc:
$this->db->set("\165\x73\x65\x72\156\141\x6d\x65", $username);
goto R0tMM;
hXXSo:
if ($this->form_validation->run() === false) {
goto qKN4X;
}
goto K9saQ;
tUFWF:
$first_name = $nama[0];
goto ZgExc;
Cl3YC:
$nama = explode("\x20", $siswa->nama ?? "");
goto tUFWF;
UQHsF:
$deleted = $this->ion_auth->delete_user($user_siswa->id);
goto B5xPT;
KUHYe:
$additional_data = [
"\x66\x69\162\163\x74\x5f\156\x61\155\x65" => $first_name,
"\154\141\x73\164\137\156\x61\155\x65" => $last_name,
];
goto x3gHN;
HLwoG:
$username = trim($username ?? "");
goto Upwnx;
QBtiq:
$siswa_lain = $this->dashboard->getDataSiswa(
$username,
$tp->id_tp,
$smt->id_smt
);
goto RLGv_;
nvFb_:
$data["\163\164\141\x74\165\x73"] = $status;
goto i6_gT;
LCUXB:
$smt = $this->master->getSemesterActive();
goto QBtiq;
K9saQ:
$siswa = $this->db
->get_where(
"\x6d\x61\x73\164\145\x72\x5f\163\x69\x73\167\141",
"\x69\x64\137\163\x69\163\167\141\75\42" . $id_siswa . "\42"
)
->row();
goto Cl3YC;
IO3nB:
$this->ion_auth->register(
$username,
$password,
$email,
$additional_data,
$group
);
goto IreHc;
R0tMM:
$this->db->set("\x70\141\x73\x73\167\x6f\x72\144", $password);
goto f_JM5;
obYfb:
$this->load->model(
"\104\x61\x73\x68\142\x6f\141\x72\x64\x5f\155\x6f\x64\145\154",
"\x64\x61\x73\150\142\157\x61\162\x64"
);
goto ApzZU;
i6_gT:
$data["\164\x65\x78\x74"] = $msg;
goto XNm6c;
sJNbO:
$this->form_validation->set_rules(
"\x6e\145\x77",
$this->lang->line(
"\143\x68\x61\156\x67\145\x5f\160\141\163\x73\x77\x6f\x72\x64\x5f\x76\141\x6c\151\x64\x61\164\x69\x6f\156\x5f\156\x65\x77\137\x70\141\163\x73\167\x6f\162\x64\x5f\x6c\x61\142\145\154"
),
"\x72\145\x71\x75\151\162\x65\x64\x7c\x6d\x69\x6e\x5f\x6c\145\156\147\164\150\133" .
$this->config->item(
"\x6d\151\156\x5f\x70\x61\163\163\167\x6f\x72\x64\x5f\x6c\145\x6e\147\164\150",
"\151\157\156\137\141\x75\164\x68"
) .
"\x5d\174\x6d\x61\x74\x63\150\145\163\x5b\156\x65\167\137\x63\x6f\x6e\x66\151\x72\155\135"
);
goto HjsIy;
p9Xct:
$msg = !$status
? "\x47\141\147\141\x6c\40\155\145\x6e\x67\x67\x61\x6e\164\x69\x20\x75\x73\x65\x72\156\x61\155\x65\57\160\x61\x73\163\163\x77\157\x72\x64\56"
: "\142\x65\162\150\141\163\x69\154\40\x6d\x65\x6e\147\x67\x61\156\x74\151\40\165\163\x65\162\x6e\x61\x6d\x65\57\x70\141\163\x73\x73\x77\x6f\162\144\x2e";
goto aMlvT;
q4jp8:
$username = $this->input->post(
"\165\163\145\162\156\141\155\145",
true
);
goto c1mjG;
xJjs5:
goto IpJcY;
goto fo5e_;
gCbEe:
$msg =
"\107\x61\147\141\154\x20\155\x65\x6e\147\147\141\156\164\151\x20\x75\x73\x65\162\156\x61\x6d\145\x2f\160\x61\x73\163\x73\167\x6f\162\144\x2e";
goto xJjs5;
PQAfN:
Nq9M3:
goto M3IYV;
f_JM5:
$this->db->where("\151\144\x5f\x73\x69\163\x77\x61", $id_siswa);
goto ZTI4M;
SIJMn:
if (!($user_siswa != null)) {
goto RLWZe;
}
goto UQHsF;
pPnPW:
$user_siswa = $this->db
->get_where(
"\x75\163\145\162\x73",
"\145\155\141\x69\x6c\x3d\42" . $email . "\x22"
)
->row();
goto h4RYO;
fgJUq:
$email = $siswa->nis . "\100\163\x69\163\167\x61\56\x63\157\x6d";
goto KUHYe;
zxlvn:
$data = [
"\163\x74\141\x74\x75\163" => false,
"\x65\x72\x72\x6f\162\x73" => [
"\157\x6c\144" => form_error("\157\154\144"),
"\x6e\x65\x77" => form_error("\x6e\145\x77"),
"\x6e\x65\x77\137\143\157\x6e\146\151\162\155" => form_error(
"\x6e\x65\x77\x5f\x63\157\x6e\146\x69\162\155"
),
],
];
goto tN99N;
fPGQi:
if ($deleted) {
goto rzGNY;
}
goto Z627X;
iFvVK:
goto BC9X5;
goto aKZSg;
Upwnx:
$password = trim($pass ?? "");
goto fgJUq;
bQo3u:
}
private function registerSiswa(
$username,
$password,
$email,
$additional_data,
$group
) {
goto nl6bI;
Sbq0s:
$data["\151\144"] = $reg;
goto iXPA2;
XFcrN:
UX4gd:
goto qEaRS;
wRUyq:
$data["\x73\164\141\x74\x75\x73"] = false;
goto XFcrN;
jPMgl:
$data["\x73\164\141\x74\x75\163"] = true;
goto Sbq0s;
iXPA2:
if (!($reg == false)) {
goto UX4gd;
}
goto wRUyq;
qEaRS:
return $data;
goto VyaNT;
nl6bI:
$reg = $this->ion_auth->register(
$username,
$password,
$email,
$additional_data,
$group
);
goto jPMgl;
VyaNT:
}
}
Function Calls
None |
Stats
MD5 | 49c3d826f69509cef9b9bff2a3b7952c |
Eval Count | 0 |
Decode Time | 89 ms |