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 |
|________________________________________|
*/
class Cbtjenis extends CI_Controller
{
public function __construct()
{
goto fqICl;
G90VK:
if (!$this->ion_auth->logged_in()) {
goto XUCbN;
}
goto rI9pm;
rTXkw:
$this->form_validation->set_error_delimiters('', '');
goto wLGgb;
HuFB2:
uAJxM:
goto I4w9d;
WQFPa:
XUCbN:
goto pr1US;
fqICl:
parent::__construct();
goto G90VK;
I4w9d:
goto MdUXC;
goto WQFPa;
VVJDb:
$this->load->library(["datatables", "form_validation"]);
goto rTXkw;
pr1US:
redirect("auth");
goto uDTHJ;
uDTHJ:
MdUXC:
goto VVJDb;
rI9pm:
if ($this->ion_auth->is_admin()) {
goto uAJxM;
}
goto vVAWM;
vVAWM:
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 HuFB2;
wLGgb:
}
public function output_json($data, $encode = true)
{
goto SFxJS;
B2HiO:
tFXBS:
goto Lmzf0;
Lmzf0:
$this->output->set_content_type("application/json")->set_output($data);
goto Wnj7l;
SFxJS:
if (!$encode) {
goto tFXBS;
}
goto AUpoc;
AUpoc:
$data = json_encode($data);
goto B2HiO;
Wnj7l:
}
public function index()
{
goto pXw1D;
frPeB:
$this->load->view("_templates/dashboard/_header", $data);
goto ELjO6;
QkEn3:
$data["tp"] = $this->dashboard->getTahun();
goto Vc69V;
SFuW8:
$data = ["user" => $user, "judul" => "Jenis Ujian", "subjudul" => "Data Jenis Ujian", "profile" => $this->dashboard->getProfileAdmin($user->id), "setting" => $this->dashboard->getSetting()];
goto QkEn3;
ka0IK:
$user = $this->ion_auth->user()->row();
goto SFuW8;
ELjO6:
$this->load->view("cbt/jenis/data");
goto oXu1T;
B_4JZ:
$data["smt"] = $this->dashboard->getSemester();
goto agtDu;
oXu1T:
$this->load->view("_templates/dashboard/_footer");
goto MYtKK;
pXw1D:
$this->load->model("Dashboard_model", "dashboard");
goto ka0IK;
agtDu:
$data["smt_active"] = $this->dashboard->getSemesterActive();
goto frPeB;
Vc69V:
$data["tp_active"] = $this->dashboard->getTahunActive();
goto B_4JZ;
MYtKK:
}
public function data()
{
$this->load->model("Cbt_model", "cbt");
$this->output_json($this->cbt->getJenis(), false);
}
public function add()
{
goto LD31y;
LD31y:
$this->load->model("Master_model", "master");
goto UcxPv;
JTUhL:
$this->master->create("cbt_jenis", $insert, false);
goto TEcVq;
UcxPv:
$insert = ["nama_jenis" => $this->input->post("nama_jenis", true), "kode_jenis" => $this->input->post("kode_jenis", true)];
goto JTUhL;
hVrPp:
$this->output_json($data);
goto Xe1UN;
TEcVq:
$data["status"] = $insert;
goto hVrPp;
Xe1UN:
}
public function update()
{
goto LA1zt;
LA1zt:
$this->load->model("Cbt_model", "cbt");
goto f6ZZL;
cvffc:
$this->output->set_content_type("application/json")->set_output($data);
goto asMDx;
f6ZZL:
$data = $this->cbt->updateJenis();
goto cvffc;
asMDx:
}
public function delete()
{
goto zZVjY;
XjbvI:
$chk = $this->input->post("checked", true);
goto AWuME;
scDAz:
$this->output_json(["status" => false]);
goto FIkwW;
e1v4G:
goto sVYlu;
goto inb5F;
YcqeO:
AqR2W:
goto e1v4G;
mSogy:
$this->output_json(["status" => true, "total" => count($chk)]);
goto YcqeO;
zto6m:
if (!$this->master->delete("cbt_jenis", $chk, "id_jenis")) {
goto AqR2W;
}
goto mSogy;
FIkwW:
sVYlu:
goto JP4_j;
zZVjY:
$this->load->model("Master_model", "master");
goto XjbvI;
AWuME:
if (!$chk) {
goto OlZSF;
}
goto zto6m;
inb5F:
OlZSF:
goto scDAz;
JP4_j:
}
public function saveLog($type, $desc)
{
goto jJ2eT;
PXd_3:
$this->logging->saveLog($type, $desc);
goto IktJW;
jJ2eT:
$this->load->model("Log_model", "logging");
goto Va2GZ;
Va2GZ:
$user = $this->ion_auth->user()->row();
goto PXd_3;
IktJW:
}
}
?>
Did this file decode correctly?
Original Code
<?php
/* ________________________________________
| GarudaCBT |
| https://github.com/garudacbt/cbt |
|________________________________________|
*/
class Cbtjenis extends CI_Controller
{
public function __construct()
{
goto fqICl;
G90VK:
if (!$this->ion_auth->logged_in()) {
goto XUCbN;
}
goto rI9pm;
rTXkw:
$this->form_validation->set_error_delimiters('', '');
goto wLGgb;
HuFB2:
uAJxM:
goto I4w9d;
WQFPa:
XUCbN:
goto pr1US;
fqICl:
parent::__construct();
goto G90VK;
I4w9d:
goto MdUXC;
goto WQFPa;
VVJDb:
$this->load->library(["\144\x61\164\141\164\x61\142\x6c\x65\163", "\146\x6f\162\155\x5f\x76\141\154\151\x64\x61\x74\151\x6f\156"]);
goto rTXkw;
pr1US:
redirect("\x61\165\164\x68");
goto uDTHJ;
uDTHJ:
MdUXC:
goto VVJDb;
rI9pm:
if ($this->ion_auth->is_admin()) {
goto uAJxM;
}
goto vVAWM;
vVAWM:
show_error("\110\x61\156\x79\x61\40\x41\144\155\x69\156\151\163\x74\162\141\164\157\162\x20\171\141\x6e\x67\40\144\151\142\145\x72\151\40\150\141\153\x20\165\156\x74\x75\153\x20\x6d\145\x6e\x67\141\x6b\163\145\x73\x20\150\x61\154\141\155\141\x6e\x20\x69\156\x69\x2c\40\x3c\141\40\150\x72\145\x66\x3d\42" . base_url("\x64\141\x73\150\x62\x6f\141\x72\144") . "\x22\x3e\113\x65\155\142\141\x6c\x69\x20\x6b\x65\40\x6d\145\x6e\165\40\x61\167\141\x6c\74\x2f\141\76", 403, "\x41\x6b\163\145\163\40\x54\x65\162\154\141\x72\x61\156\x67");
goto HuFB2;
wLGgb:
}
public function output_json($data, $encode = true)
{
goto SFxJS;
B2HiO:
tFXBS:
goto Lmzf0;
Lmzf0:
$this->output->set_content_type("\141\x70\x70\154\151\143\141\164\151\x6f\x6e\57\152\163\x6f\x6e")->set_output($data);
goto Wnj7l;
SFxJS:
if (!$encode) {
goto tFXBS;
}
goto AUpoc;
AUpoc:
$data = json_encode($data);
goto B2HiO;
Wnj7l:
}
public function index()
{
goto pXw1D;
frPeB:
$this->load->view("\x5f\x74\145\x6d\160\154\x61\x74\145\x73\x2f\144\141\x73\150\142\157\x61\162\144\x2f\137\150\145\x61\x64\x65\x72", $data);
goto ELjO6;
QkEn3:
$data["\164\160"] = $this->dashboard->getTahun();
goto Vc69V;
SFuW8:
$data = ["\165\163\x65\162" => $user, "\x6a\165\144\x75\154" => "\112\145\156\x69\x73\x20\125\x6a\151\x61\156", "\163\165\142\152\x75\144\165\154" => "\104\141\164\141\40\112\145\x6e\151\163\40\125\x6a\x69\x61\156", "\160\x72\157\146\x69\x6c\145" => $this->dashboard->getProfileAdmin($user->id), "\x73\x65\x74\x74\151\x6e\x67" => $this->dashboard->getSetting()];
goto QkEn3;
ka0IK:
$user = $this->ion_auth->user()->row();
goto SFuW8;
ELjO6:
$this->load->view("\x63\142\x74\x2f\x6a\x65\156\151\163\x2f\144\x61\164\x61");
goto oXu1T;
B_4JZ:
$data["\x73\x6d\164"] = $this->dashboard->getSemester();
goto agtDu;
oXu1T:
$this->load->view("\137\164\145\155\x70\154\x61\164\145\x73\57\x64\141\163\x68\142\x6f\141\162\144\57\x5f\x66\157\157\164\x65\x72");
goto MYtKK;
pXw1D:
$this->load->model("\104\x61\163\x68\x62\x6f\141\162\144\x5f\155\x6f\x64\145\154", "\x64\x61\x73\x68\142\157\141\162\x64");
goto ka0IK;
agtDu:
$data["\x73\x6d\164\x5f\141\143\164\151\x76\x65"] = $this->dashboard->getSemesterActive();
goto frPeB;
Vc69V:
$data["\164\x70\x5f\x61\143\164\x69\166\145"] = $this->dashboard->getTahunActive();
goto B_4JZ;
MYtKK:
}
public function data()
{
$this->load->model("\x43\142\164\137\x6d\x6f\x64\145\x6c", "\143\142\x74");
$this->output_json($this->cbt->getJenis(), false);
}
public function add()
{
goto LD31y;
LD31y:
$this->load->model("\x4d\141\x73\x74\145\162\137\155\x6f\x64\x65\154", "\155\141\163\x74\145\x72");
goto UcxPv;
JTUhL:
$this->master->create("\x63\142\x74\x5f\x6a\x65\156\151\163", $insert, false);
goto TEcVq;
UcxPv:
$insert = ["\156\x61\x6d\141\137\152\145\x6e\x69\163" => $this->input->post("\156\141\155\x61\137\x6a\x65\x6e\151\163", true), "\x6b\x6f\x64\145\137\x6a\x65\x6e\151\163" => $this->input->post("\x6b\x6f\x64\145\137\x6a\x65\156\151\163", true)];
goto JTUhL;
hVrPp:
$this->output_json($data);
goto Xe1UN;
TEcVq:
$data["\163\164\141\x74\165\163"] = $insert;
goto hVrPp;
Xe1UN:
}
public function update()
{
goto LA1zt;
LA1zt:
$this->load->model("\x43\142\x74\137\155\x6f\x64\x65\x6c", "\x63\142\x74");
goto f6ZZL;
cvffc:
$this->output->set_content_type("\141\160\160\154\x69\x63\x61\x74\x69\x6f\156\57\x6a\163\157\156")->set_output($data);
goto asMDx;
f6ZZL:
$data = $this->cbt->updateJenis();
goto cvffc;
asMDx:
}
public function delete()
{
goto zZVjY;
XjbvI:
$chk = $this->input->post("\x63\x68\x65\143\153\x65\144", true);
goto AWuME;
scDAz:
$this->output_json(["\163\164\141\164\165\163" => false]);
goto FIkwW;
e1v4G:
goto sVYlu;
goto inb5F;
YcqeO:
AqR2W:
goto e1v4G;
mSogy:
$this->output_json(["\163\164\x61\x74\x75\x73" => true, "\x74\x6f\x74\x61\154" => count($chk)]);
goto YcqeO;
zto6m:
if (!$this->master->delete("\x63\142\x74\x5f\x6a\x65\x6e\x69\x73", $chk, "\151\x64\x5f\x6a\145\x6e\151\163")) {
goto AqR2W;
}
goto mSogy;
FIkwW:
sVYlu:
goto JP4_j;
zZVjY:
$this->load->model("\115\141\x73\164\145\162\137\155\157\144\x65\x6c", "\x6d\141\x73\x74\145\162");
goto XjbvI;
AWuME:
if (!$chk) {
goto OlZSF;
}
goto zto6m;
inb5F:
OlZSF:
goto scDAz;
JP4_j:
}
public function saveLog($type, $desc)
{
goto jJ2eT;
PXd_3:
$this->logging->saveLog($type, $desc);
goto IktJW;
jJ2eT:
$this->load->model("\x4c\x6f\147\x5f\x6d\x6f\144\145\154", "\x6c\157\147\147\151\x6e\x67");
goto Va2GZ;
Va2GZ:
$user = $this->ion_auth->user()->row();
goto PXd_3;
IktJW:
}
}
Function Calls
None |
Stats
MD5 | 8c8a6517bc64f5fb7911a2635ab402e6 |
Eval Count | 0 |
Decode Time | 54 ms |