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 Install extends CI_Controller { function __construct() { goto bXfDU; N7_CZ: $this->load->model("Dashboard_model", "dashboard"); goto YKqmo; sF8la: include APPPATH . "config/database.php"; goto Z3K8H; OlZK3: $this->load->database(); goto W0og8; Z3K8H: if (!($db["default"]["database"] != '')) { goto e1nj1; } goto OlZK3; zvm39: e1nj1: goto dmMq9; W0og8: $this->load->dbforge(); goto zvm39; bXfDU: parent::__construct(); goto sF8la; dmMq9: $this->load->model("Install_model", "install"); goto N7_CZ; YKqmo: } public function output_json($data, $encode = true) { goto LbEhs; lXnVA: am2Z9: goto Bgq3P; LbEhs: if (!$encode) { goto am2Z9; } goto UDxgC; UDxgC: $data = json_encode($data); goto lXnVA; Bgq3P: $this->output->set_content_type("application/json")->set_output($data); goto FQ33Q; FQ33Q: } public function index() { goto q2xem; Fi_mj: $data = $this->getSaved(); goto PzYlx; eiBae: Orhxr: goto Dqavs; leVqm: goto zvpzS; goto FX9c3; XeVy1: $this->load->view("install/header", ["data" => $data]); goto tnypK; XZlB3: he6u1: goto Fi_mj; PzYlx: $data->error = $res; goto XeVy1; Dqavs: $data["msg"] = "belum ada administrator"; goto XZlB3; SbKt4: $data["msg"] = "belum ada data sekolah"; goto T9Woh; s2VkP: redirect("update"); goto AXXyd; FX9c3: ZzrEP: goto s2VkP; WAYtN: if ($res == "0") { goto ZzrEP; } goto Hvgua; T9Woh: goto he6u1; goto VbZAh; CA89c: goto he6u1; goto eiBae; AXXyd: zvpzS: goto qsB2w; tnypK: $this->load->view("install/step"); goto EFnq6; VbZAh: F4zW_: goto l5eyq; Hvgua: if ($res == "2") { goto F4zW_; } goto iqkl7; q2xem: $res = $this->install->check_installer(); goto WAYtN; iqkl7: if ($res == "3") { goto Orhxr; } goto SbKt4; EFnq6: $this->load->view("install/footer"); goto leVqm; l5eyq: $data["msg"] = "sebagian tabel belum dibuat"; goto CA89c; qsB2w: } function getSaved() { goto eDLep; usAtI: $setting = $this->dashboard->getSetting(); goto D9ntX; KXnL5: eMiSn: goto tSEK5; OcDne: $data["jenjang"] = $setting->jenjang; goto Fh891; brmkc: $data["database"] = $database; goto vDVP1; lNzvV: $data["kota"] = $setting->kota; goto qgrCP; z2vuN: $data["kec"] = ''; goto nCmF4; bti2k: $data["user_admin"] = $admin->username; goto AmRqW; ayjg0: $admin = $this->db->get("users")->row(); goto a9tKe; aQco5: $data["alamat"] = ''; goto M1_w2; XpmtE: $data["prov"] = ''; goto gQ5b7; qgrCP: $data["prov"] = $setting->provinsi; goto LB020; tSEK5: $data["current_page"] = $current_page; goto Ix1JL; Ix1JL: return json_decode(json_encode($data)); goto NvwjK; jcjM1: $data["user_admin"] = ''; goto m2Dh0; nCmF4: $data["kota"] = ''; goto XpmtE; nlKfr: $data["kepsek"] = $setting->kepsek; goto VYjyO; AmRqW: $data["pass_admin"] = $admin->password; goto Qalt5; eDLep: include APPPATH . "config/database.php"; goto foMA_; jeKDj: $data["kec"] = $setting->kecamatan; goto lNzvV; CnoZM: goto eMiSn; goto piJBf; d1yuy: $data["jenjang"] = ''; goto FwE41; VYjyO: $data["alamat"] = $setting->alamat; goto hzgIq; O77Nv: $data["kepsek"] = ''; goto aQco5; MR8qH: $current_page = 2; goto RUjrG; PzE5p: $data["aplikasi"] = ''; goto exZqD; gQ5b7: $current_page = 2; goto SN_4C; n3vBj: $data["password"] = $db["default"]["password"]; goto brmkc; exZqD: $data["sekolah"] = ''; goto d1yuy; m2Dh0: $data["pass_admin"] = ''; goto PzE5p; M1_w2: $data["desa"] = ''; goto z2vuN; vDVP1: $data["nama_admin"] = ''; goto jcjM1; h2CCZ: $data["username"] = $db["default"]["username"]; goto n3vBj; wqaLX: $data["sekolah"] = $setting->sekolah; goto OcDne; LB020: Aed65: goto A1OiV; RUjrG: $data["msg"] = "Table `users` belum dibuat"; goto CnoZM; a9tKe: if (!($admin != null)) { goto nSQ8K; } goto rXcFr; asUVV: $data["aplikasi"] = $setting->nama_aplikasi; goto wqaLX; piJBf: TJ5ft: goto ayjg0; Fh891: $data["satuan"] = $setting->satuan_pendidikan; goto nlKfr; SN_4C: if ($this->db->table_exists("users")) { goto TJ5ft; } goto MR8qH; foMA_: $database = $db["default"]["database"]; goto Ogm45; Ogm45: $data["hostname"] = $db["default"]["hostname"]; goto h2CCZ; D9ntX: if (!($setting != null)) { goto Aed65; } goto asUVV; rXcFr: $data["nama_admin"] = $admin->first_name . " " . $admin->last_name; goto bti2k; A1OiV: $current_page = $admin == null ? 2 : ($setting == null ? 3 : 4); goto KXnL5; hzgIq: $data["desa"] = $setting->desa; goto jeKDj; FwE41: $data["satuan"] = ''; goto O77Nv; Qalt5: nSQ8K: goto usAtI; NvwjK: } public function steps() { goto w1cC4; GsaPW: $this->load->view("install/header", ["data" => $data]); goto XPyiV; XPyiV: $this->load->view("install/step"); goto ojoHB; ojoHB: $this->load->view("install/footer"); goto eUE_I; w1cC4: $data = $this->getSaved(); goto GsaPW; eUE_I: } public function checkDatabase() { goto pDBhx; Y5Av1: $data["host"] = false; goto dDYhR; AfmsT: $new = str_replace("%USERNAME%", $hostuser, $new); goto fHYxr; uFADO: goto P1CTE; goto xTPez; G4Rpq: $data["host"] = false; goto W1W73; pYNtB: if (is_writable($output_path)) { goto FG0lO; } goto q4glh; zBAzP: $template_path = "./assets/app/db/database.php"; goto v83ZG; M3Kko: P1CTE: goto pEBks; GqcVj: $database_file = file_get_contents($template_path); goto qo6q6; IMPa_: if ($this->validate_host($hostname, $hostuser, $database)) { goto Xy3JF; } goto G4Rpq; pDBhx: $hostname = $this->input->post("hostname", true); goto hbgRq; Mt0jJ: goto DCjIh; goto luHfI; qFR2f: CY8b6: goto RrdpH; fHYxr: $new = str_replace("%PASSWORD%", $hostpass, $new); goto sEqGN; kyLKI: $data["host_msg"] = "behasil"; goto hM7eS; IR1qP: $database = $this->input->post("database", true); goto IMPa_; XBj2A: $data["database"] = true; goto qFR2f; kM3Mb: goto CY8b6; goto zvaBl; q4glh: $data["host"] = false; goto f_36H; dDYhR: $data["host_msg"] = "gagal membuat nama database"; goto kM3Mb; nZ0QQ: $data["host"] = true; goto kyLKI; qo6q6: $new = str_replace("%HOSTNAME%", $hostname, $database_file); goto AfmsT; f_36H: $data["host_msg"] = "tidak ada akses ke file database.php, pastikan permission sudah dizinkan"; goto Mt0jJ; Uhhq_: $data["host"] = true; goto rTgy2; NS_gF: $handle = fopen($output_path, "w+"); goto I9Dxk; RrdpH: DCjIh: goto M3Kko; sEqGN: $new = str_replace("%DATABASE%", $database, $new); goto NS_gF; xTPez: Xy3JF: goto zBAzP; NOE2a: if (fwrite($handle, $new)) { goto HvSk1; } goto Y5Av1; hbgRq: $hostuser = $this->input->post("hostuser", true); goto O03uo; pEBks: $this->output_json($data); goto zcAom; v83ZG: $output_path = APPPATH . "config/database.php"; goto GqcVj; hM7eS: $data["database"] = $this->create_database($hostname, $hostuser, $hostpass, $database); goto d0iRx; d0iRx: $data["table"] = $this->create_tables($hostname, $hostuser, $hostpass, $database); goto Uhhq_; rTgy2: $data["host_msg"] = "sukses"; goto XBj2A; I9Dxk: @chmod($output_path, 0777); goto pYNtB; W1W73: $data["host_msg"] = "tidak boleh ada yang kosong"; goto uFADO; luHfI: FG0lO: goto NOE2a; zvaBl: HvSk1: goto nZ0QQ; O03uo: $hostpass = $this->input->post("hostpass", true); goto IR1qP; zcAom: } public function createDb() { goto IT9Bq; zOBkj: goto E13wS; goto Uee89; HXn9M: if ($page == "0") { goto PBfTz; } goto UwAIA; SohJr: $data["database"] = true; goto OP5Rf; dvnoJ: $hostpass = $this->input->post("hostpass", true); goto kgZwL; L2wR0: $hostuser = $this->input->post("hostuser", true); goto dvnoJ; OP5Rf: E13wS: goto pNTvU; IuC0v: $data["table"] = $this->create_tables($hostname, $hostuser, $hostpass, $database); goto zxPN8; pNTvU: $this->output_json($data); goto vJVnp; zUufL: $data["host_msg"] = "sukses"; goto SohJr; G25nW: $hostname = $this->input->post("hostname", true); goto L2wR0; WXJLv: $data["database"] = false; goto yqVO2; Uee89: PBfTz: goto G25nW; yqVO2: $data["table"] = false; goto zOBkj; UwAIA: $data["host"] = true; goto joq2c; IT9Bq: $page = $this->input->post("page", true); goto HXn9M; zxPN8: $data["host"] = true; goto zUufL; kgZwL: $database = $this->input->post("database", true); goto IuC0v; joq2c: $data["host_msg"] = "step salah"; goto WXJLv; vJVnp: } function validate_host($host, $usr, $db) { return !empty($host) && !empty($usr) && !empty($db); } function create_database($hostname, $hostuser, $hostpass, $database) { goto arwC8; b27Um: $mysqli->query("CREATE DATABASE IF NOT EXISTS " . $database); goto mcgrm; xMm51: return true; goto DawcF; mcgrm: $mysqli->close(); goto xMm51; hlti9: if (!mysqli_connect_errno()) { goto jC9RE; } goto b5jtc; b5jtc: return false; goto WsX8z; arwC8: $mysqli = new mysqli($hostname, $hostuser, $hostpass, ''); goto hlti9; WsX8z: jC9RE: goto b27Um; DawcF: } function create_tables($hostname, $hostuser, $hostpass, $database) { goto M1V9G; nN8qX: pl3C5: goto IaYzK; Qstkw: return true; goto lOUol; M1V9G: $mysqli = new mysqli($hostname, $hostuser, $hostpass, $database); goto nVVgl; w3dSq: return false; goto nN8qX; vBZzy: $mysqli->close(); goto Qstkw; IaYzK: $query = file_get_contents("./assets/app/db/master.sql"); goto dISkL; dISkL: $mysqli->multi_query($query); goto vBZzy; nVVgl: if (!mysqli_connect_errno()) { goto pl3C5; } goto w3dSq; lOUol: } public function createSetting() { goto KoslL; vDLjW: $jenjang = $this->input->post("jenjang", true); goto dhH1_; BS07e: $desa = $this->input->post("desa", true); goto XZEVE; ELQht: $data["insert"] = $this->db->insert("setting", $insert); goto SaVQQ; XZEVE: $tlp = $this->input->post("tlp", true); goto K2H88; FgcRF: $kec = $this->input->post("kec", true); goto BS07e; dhH1_: $satuan_pendidikan = $this->input->post("satuan_pendidikan", true); goto VJRUt; NMMWp: $this->output_json($data); goto KGRXI; vWbRN: $kota = $this->input->post("kota", true); goto FgcRF; K2H88: $insert = ["id_setting" => 1, "sekolah" => $sekolah, "jenjang" => $jenjang, "satuan_pendidikan" => $satuan_pendidikan, "alamat" => $alamat, "desa" => $desa, "kota" => $kota, "kecamatan" => $kec, "telp" => $tlp, "kepsek" => $kepsek, "nama_aplikasi" => $nama_aplikasi]; goto ELQht; SaVQQ: $data["saved"] = $this->getSaved(); goto NMMWp; KoslL: $nama_aplikasi = $this->input->post("nama_aplikasi", true); goto lDtN_; VJRUt: $kepsek = $this->input->post("kepsek", true); goto aG1AF; lDtN_: $sekolah = $this->input->post("nama_sekolah", true); goto vDLjW; aG1AF: $alamat = $this->input->post("alamat", true); goto vWbRN; KGRXI: } public function createAdmin() { goto MLU0k; uZQwS: $password = $this->input->post("password", true); goto w8tUf; qP4Z5: $last_name = end($namaAdmin); goto zPeo3; w8tUf: $namaAdmin = explode(" ", $nama ?? ''); goto tGgbp; T1WHP: $group = array("1"); goto lRVRm; MLU0k: $nama = $this->input->post("nama_lengkap", true); goto MHo9B; Um_iU: $create = $this->ion_auth->register($username, $password, $email, $additional_data, $group); goto BxQqb; lRVRm: $email = strtolower($nama ?? '') . "@admin.com"; goto Um_iU; XDd3X: $this->output_json($data); goto v1_lt; BxQqb: $data["admin"] = $create; goto XDd3X; tGgbp: $first_name = $namaAdmin[0]; goto qP4Z5; MHo9B: $username = $this->input->post("username", true); goto uZQwS; zPeo3: $additional_data = ["first_name" => $first_name, "last_name" => $last_name]; goto T1WHP; v1_lt: } public function createApp() { goto FDXD_; R6aXD: $insert = ["id_setting" => 1, "sekolah" => $sekolah, "jenjang" => $jenjang, "satuan_pendidikan" => $satuan_pendidikan, "alamat" => $alamat, "desa" => $desa, "kota" => $kota, "kecamatan" => $kec, "provinsi" => $prov, "kepsek" => $kepsek, "nama_aplikasi" => $nama_aplikasi]; goto hMbtg; S59wj: $last_name = end($namaAdmin); goto I2cWQ; JhJpv: $nama_aplikasi = $this->input->post("nama_aplikasi", true); goto eOHs2; hMbtg: $namaAdmin = explode(" ", $nama ?? ''); goto nXadk; D3yNT: $alamat = $this->input->post("alamat", true); goto tFsZH; nXadk: $first_name = $namaAdmin[0]; goto S59wj; FD02q: $satuan_pendidikan = $this->input->post("satuan", true); goto XS6v2; eOHs2: $sekolah = $this->input->post("nama_sekolah", true); goto bUN2q; I2cWQ: $additional_data = ["first_name" => $first_name, "last_name" => $last_name]; goto jS341; kVcze: $data["admin"] = $create; goto li2ZX; FDXD_: $nama = $this->input->post("nama_lengkap", true); goto nOPC2; DT52I: $email = strtolower($nama ?? '') . "@admin.com"; goto c6vwL; XS6v2: $kepsek = $this->input->post("kepsek", true); goto D3yNT; c6vwL: $create = $this->ion_auth->register($username, $password, $email, $additional_data, $group); goto cBrbJ; bUN2q: $jenjang = $this->input->post("jenjang", true); goto FD02q; cBrbJ: $data["insert"] = $this->db->insert("setting", $insert); goto kVcze; nOPC2: $username = $this->input->post("username", true); goto j_zbY; uRlt0: $kec = $this->input->post("kec", true); goto LeKvX; LeKvX: $desa = $this->input->post("desa", true); goto ISHCg; li2ZX: $this->output_json($data); goto HEdKU; tFsZH: $kota = $this->input->post("kota", true); goto uRlt0; j_zbY: $password = $this->input->post("password", true); goto JhJpv; jS341: $group = array("1"); goto DT52I; ISHCg: $prov = $this->input->post("prov", true); goto R6aXD; HEdKU: } } 
 ?>

