Browse Source

Modified cKanwil

main
dfoso 1 year ago
parent
commit
119d2de8ec
  1. 1
      app/Controllers/Auth.php
  2. 6
      app/Controllers/Kanwil.php
  3. 6
      app/Models/Mauth.php
  4. 2
      app/Views/ppm/dashboard.php
  5. 1
      writable/debugbar/debugbar_1709534314.127647.json
  6. 1
      writable/debugbar/debugbar_1709536473.054973.json
  7. 1
      writable/debugbar/debugbar_1709536846.891699.json
  8. 1
      writable/debugbar/debugbar_1709540147.328068.json
  9. 1
      writable/debugbar/debugbar_1709540654.200687.json
  10. 1
      writable/debugbar/debugbar_1709546332.431581.json
  11. 1
      writable/debugbar/debugbar_1709547224.121976.json
  12. 1
      writable/debugbar/debugbar_1709548198.620316.json
  13. 76
      writable/logs/log-2024-03-04.log

1
app/Controllers/Auth.php

@ -33,6 +33,7 @@ class Auth extends Controller
'jabatan' => $data['NAMA_JABATAN'],
'kantor' => $data['NAMA_KANTOR'],
'seksi' => $data['NAMA_UNIT_ES3'],
'tpkantor' => $data['TP_KANTOR'],
'isLogin' => true
];
$session->set($ses_data);

6
app/Controllers/Kanwil.php

