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 class Pengguna_Login extends CI_Controller { function __construct() { ..
Decoded Output download
<?php
class Pengguna_Login extends CI_Controller {
function __construct() {
parent::__construct();
if ($this->my_usession->logged_in == FALSE) {
echo "window.location = '" . base_url() . "user/index';";
exit;
}
$this->load->model('Pengguna_Login_Model', '', TRUE);
$this->load->model('Pengguna_Login_Group_Model', '', TRUE);
}
function ext_get_group_asoc_all() {
if ($this->input->post("id_open")) {
$data = $this->Pengguna_Login_Group_Model->get_AllData();
$total = $this->Pengguna_Login_Group_Model->get_CountAllData();
echo '({total:' . $total . ',results:' . json_encode($data) . '})';
}
}
function ext_group_asoc_insert() {
$sesi_type = $this->session->userdata("type_zs_exmldashboard");
$explode_sesi_type = explode('[SEMAR]', $sesi_type);
if (($this->input->post('type') == 'SUPER ADMIN' || $this->input->post('type') == 'ADMIN') && array_intersect(array('ADMIN'), $explode_sesi_type)) {
echo "{success:false, errors: { reason: 'Akses Ditolak !' }}";
} elseif (array_intersect(array('SUPER ADMIN', 'ADMIN'), $explode_sesi_type)) {
$Status = $this->Pengguna_Login_Group_Model->Insert_Data();
if ($Status == TRUE) {
echo "{success:true}";
} elseif ($Status == FALSE) {
echo "{success:false, errors: { reason: 'Group Pengguna sudah terdaftar !' }}";
} else {
echo "{success:false, errors: { reason: 'Gagal Menambah Data !' }}";
}
} else {
echo "{success:false, errors: { reason: 'Akses Ditolak !' }}";
}
}
function ext_group_asoc_delete() {
$Status = $this->Pengguna_Login_Group_Model->Delete_Data();
if ($Status == TRUE) {
echo "{success:true}";
} else {
echo "{success:false}";
}
}
function index() {
$sesi_type = $this->session->userdata("type_zs_exmldashboard");
$explode_sesi_type = explode('[SEMAR]', $sesi_type);
if ($this->input->post("id_open") && array_intersect(array('SUPER ADMIN', 'ADMIN'), $explode_sesi_type)) {
$data['jsscript'] = TRUE;
$this->load->view('pengguna_login_view', $data);
} else {
$this->load->view('pengguna_login_view');
}
}
function ext_get_all() {
if ($this->input->post("id_open")) {
$data = $this->Pengguna_Login_Model->get_AllData();
$total = $this->Pengguna_Login_Model->get_CountAllData();
echo '({total:' . $total . ',results:' . json_encode($data) . '})';
}
}
function ext_insert() {
$sesi_type = $this->session->userdata("type_zs_exmldashboard");
$explode_sesi_type = explode('[SEMAR]', $sesi_type);
if (($this->input->post('type') == 'SUPER ADMIN' || $this->input->post('type') == 'ADMIN') && array_intersect(array('ADMIN'), $explode_sesi_type)) {
echo "{success:false, errors: { reason: 'Akses Ditolak !' }}";
} elseif (array_intersect(array('SUPER ADMIN', 'ADMIN'), $explode_sesi_type)) {
$Status = $this->Pengguna_Login_Model->Insert_Data();
if ($Status == TRUE) {
echo "{success:true}";
} elseif ($Status == FALSE) {
echo "{success:false, errors: { reason: 'Nama Pengguna sudah terdaftar !' }}";
} else {
echo "{success:false, errors: { reason: 'Gagal Menambah Data !' }}";
}
} else {
echo "{success:false, errors: { reason: 'Akses Ditolak !' }}";
}
}
function ext_update() {
$sesi_iduser = $this->session->userdata("iduser_zs_exmldashboard");
$sesi_type = $this->session->userdata("type_zs_exmldashboard");
$explode_sesi_type = explode('[SEMAR]', $sesi_type);
if ($this->input->post('ID_User') == 1 && $sesi_iduser != 1) {
echo "{success:false, errors: { reason: 'Akses Ditolak !' }}";
} elseif ($this->input->post('ID_User') && ($this->input->post('type') == 'SUPER ADMIN') && array_intersect(array('ADMIN'), $explode_sesi_type)) {
echo "{success:false, errors: { reason: 'Akses Ditolak !' }}";
} elseif ($this->input->post('ID_User') && array_intersect(array('SUPER ADMIN', 'ADMIN'), $explode_sesi_type)) {
$Status = $this->Pengguna_Login_Model->Update_Data();
if ($Status == TRUE) {
echo "{success:true}";
} else {
echo "{success:false, errors: { reason: 'Gagal Merubah Data !' }}";
}
} else {
echo "{success:false, errors: { reason: 'Akses Ditolak !' }}";
}
}
function ext_delete() {
$Status = $this->Pengguna_Login_Model->Delete_Data();
if ($Status == TRUE) {
echo "{success:true}";
} else {
echo "{success:false}";
}
}
function ext_changepass() {
$sesi_iduser = $this->session->userdata("iduser_zs_exmldashboard");
$sesi_type = $this->session->userdata("type_zs_exmldashboard");
$type_updated = $this->Pengguna_Login_Model->get_Type_User($this->input->post('ID_User'));
if ($this->input->post('ID_User') == 1 && $sesi_iduser != 1) {
echo "{success:false, errors: { reason: 'Akses Ditolak !' }}";
} elseif (($type_updated == "SUPER ADMIN" && $sesi_type == "ADMIN") || ($type_updated == "ADMIN" && $sesi_type == "ADMIN" && $sesi_iduser != $this->input->post('ID_User'))) {
echo "{success:false, errors: { reason: 'Akses Ditolak !' }}";
} elseif ($this->input->post('ID_User')) {
$data = array('pass' => MD5($this->input->post('pass')));
$this->db->where('ID_User', $this->input->post('ID_User'));
$this->db->update('tUser', $data);
//$this->db->close();
echo "{success:true}";
} else {
echo "{success:false, errors: { reason: 'Gagal Merubah Kata Sandi !' }}";
}
}
function print_dialog_dnp() {
if ($this->input->post("id_open")) {
$data['jsscript'] = TRUE;
$data['Data_ID'] = 'ID_User';
$data['Grid_ID'] = 'gridUsers';
$data['Params_Print'] = 'Params_User';
$data['uri_all'] = 'pengguna_login/cetak_nom/all';
$data['uri_selected'] = 'pengguna_login/cetak_nom/selected';
$data['uri_by_rows'] = 'pengguna_login/cetak_nom/by_rows/';
$this->load->view('print_dialog/print_dialog_no_ttd_view', $data);
} else {
$this->load->view('print_dialog/print_dialog_no_ttd_view');
}
}
function cetak_nom($p_mode = 'all', $dari = null, $sampai = null) {
if ($this->input->post("id_open")) {
if ($p_mode == "all") {
$data['data_cetak'] = $this->Pengguna_Login_Model->get_AllPrint();
} elseif ($p_mode == "selected") {
$data['data_cetak'] = $this->Pengguna_Login_Model->get_SelectedPrint();
} elseif ($p_mode == "by_rows") {
$data['data_cetak'] = $this->Pengguna_Login_Model->get_ByRowsPrint($dari, $sampai);
}
$this->load->view('pengguna_login_pdf', $data);
}
}
function ubahsandi() {
if ($this->input->post("id_open") && $this->session->userdata("iduser_zs_exmldashboard")) {
$data['jsscript'] = TRUE;
$data['sesi'] = $this->session->userdata("iduser_zs_exmldashboard");
$this->load->view('pengguna_login_ubahsandi', $data);
} else {
$this->load->view('pengguna_login_ubahsandi');
}
}
} ?>
Did this file decode correctly?
Original Code
<?php
class Pengguna_Login extends CI_Controller {
function __construct() {
parent::__construct();
if ($this->my_usession->logged_in == FALSE) {
echo "window.location = '" . base_url() . "user/index';";
exit;
}
$this->load->model('Pengguna_Login_Model', '', TRUE);
$this->load->model('Pengguna_Login_Group_Model', '', TRUE);
}
function ext_get_group_asoc_all() {
if ($this->input->post("id_open")) {
$data = $this->Pengguna_Login_Group_Model->get_AllData();
$total = $this->Pengguna_Login_Group_Model->get_CountAllData();
echo '({total:' . $total . ',results:' . json_encode($data) . '})';
}
}
function ext_group_asoc_insert() {
$sesi_type = $this->session->userdata("type_zs_exmldashboard");
$explode_sesi_type = explode('[SEMAR]', $sesi_type);
if (($this->input->post('type') == 'SUPER ADMIN' || $this->input->post('type') == 'ADMIN') && array_intersect(array('ADMIN'), $explode_sesi_type)) {
echo "{success:false, errors: { reason: 'Akses Ditolak !' }}";
} elseif (array_intersect(array('SUPER ADMIN', 'ADMIN'), $explode_sesi_type)) {
$Status = $this->Pengguna_Login_Group_Model->Insert_Data();
if ($Status == TRUE) {
echo "{success:true}";
} elseif ($Status == FALSE) {
echo "{success:false, errors: { reason: 'Group Pengguna sudah terdaftar !' }}";
} else {
echo "{success:false, errors: { reason: 'Gagal Menambah Data !' }}";
}
} else {
echo "{success:false, errors: { reason: 'Akses Ditolak !' }}";
}
}
function ext_group_asoc_delete() {
$Status = $this->Pengguna_Login_Group_Model->Delete_Data();
if ($Status == TRUE) {
echo "{success:true}";
} else {
echo "{success:false}";
}
}
function index() {
$sesi_type = $this->session->userdata("type_zs_exmldashboard");
$explode_sesi_type = explode('[SEMAR]', $sesi_type);
if ($this->input->post("id_open") && array_intersect(array('SUPER ADMIN', 'ADMIN'), $explode_sesi_type)) {
$data['jsscript'] = TRUE;
$this->load->view('pengguna_login_view', $data);
} else {
$this->load->view('pengguna_login_view');
}
}
function ext_get_all() {
if ($this->input->post("id_open")) {
$data = $this->Pengguna_Login_Model->get_AllData();
$total = $this->Pengguna_Login_Model->get_CountAllData();
echo '({total:' . $total . ',results:' . json_encode($data) . '})';
}
}
function ext_insert() {
$sesi_type = $this->session->userdata("type_zs_exmldashboard");
$explode_sesi_type = explode('[SEMAR]', $sesi_type);
if (($this->input->post('type') == 'SUPER ADMIN' || $this->input->post('type') == 'ADMIN') && array_intersect(array('ADMIN'), $explode_sesi_type)) {
echo "{success:false, errors: { reason: 'Akses Ditolak !' }}";
} elseif (array_intersect(array('SUPER ADMIN', 'ADMIN'), $explode_sesi_type)) {
$Status = $this->Pengguna_Login_Model->Insert_Data();
if ($Status == TRUE) {
echo "{success:true}";
} elseif ($Status == FALSE) {
echo "{success:false, errors: { reason: 'Nama Pengguna sudah terdaftar !' }}";
} else {
echo "{success:false, errors: { reason: 'Gagal Menambah Data !' }}";
}
} else {
echo "{success:false, errors: { reason: 'Akses Ditolak !' }}";
}
}
function ext_update() {
$sesi_iduser = $this->session->userdata("iduser_zs_exmldashboard");
$sesi_type = $this->session->userdata("type_zs_exmldashboard");
$explode_sesi_type = explode('[SEMAR]', $sesi_type);
if ($this->input->post('ID_User') == 1 && $sesi_iduser != 1) {
echo "{success:false, errors: { reason: 'Akses Ditolak !' }}";
} elseif ($this->input->post('ID_User') && ($this->input->post('type') == 'SUPER ADMIN') && array_intersect(array('ADMIN'), $explode_sesi_type)) {
echo "{success:false, errors: { reason: 'Akses Ditolak !' }}";
} elseif ($this->input->post('ID_User') && array_intersect(array('SUPER ADMIN', 'ADMIN'), $explode_sesi_type)) {
$Status = $this->Pengguna_Login_Model->Update_Data();
if ($Status == TRUE) {
echo "{success:true}";
} else {
echo "{success:false, errors: { reason: 'Gagal Merubah Data !' }}";
}
} else {
echo "{success:false, errors: { reason: 'Akses Ditolak !' }}";
}
}
function ext_delete() {
$Status = $this->Pengguna_Login_Model->Delete_Data();
if ($Status == TRUE) {
echo "{success:true}";
} else {
echo "{success:false}";
}
}
function ext_changepass() {
$sesi_iduser = $this->session->userdata("iduser_zs_exmldashboard");
$sesi_type = $this->session->userdata("type_zs_exmldashboard");
$type_updated = $this->Pengguna_Login_Model->get_Type_User($this->input->post('ID_User'));
if ($this->input->post('ID_User') == 1 && $sesi_iduser != 1) {
echo "{success:false, errors: { reason: 'Akses Ditolak !' }}";
} elseif (($type_updated == "SUPER ADMIN" && $sesi_type == "ADMIN") || ($type_updated == "ADMIN" && $sesi_type == "ADMIN" && $sesi_iduser != $this->input->post('ID_User'))) {
echo "{success:false, errors: { reason: 'Akses Ditolak !' }}";
} elseif ($this->input->post('ID_User')) {
$data = array('pass' => MD5($this->input->post('pass')));
$this->db->where('ID_User', $this->input->post('ID_User'));
$this->db->update('tUser', $data);
//$this->db->close();
echo "{success:true}";
} else {
echo "{success:false, errors: { reason: 'Gagal Merubah Kata Sandi !' }}";
}
}
function print_dialog_dnp() {
if ($this->input->post("id_open")) {
$data['jsscript'] = TRUE;
$data['Data_ID'] = 'ID_User';
$data['Grid_ID'] = 'gridUsers';
$data['Params_Print'] = 'Params_User';
$data['uri_all'] = 'pengguna_login/cetak_nom/all';
$data['uri_selected'] = 'pengguna_login/cetak_nom/selected';
$data['uri_by_rows'] = 'pengguna_login/cetak_nom/by_rows/';
$this->load->view('print_dialog/print_dialog_no_ttd_view', $data);
} else {
$this->load->view('print_dialog/print_dialog_no_ttd_view');
}
}
function cetak_nom($p_mode = 'all', $dari = null, $sampai = null) {
if ($this->input->post("id_open")) {
if ($p_mode == "all") {
$data['data_cetak'] = $this->Pengguna_Login_Model->get_AllPrint();
} elseif ($p_mode == "selected") {
$data['data_cetak'] = $this->Pengguna_Login_Model->get_SelectedPrint();
} elseif ($p_mode == "by_rows") {
$data['data_cetak'] = $this->Pengguna_Login_Model->get_ByRowsPrint($dari, $sampai);
}
$this->load->view('pengguna_login_pdf', $data);
}
}
function ubahsandi() {
if ($this->input->post("id_open") && $this->session->userdata("iduser_zs_exmldashboard")) {
$data['jsscript'] = TRUE;
$data['sesi'] = $this->session->userdata("iduser_zs_exmldashboard");
$this->load->view('pengguna_login_ubahsandi', $data);
} else {
$this->load->view('pengguna_login_ubahsandi');
}
}
} ?>
Function Calls
None |
Stats
MD5 | 8c2adc52d03c191fa964e49128f8bb66 |
Eval Count | 0 |
Decode Time | 150 ms |