From 8170395fd5f79d3dd12df847ee9bd8a9247acd00 Mon Sep 17 00:00:00 2001 From: dfoso Date: Fri, 23 Feb 2024 16:43:09 +0700 Subject: [PATCH] First commit --- app/Controllers/Auth.php | 52 ----------- app/Views/inc/sidebar.php | 4 +- public/.htaccess | 49 +++++++++++ public/index.php | 87 +++++++++++++++++++ .../debugbar/debugbar_1708677593.148974.json | 1 + .../debugbar/debugbar_1708678607.741024.json | 1 + .../debugbar/debugbar_1708678663.784881.json | 1 + .../debugbar/debugbar_1708678666.842249.json | 1 + .../debugbar/debugbar_1708678666.884928.json | 1 + .../debugbar/debugbar_1708678728.740374.json | 1 + .../debugbar/debugbar_1708679888.486441.json | 1 + .../debugbar/debugbar_1708679910.185401.json | 1 + .../debugbar/debugbar_1708679911.556901.json | 1 + 13 files changed, 147 insertions(+), 54 deletions(-) create mode 100644 public/.htaccess create mode 100644 public/index.php create mode 100644 writable/debugbar/debugbar_1708677593.148974.json create mode 100644 writable/debugbar/debugbar_1708678607.741024.json create mode 100644 writable/debugbar/debugbar_1708678663.784881.json create mode 100644 writable/debugbar/debugbar_1708678666.842249.json create mode 100644 writable/debugbar/debugbar_1708678666.884928.json create mode 100644 writable/debugbar/debugbar_1708678728.740374.json create mode 100644 writable/debugbar/debugbar_1708679888.486441.json create mode 100644 writable/debugbar/debugbar_1708679910.185401.json create mode 100644 writable/debugbar/debugbar_1708679911.556901.json diff --git a/app/Controllers/Auth.php b/app/Controllers/Auth.php index b8a105c8..e69de29b 100644 --- a/app/Controllers/Auth.php +++ b/app/Controllers/Auth.php @@ -1,52 +0,0 @@ -request->getVar('username'); - $password = $this->request->getVar('password'); - - $param = array('name' => $uname, 'passwd' => $password); - $data = $model->cekuser($param)->getRowArray(); - // var_dump($data); - //exit(); - if ($data) { - - $ses_data = [ - 'nip' => $data['NIP9'], - 'nama' => $data['NAMA'], - 'kppadm' => $data['KPPADM'], - 'jabatan' => $data['NAMA_JABATAN'], - 'kantor' => $data['NAMA_KANTOR'], - 'seksi' => $data['NAMA_UNIT_ES3'] - ]; - $session->set($ses_data); - return redirect()->to(base_url('Home')); - } else { - //print_r('user tidak ada'); - //exit; - $session->setFlashdata('msg', 'User Tidak ada'); - return redirect()->to('auth'); - } - } - - public function logout() - { - $session = session(); - $session->destroy(); - return redirect()->to('auth'); - } -} diff --git a/app/Views/inc/sidebar.php b/app/Views/inc/sidebar.php index 9d7b9954..19dda028 100644 --- a/app/Views/inc/sidebar.php +++ b/app/Views/inc/sidebar.php @@ -16,10 +16,10 @@