@ -16,7 +16,11 @@ class Kanwil extends BaseController
$model = new MKanwil();
$kwl = $this->request->getPost('kwl');
if (session('tpkantor') == "KPDJP") {
$kwl = $this->request->getPost('kwl');
} else {
$kwl = session('kppadm');
}
$ptahun = $this->request->getPost('tahun');
$pbulan = $this->request->getPost('bulan');
if (empty($ptahun)) {

6
app/Models/Mauth.php

@ -9,8 +9,8 @@ class Mauth extends Model
function cekuser($username)
{
$builder = $this->db->table('PEGAWAI');
$builder->where('NIP9', $username);
return $builder->get();
$query = $this->db->query("SELECT A.*,B.TP_KANTOR FROM PEGAWAI A
LEFT JOIN DIM_KANTOR B ON A.KD_KANTOR = B.KD_KANTOR WHERE A.NIP9 = '" . $username . "'");
return $query;
}
}

2
app/Views/ppm/dashboard.php

@ -104,7 +104,7 @@ $hariini = date('d-m-y');
<div class="main-content">
<div class="container-fluid">
<div class="row">
<div class="col-sm-12">
<div class="col-sm-12 mb-2">
<form class="form-inline" action="<?php base_url('Home/index') ?>" method="post">
<label class="my-1 mr-2">Tahun :</label>

1
writable/debugbar/debugbar_1709534314.127647.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709536473.054973.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709536846.891699.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709540147.328068.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709540654.200687.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709546332.431581.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709547224.121976.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709548198.620316.json

File diff suppressed because one or more lines are too long

76
writable/logs/log-2024-03-04.log

@ -652,3 +652,79 @@ in APPPATH\Views\errors\html\error_exception.php on line 33.
1 [internal function]: CodeIgniter\Debug\Exceptions->shutdownHandler()
INFO - 2024-03-04 21:44:52 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2024-03-04 21:45:24 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2024-03-04 21:56:58 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2024-03-04 21:57:20 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2024-03-04 21:57:56 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2024-03-04 22:04:19 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2024-03-04 22:04:19 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2024-03-04 22:04:22 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2024-03-04 22:04:23 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2024-03-04 22:05:11 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2024-03-04 22:05:11 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2024-03-04 22:05:21 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2024-03-04 22:05:21 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2024-03-04 22:08:04 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
CRITICAL - 2024-03-04 22:08:04 --> ErrorException: Division by zero
in APPPATH\Views\kanwil\dashboard.php on line 211.
1 APPPATH\Views\kanwil\dashboard.php(211): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Division by zero', 'C:\\xampp\\htdocs\\engineN\\app\\Views\\kanwil\\dashboard.php', 211, [...])
2 SYSTEMPATH\View\View.php(228): include('C:\\xampp\\htdocs\\engineN\\app\\Views\\kanwil\\dashboard.php')
3 SYSTEMPATH\View\View.php(231): CodeIgniter\View\View->CodeIgniter\View\{closure}()
4 SYSTEMPATH\Common.php(1178): CodeIgniter\View\View->render('kanwil/dashboard', [], true)
5 APPPATH\Controllers\Kanwil.php(55): view('kanwil/dashboard', [...])
6 SYSTEMPATH\CodeIgniter.php(941): App\Controllers\Kanwil->index()
7 SYSTEMPATH\CodeIgniter.php(502): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Kanwil))
8 SYSTEMPATH\CodeIgniter.php(361): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
9 FCPATH\index.php(79): CodeIgniter\CodeIgniter->run()
CRITICAL - 2024-03-04 22:08:04 --> ErrorException: Uncaught Error: Call to undefined method CodeIgniter\Debug\ExceptionHandler::cleanPath() in C:\xampp\htdocs\engineN\app\Views\errors\html\error_exception.php:33
Stack trace:
#0 C:\xampp\htdocs\engineN\system\Debug\BaseExceptionHandler.php(258): include()
#1 C:\xampp\htdocs\engineN\system\Debug\BaseExceptionHandler.php(261): CodeIgniter\Debug\BaseExceptionHandler->CodeIgniter\Debug\{closure}()
#2 C:\xampp\htdocs\engineN\system\Debug\ExceptionHandler.php(112): CodeIgniter\Debug\BaseExceptionHandler->render(Object(ErrorException), 500, 'C:\\xampp\\htdocs...')
#3 C:\xampp\htdocs\engineN\system\Debug\Exceptions.php(157): CodeIgniter\Debug\ExceptionHandler->handle(Object(ErrorException), Object(CodeIgniter\HTTP\IncomingRequest), Object(CodeIgniter\HTTP\Response), 500, 1)
#4 [internal function]: CodeIgniter\Debug\Exceptions->exceptionHandler(Object(ErrorException))
#5 {main}
thrown
【Previous Exception】
ErrorException
Division by zero
#0 C:\xampp\htdocs\engineN\app\Views\kanwil\dashboard.php(211): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Division by zer...', 'C:\\xampp\\htdocs...', 211, Array)
#1 C:\xampp\htdocs\engineN\system\View\View.php(228): include('C:\\xampp\\htdocs...')
#2 C:\xampp\htdocs\engineN\system\View\View.php(231): CodeIgniter\View\View->CodeIgniter\View\{closure}()
#3 C:\xampp\htdocs\engineN\system\Common.php(1178): CodeIgniter\View\View->render('kanwil/dashboar...', Array, true)
#4 C:\xampp\htdocs\engineN\app\Controllers\Kanwil.php(55): view('kanwil/dashboar...', Array)
#5 C:\xampp\htdocs\engineN\system\CodeIgniter.php(941): App\Controllers\Kanwil->index()
#6 C:\xampp\htdocs\engineN\system\CodeIgniter.php(502): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Kanwil))
#7 C:\xampp\htdocs\engineN\system\CodeIgniter.php(361): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false)
#8 C:\xampp\htdocs\engineN\index.php(79): CodeIgniter\CodeIgniter->run()
#9 {main}
in APPPATH\Views\errors\html\error_exception.php on line 33.
1 [internal function]: CodeIgniter\Debug\Exceptions->shutdownHandler()
INFO - 2024-03-04 22:25:42 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
CRITICAL - 2024-03-04 22:25:42 --> TypeError: Argument 2 passed to view() must be of the type array, null given, called in C:\xampp\htdocs\engineN\app\Controllers\Kanwil.php on line 55
in SYSTEMPATH\Common.php on line 1166.
1 APPPATH\Controllers\Kanwil.php(55): view('kanwil/dashboard', null)
2 SYSTEMPATH\CodeIgniter.php(941): App\Controllers\Kanwil->index()
3 SYSTEMPATH\CodeIgniter.php(502): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Kanwil))
4 SYSTEMPATH\CodeIgniter.php(361): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false)
5 FCPATH\index.php(79): CodeIgniter\CodeIgniter->run()
CRITICAL - 2024-03-04 22:25:42 --> ErrorException: Uncaught Error: Call to undefined method CodeIgniter\Debug\ExceptionHandler::cleanPath() in C:\xampp\htdocs\engineN\app\Views\errors\html\error_exception.php:33
Stack trace:
#0 C:\xampp\htdocs\engineN\system\Debug\BaseExceptionHandler.php(258): include()
#1 C:\xampp\htdocs\engineN\system\Debug\BaseExceptionHandler.php(261): CodeIgniter\Debug\BaseExceptionHandler->CodeIgniter\Debug\{closure}()
#2 C:\xampp\htdocs\engineN\system\Debug\ExceptionHandler.php(112): CodeIgniter\Debug\BaseExceptionHandler->render(Object(TypeError), 500, 'C:\\xampp\\htdocs...')
#3 C:\xampp\htdocs\engineN\system\Debug\Exceptions.php(157): CodeIgniter\Debug\ExceptionHandler->handle(Object(TypeError), Object(CodeIgniter\HTTP\IncomingRequest), Object(CodeIgniter\HTTP\Response), 500, 1)
#4 [internal function]: CodeIgniter\Debug\Exceptions->exceptionHandler(Object(TypeError))
#5 {main}
thrown
【Previous Exception】
TypeError
Argument 2 passed to view() must be of the type array, null given, called in C:\xampp\htdocs\engineN\app\Controllers\Kanwil.php on line 55
#0 C:\xampp\htdocs\engineN\app\Controllers\Kanwil.php(55): view('kanwil/dashboar...', NULL)
#1 C:\xampp\htdocs\engineN\system\CodeIgniter.php(941): App\Controllers\Kanwil->index()
#2 C:\xampp\htdocs\engineN\system\CodeIgniter.php(502): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Kanwil))
#3 C:\xampp\htdocs\engineN\system\CodeIgniter.php(361): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false)
#4 C:\xampp\htdocs\engineN\index.php(79): CodeIgniter\CodeIgniter->run()
#5 {main}
in APPPATH\Views\errors\html\error_exception.php on line 33.
1 [internal function]: CodeIgniter\Debug\Exceptions->shutdownHandler()
INFO - 2024-03-04 22:30:18 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.

Loading…
Cancel
Save