Did this file decode correctly?

Original Code

<?php
/*   ________________________________________
    |                 GarudaCBT              |
    |    https://github.com/garudacbt/cbt    |
    |________________________________________|
*/
 defined("\x42\101\x53\105\x50\x41\x54\110") or exit("\116\157\40\144\x69\162\x65\143\x74\40\163\143\x72\x69\x70\x74\x20\141\143\x63\x65\x73\x73\40\141\x6c\x6c\157\x77\x65\x64"); class Install extends CI_Controller { function __construct() { goto bXfDU; N7_CZ: $this->load->model("\x44\x61\163\x68\x62\x6f\141\x72\x64\137\x6d\x6f\144\145\x6c", "\x64\x61\163\x68\x62\157\x61\x72\x64"); goto YKqmo; sF8la: include APPPATH . "\x63\x6f\156\146\x69\147\57\x64\x61\x74\141\142\141\x73\145\x2e\160\150\x70"; goto Z3K8H; OlZK3: $this->load->database(); goto W0og8; Z3K8H: if (!($db["\x64\x65\146\141\x75\x6c\164"]["\144\141\x74\141\142\141\x73\x65"] != '')) { goto e1nj1; } goto OlZK3; zvm39: e1nj1: goto dmMq9; W0og8: $this->load->dbforge(); goto zvm39; bXfDU: parent::__construct(); goto sF8la; dmMq9: $this->load->model("\111\x6e\x73\x74\141\x6c\x6c\x5f\155\x6f\144\x65\154", "\151\x6e\163\164\x61\x6c\x6c"); goto N7_CZ; YKqmo: } public function output_json($data, $encode = true) { goto LbEhs; lXnVA: am2Z9: goto Bgq3P; LbEhs: if (!$encode) { goto am2Z9; } goto UDxgC; UDxgC: $data = json_encode($data); goto lXnVA; Bgq3P: $this->output->set_content_type("\141\160\x70\154\x69\143\141\x74\151\157\156\x2f\152\163\x6f\156")->set_output($data); goto FQ33Q; FQ33Q: } public function index() { goto q2xem; Fi_mj: $data = $this->getSaved(); goto PzYlx; eiBae: Orhxr: goto Dqavs; leVqm: goto zvpzS; goto FX9c3; XeVy1: $this->load->view("\151\x6e\x73\164\141\154\154\x2f\150\x65\141\x64\145\x72", ["\144\x61\x74\141" => $data]); goto tnypK; XZlB3: he6u1: goto Fi_mj; PzYlx: $data->error = $res; goto XeVy1; Dqavs: $data["\x6d\163\147"] = "\142\x65\x6c\x75\155\40\x61\x64\141\40\141\x64\x6d\x69\x6e\x69\x73\164\x72\141\164\x6f\162"; goto XZlB3; SbKt4: $data["\x6d\163\x67"] = "\142\x65\x6c\165\x6d\x20\141\144\x61\40\x64\x61\x74\141\40\163\x65\153\x6f\154\x61\x68"; goto T9Woh; s2VkP: redirect("\x75\x70\x64\141\164\145"); goto AXXyd; FX9c3: ZzrEP: goto s2VkP; WAYtN: if ($res == "\x30") { goto ZzrEP; } goto Hvgua; T9Woh: goto he6u1; goto VbZAh; CA89c: goto he6u1; goto eiBae; AXXyd: zvpzS: goto qsB2w; tnypK: $this->load->view("\x69\x6e\163\164\141\154\154\x2f\x73\x74\x65\x70"); goto EFnq6; VbZAh: F4zW_: goto l5eyq; Hvgua: if ($res == "\62") { goto F4zW_; } goto iqkl7; q2xem: $res = $this->install->check_installer(); goto WAYtN; iqkl7: if ($res == "\63") { goto Orhxr; } goto SbKt4; EFnq6: $this->load->view("\151\x6e\163\x74\141\154\154\x2f\x66\x6f\x6f\x74\145\162"); goto leVqm; l5eyq: $data["\x6d\x73\x67"] = "\163\x65\x62\141\x67\x69\x61\x6e\x20\164\141\142\x65\x6c\40\x62\x65\x6c\x75\x6d\x20\144\151\142\165\141\x74"; goto CA89c; qsB2w: } function getSaved() { goto eDLep; usAtI: $setting = $this->dashboard->getSetting(); goto D9ntX; KXnL5: eMiSn: goto tSEK5; OcDne: $data["\152\145\x6e\152\x61\x6e\x67"] = $setting->jenjang; goto Fh891; brmkc: $data["\x64\141\x74\x61\142\x61\x73\x65"] = $database; goto vDVP1; lNzvV: $data["\x6b\157\164\x61"] = $setting->kota; goto qgrCP; z2vuN: $data["\x6b\145\x63"] = ''; goto nCmF4; bti2k: $data["\165\163\x65\162\137\x61\x64\x6d\x69\156"] = $admin->username; goto AmRqW; ayjg0: $admin = $this->db->get("\x75\163\x65\x72\x73")->row(); goto a9tKe; aQco5: $data["\141\154\141\x6d\x61\x74"] = ''; goto M1_w2; XpmtE: $data["\160\162\157\x76"] = ''; goto gQ5b7; qgrCP: $data["\x70\x72\x6f\x76"] = $setting->provinsi; goto LB020; tSEK5: $data["\x63\x75\162\162\145\x6e\164\x5f\x70\141\147\x65"] = $current_page; goto Ix1JL; Ix1JL: return json_decode(json_encode($data)); goto NvwjK; jcjM1: $data["\165\163\145\x72\x5f\141\x64\155\151\156"] = ''; goto m2Dh0; nCmF4: $data["\153\157\x74\x61"] = ''; goto XpmtE; nlKfr: $data["\153\145\x70\x73\x65\153"] = $setting->kepsek; goto VYjyO; AmRqW: $data["\x70\x61\163\x73\137\x61\144\155\151\x6e"] = $admin->password; goto Qalt5; eDLep: include APPPATH . "\143\x6f\156\x66\151\x67\57\144\141\x74\141\x62\141\x73\x65\x2e\160\x68\x70"; goto foMA_; jeKDj: $data["\x6b\x65\x63"] = $setting->kecamatan; goto lNzvV; CnoZM: goto eMiSn; goto piJBf; d1yuy: $data["\152\145\x6e\x6a\141\x6e\147"] = ''; goto FwE41; VYjyO: $data["\x61\154\x61\155\141\x74"] = $setting->alamat; goto hzgIq; O77Nv: $data["\153\x65\160\163\145\153"] = ''; goto aQco5; MR8qH: $current_page = 2; goto RUjrG; PzE5p: $data["\x61\x70\x6c\x69\153\x61\x73\151"] = ''; goto exZqD; gQ5b7: $current_page = 2; goto SN_4C; n3vBj: $data["\x70\141\x73\163\167\x6f\162\144"] = $db["\x64\x65\x66\141\x75\154\164"]["\x70\x61\163\163\167\x6f\x72\x64"]; goto brmkc; exZqD: $data["\163\x65\153\157\154\141\150"] = ''; goto d1yuy; m2Dh0: $data["\x70\x61\x73\x73\137\141\x64\155\x69\156"] = ''; goto PzE5p; M1_w2: $data["\144\145\x73\141"] = ''; goto z2vuN; vDVP1: $data["\x6e\x61\x6d\141\137\x61\144\155\151\x6e"] = ''; goto jcjM1; h2CCZ: $data["\x75\x73\145\x72\156\141\x6d\145"] = $db["\x64\x65\x66\141\165\154\164"]["\x75\163\x65\x72\x6e\x61\x6d\145"]; goto n3vBj; wqaLX: $data["\x73\145\x6b\157\154\x61\150"] = $setting->sekolah; goto OcDne; LB020: Aed65: goto A1OiV; RUjrG: $data["\x6d\163\147"] = "\124\x61\x62\154\x65\40\x60\x75\x73\x65\162\163\140\40\x62\145\154\x75\x6d\40\x64\151\x62\x75\141\x74"; goto CnoZM; a9tKe: if (!($admin != null)) { goto nSQ8K; } goto rXcFr; asUVV: $data["\x61\160\154\151\153\x61\163\151"] = $setting->nama_aplikasi; goto wqaLX; piJBf: TJ5ft: goto ayjg0; Fh891: $data["\x73\x61\x74\x75\x61\156"] = $setting->satuan_pendidikan; goto nlKfr; SN_4C: if ($this->db->table_exists("\165\x73\x65\x72\163")) { goto TJ5ft; } goto MR8qH; foMA_: $database = $db["\x64\145\146\x61\165\x6c\164"]["\144\141\164\141\x62\141\x73\145"]; goto Ogm45; Ogm45: $data["\150\157\x73\164\156\141\155\x65"] = $db["\x64\x65\x66\141\165\x6c\164"]["\x68\157\x73\x74\x6e\141\x6d\x65"]; goto h2CCZ; D9ntX: if (!($setting != null)) { goto Aed65; } goto asUVV; rXcFr: $data["\156\x61\155\x61\137\x61\x64\155\x69\x6e"] = $admin->first_name . "\x20" . $admin->last_name; goto bti2k; A1OiV: $current_page = $admin == null ? 2 : ($setting == null ? 3 : 4); goto KXnL5; hzgIq: $data["\x64\145\x73\x61"] = $setting->desa; goto jeKDj; FwE41: $data["\163\x61\x74\165\141\156"] = ''; goto O77Nv; Qalt5: nSQ8K: goto usAtI; NvwjK: } public function steps() { goto w1cC4; GsaPW: $this->load->view("\x69\156\x73\164\x61\x6c\154\57\150\145\141\144\145\162", ["\144\x61\x74\141" => $data]); goto XPyiV; XPyiV: $this->load->view("\151\156\163\x74\141\x6c\154\x2f\163\164\145\160"); goto ojoHB; ojoHB: $this->load->view("\151\156\163\x74\141\x6c\x6c\57\x66\157\157\x74\x65\x72"); goto eUE_I; w1cC4: $data = $this->getSaved(); goto GsaPW; eUE_I: } public function checkDatabase() { goto pDBhx; Y5Av1: $data["\x68\157\163\x74"] = false; goto dDYhR; AfmsT: $new = str_replace("\45\125\x53\105\x52\116\x41\115\x45\45", $hostuser, $new); goto fHYxr; uFADO: goto P1CTE; goto xTPez; G4Rpq: $data["\x68\157\x73\x74"] = false; goto W1W73; pYNtB: if (is_writable($output_path)) { goto FG0lO; } goto q4glh; zBAzP: $template_path = "\x2e\57\141\163\163\145\x74\x73\x2f\x61\x70\x70\57\x64\x62\57\144\141\164\x61\x62\x61\x73\x65\x2e\x70\150\x70"; goto v83ZG; M3Kko: P1CTE: goto pEBks; GqcVj: $database_file = file_get_contents($template_path); goto qo6q6; IMPa_: if ($this->validate_host($hostname, $hostuser, $database)) { goto Xy3JF; } goto G4Rpq; pDBhx: $hostname = $this->input->post("\150\157\x73\x74\156\x61\x6d\x65", true); goto hbgRq; Mt0jJ: goto DCjIh; goto luHfI; qFR2f: CY8b6: goto RrdpH; fHYxr: $new = str_replace("\45\120\x41\123\123\x57\117\x52\104\x25", $hostpass, $new); goto sEqGN; kyLKI: $data["\x68\157\x73\164\x5f\x6d\163\147"] = "\x62\145\x68\141\x73\x69\x6c"; goto hM7eS; IR1qP: $database = $this->input->post("\x64\141\x74\x61\142\x61\163\145", true); goto IMPa_; XBj2A: $data["\144\x61\164\141\x62\x61\x73\x65"] = true; goto qFR2f; kM3Mb: goto CY8b6; goto zvaBl; q4glh: $data["\x68\157\x73\164"] = false; goto f_36H; dDYhR: $data["\150\x6f\x73\x74\137\x6d\x73\147"] = "\x67\x61\x67\x61\154\x20\x6d\x65\155\142\x75\x61\x74\x20\x6e\x61\155\x61\40\x64\x61\x74\141\x62\141\163\x65"; goto kM3Mb; nZ0QQ: $data["\x68\157\x73\164"] = true; goto kyLKI; qo6q6: $new = str_replace("\x25\x48\x4f\123\x54\116\x41\x4d\x45\45", $hostname, $database_file); goto AfmsT; f_36H: $data["\150\x6f\163\x74\x5f\155\x73\x67"] = "\x74\151\x64\141\153\40\141\x64\x61\x20\141\153\x73\x65\x73\x20\x6b\x65\x20\x66\151\154\x65\x20\144\141\x74\x61\142\x61\163\x65\56\x70\150\x70\x2c\x20\x70\141\x73\x74\x69\x6b\141\156\x20\x70\x65\162\155\x69\163\x73\x69\x6f\x6e\40\163\165\144\x61\150\x20\144\151\x7a\151\x6e\153\141\x6e"; goto Mt0jJ; Uhhq_: $data["\x68\x6f\x73\x74"] = true; goto rTgy2; NS_gF: $handle = fopen($output_path, "\x77\x2b"); goto I9Dxk; RrdpH: DCjIh: goto M3Kko; sEqGN: $new = str_replace("\x25\x44\101\124\101\102\101\x53\x45\x25", $database, $new); goto NS_gF; xTPez: Xy3JF: goto zBAzP; NOE2a: if (fwrite($handle, $new)) { goto HvSk1; } goto Y5Av1; hbgRq: $hostuser = $this->input->post("\150\157\x73\164\165\163\145\162", true); goto O03uo; pEBks: $this->output_json($data); goto zcAom; v83ZG: $output_path = APPPATH . "\x63\x6f\156\146\x69\147\57\144\141\164\x61\x62\x61\163\x65\x2e\x70\150\160"; goto GqcVj; hM7eS: $data["\x64\x61\164\141\142\x61\163\145"] = $this->create_database($hostname, $hostuser, $hostpass, $database); goto d0iRx; d0iRx: $data["\x74\x61\142\154\x65"] = $this->create_tables($hostname, $hostuser, $hostpass, $database); goto Uhhq_; rTgy2: $data["\150\157\163\164\x5f\x6d\x73\147"] = "\x73\x75\153\163\x65\163"; goto XBj2A; I9Dxk: @chmod($output_path, 0777); goto pYNtB; W1W73: $data["\x68\x6f\163\164\x5f\x6d\163\147"] = "\164\x69\x64\141\x6b\x20\x62\157\x6c\145\150\40\141\144\141\x20\171\x61\156\147\40\153\157\163\x6f\x6e\x67"; goto uFADO; luHfI: FG0lO: goto NOE2a; zvaBl: HvSk1: goto nZ0QQ; O03uo: $hostpass = $this->input->post("\x68\157\163\x74\x70\141\163\x73", true); goto IR1qP; zcAom: } public function createDb() { goto IT9Bq; zOBkj: goto E13wS; goto Uee89; HXn9M: if ($page == "\60") { goto PBfTz; } goto UwAIA; SohJr: $data["\x64\141\x74\x61\142\141\163\145"] = true; goto OP5Rf; dvnoJ: $hostpass = $this->input->post("\150\x6f\x73\x74\160\x61\163\x73", true); goto kgZwL; L2wR0: $hostuser = $this->input->post("\150\x6f\163\x74\165\x73\x65\162", true); goto dvnoJ; OP5Rf: E13wS: goto pNTvU; IuC0v: $data["\164\141\x62\154\x65"] = $this->create_tables($hostname, $hostuser, $hostpass, $database); goto zxPN8; pNTvU: $this->output_json($data); goto vJVnp; zUufL: $data["\150\x6f\163\164\x5f\x6d\x73\x67"] = "\163\165\153\163\x65\x73"; goto SohJr; G25nW: $hostname = $this->input->post("\x68\157\x73\164\x6e\141\x6d\x65", true); goto L2wR0; WXJLv: $data["\144\141\164\141\142\141\163\x65"] = false; goto yqVO2; Uee89: PBfTz: goto G25nW; yqVO2: $data["\x74\141\142\x6c\x65"] = false; goto zOBkj; UwAIA: $data["\x68\157\x73\x74"] = true; goto joq2c; IT9Bq: $page = $this->input->post("\160\141\x67\x65", true); goto HXn9M; zxPN8: $data["\x68\x6f\163\x74"] = true; goto zUufL; kgZwL: $database = $this->input->post("\144\141\164\x61\142\x61\x73\145", true); goto IuC0v; joq2c: $data["\150\157\163\x74\x5f\155\163\x67"] = "\x73\164\x65\160\40\x73\x61\154\x61\150"; goto WXJLv; vJVnp: } function validate_host($host, $usr, $db) { return !empty($host) && !empty($usr) && !empty($db); } function create_database($hostname, $hostuser, $hostpass, $database) { goto arwC8; b27Um: $mysqli->query("\103\x52\x45\x41\x54\x45\x20\104\x41\x54\x41\x42\x41\123\x45\x20\x49\106\40\116\x4f\x54\40\x45\130\111\x53\124\x53\x20" . $database); goto mcgrm; xMm51: return true; goto DawcF; mcgrm: $mysqli->close(); goto xMm51; hlti9: if (!mysqli_connect_errno()) { goto jC9RE; } goto b5jtc; b5jtc: return false; goto WsX8z; arwC8: $mysqli = new mysqli($hostname, $hostuser, $hostpass, ''); goto hlti9; WsX8z: jC9RE: goto b27Um; DawcF: } function create_tables($hostname, $hostuser, $hostpass, $database) { goto M1V9G; nN8qX: pl3C5: goto IaYzK; Qstkw: return true; goto lOUol; M1V9G: $mysqli = new mysqli($hostname, $hostuser, $hostpass, $database); goto nVVgl; w3dSq: return false; goto nN8qX; vBZzy: $mysqli->close(); goto Qstkw; IaYzK: $query = file_get_contents("\56\57\x61\x73\x73\x65\x74\x73\x2f\x61\160\160\57\144\142\57\x6d\141\163\164\x65\x72\56\163\x71\x6c"); goto dISkL; dISkL: $mysqli->multi_query($query); goto vBZzy; nVVgl: if (!mysqli_connect_errno()) { goto pl3C5; } goto w3dSq; lOUol: } public function createSetting() { goto KoslL; vDLjW: $jenjang = $this->input->post("\x6a\x65\x6e\x6a\141\156\x67", true); goto dhH1_; BS07e: $desa = $this->input->post("\x64\x65\163\x61", true); goto XZEVE; ELQht: $data["\x69\156\163\145\162\x74"] = $this->db->insert("\163\x65\x74\x74\x69\156\x67", $insert); goto SaVQQ; XZEVE: $tlp = $this->input->post("\x74\154\160", true); goto K2H88; FgcRF: $kec = $this->input->post("\x6b\x65\x63", true); goto BS07e; dhH1_: $satuan_pendidikan = $this->input->post("\x73\x61\164\165\141\x6e\137\160\145\x6e\x64\x69\144\x69\x6b\x61\x6e", true); goto VJRUt; NMMWp: $this->output_json($data); goto KGRXI; vWbRN: $kota = $this->input->post("\153\x6f\164\141", true); goto FgcRF; K2H88: $insert = ["\x69\144\137\x73\145\164\164\151\156\x67" => 1, "\163\145\x6b\157\154\x61\150" => $sekolah, "\x6a\145\x6e\152\x61\156\147" => $jenjang, "\163\141\x74\x75\x61\x6e\137\x70\x65\156\144\x69\144\151\x6b\x61\x6e" => $satuan_pendidikan, "\x61\154\x61\x6d\x61\164" => $alamat, "\144\x65\163\x61" => $desa, "\153\157\164\x61" => $kota, "\x6b\x65\x63\x61\x6d\x61\164\x61\x6e" => $kec, "\x74\x65\154\160" => $tlp, "\153\x65\x70\x73\x65\x6b" => $kepsek, "\x6e\x61\x6d\x61\137\141\160\x6c\151\x6b\x61\163\x69" => $nama_aplikasi]; goto ELQht; SaVQQ: $data["\163\x61\x76\145\x64"] = $this->getSaved(); goto NMMWp; KoslL: $nama_aplikasi = $this->input->post("\x6e\x61\x6d\x61\137\141\160\x6c\151\153\x61\x73\151", true); goto lDtN_; VJRUt: $kepsek = $this->input->post("\153\x65\x70\x73\145\153", true); goto aG1AF; lDtN_: $sekolah = $this->input->post("\x6e\x61\155\141\x5f\x73\145\x6b\157\154\x61\150", true); goto vDLjW; aG1AF: $alamat = $this->input->post("\x61\154\x61\x6d\141\164", true); goto vWbRN; KGRXI: } public function createAdmin() { goto MLU0k; uZQwS: $password = $this->input->post("\x70\x61\x73\x73\167\x6f\x72\144", true); goto w8tUf; qP4Z5: $last_name = end($namaAdmin); goto zPeo3; w8tUf: $namaAdmin = explode("\40", $nama ?? ''); goto tGgbp; T1WHP: $group = array("\x31"); goto lRVRm; MLU0k: $nama = $this->input->post("\x6e\141\155\x61\x5f\x6c\145\156\147\153\x61\x70", true); goto MHo9B; Um_iU: $create = $this->ion_auth->register($username, $password, $email, $additional_data, $group); goto BxQqb; lRVRm: $email = strtolower($nama ?? '') . "\100\x61\x64\155\151\156\x2e\x63\x6f\155"; goto Um_iU; XDd3X: $this->output_json($data); goto v1_lt; BxQqb: $data["\x61\x64\155\x69\x6e"] = $create; goto XDd3X; tGgbp: $first_name = $namaAdmin[0]; goto qP4Z5; MHo9B: $username = $this->input->post("\165\x73\145\x72\x6e\x61\x6d\x65", true); goto uZQwS; zPeo3: $additional_data = ["\x66\151\162\x73\x74\137\156\141\155\145" => $first_name, "\x6c\x61\x73\164\137\156\141\155\x65" => $last_name]; goto T1WHP; v1_lt: } public function createApp() { goto FDXD_; R6aXD: $insert = ["\151\x64\x5f\163\x65\x74\164\151\x6e\x67" => 1, "\163\x65\153\x6f\x6c\141\150" => $sekolah, "\x6a\145\156\152\x61\156\147" => $jenjang, "\x73\141\x74\165\141\x6e\x5f\x70\145\156\144\x69\144\x69\153\141\x6e" => $satuan_pendidikan, "\141\x6c\x61\x6d\x61\164" => $alamat, "\144\x65\163\x61" => $desa, "\x6b\x6f\x74\141" => $kota, "\x6b\145\x63\141\x6d\141\164\x61\156" => $kec, "\x70\162\x6f\x76\x69\156\163\151" => $prov, "\x6b\145\x70\x73\x65\153" => $kepsek, "\x6e\x61\x6d\141\x5f\141\x70\x6c\x69\153\141\163\151" => $nama_aplikasi]; goto hMbtg; S59wj: $last_name = end($namaAdmin); goto I2cWQ; JhJpv: $nama_aplikasi = $this->input->post("\x6e\141\155\141\137\141\160\154\151\x6b\x61\163\x69", true); goto eOHs2; hMbtg: $namaAdmin = explode("\40", $nama ?? ''); goto nXadk; D3yNT: $alamat = $this->input->post("\141\154\x61\155\x61\x74", true); goto tFsZH; nXadk: $first_name = $namaAdmin[0]; goto S59wj; FD02q: $satuan_pendidikan = $this->input->post("\163\141\164\x75\141\x6e", true); goto XS6v2; eOHs2: $sekolah = $this->input->post("\156\x61\155\x61\x5f\x73\145\153\x6f\x6c\141\x68", true); goto bUN2q; I2cWQ: $additional_data = ["\146\151\x72\x73\x74\x5f\156\141\x6d\x65" => $first_name, "\154\x61\163\x74\x5f\156\x61\155\x65" => $last_name]; goto jS341; kVcze: $data["\x61\x64\155\151\x6e"] = $create; goto li2ZX; FDXD_: $nama = $this->input->post("\x6e\141\x6d\141\137\x6c\145\x6e\147\x6b\141\160", true); goto nOPC2; DT52I: $email = strtolower($nama ?? '') . "\100\141\x64\155\x69\156\56\x63\157\155"; goto c6vwL; XS6v2: $kepsek = $this->input->post("\153\x65\x70\x73\x65\153", true); goto D3yNT; c6vwL: $create = $this->ion_auth->register($username, $password, $email, $additional_data, $group); goto cBrbJ; bUN2q: $jenjang = $this->input->post("\x6a\145\x6e\x6a\141\156\x67", true); goto FD02q; cBrbJ: $data["\x69\x6e\163\145\162\x74"] = $this->db->insert("\x73\x65\164\x74\x69\x6e\x67", $insert); goto kVcze; nOPC2: $username = $this->input->post("\x75\163\145\162\x6e\141\155\145", true); goto j_zbY; uRlt0: $kec = $this->input->post("\153\145\x63", true); goto LeKvX; LeKvX: $desa = $this->input->post("\x64\x65\163\141", true); goto ISHCg; li2ZX: $this->output_json($data); goto HEdKU; tFsZH: $kota = $this->input->post("\x6b\157\x74\141", true); goto uRlt0; j_zbY: $password = $this->input->post("\160\x61\163\163\167\x6f\162\144", true); goto JhJpv; jS341: $group = array("\61"); goto DT52I; ISHCg: $prov = $this->input->post("\160\x72\157\x76", true); goto R6aXD; HEdKU: } }

Function Calls

None

Variables

None

Stats

MD5 dd88cfb0922c48846cbd0026521dcc94
Eval Count 0
Decode Time 60 ms