branch modified

This commit is contained in:
yangsh
2025-12-02 10:56:57 +09:00
parent b8920315df
commit 9993465da9
39 changed files with 9487 additions and 0 deletions

31
app/Filters/AuthCheck.php Normal file
View File

@@ -0,0 +1,31 @@
<?php
namespace App\Filters;
use CodeIgniter\HTTP\RequestInterface;
use CodeIgniter\HTTP\ResponseInterface;
use CodeIgniter\Filters\FilterInterface;
class AuthCheck implements FilterInterface
{
public function before(RequestInterface $request, $arguments = null)
{
$session = session();
log_message('debug', 'URI PATH: ' . service('uri')->getPath());
// 로그인 체크
if (!$session->get('logged_in')) {
// 로그인 안 되어 있으면 로그인 페이지로
// return redirect()->to('/login');
}
}
public function after(RequestInterface $request, ResponseInterface $response, $arguments = null)
{
// After logic not required
}
}
?>