- Add complete Auth module with login, logout, lock screen functionality - Fix 401 error on error monitoring page by adding /error-monitoring/ to public patterns - Improve lock screen with proper form handling and unlock functionality - Add RoleModel and role management views - Add BaseModel for common model functionality - Update authentication system and middleware - Add troubleshooting documentation - Update assets and build tools
73 lines
2.8 KiB
PHP
73 lines
2.8 KiB
PHP
<?php
|
|
use App\Core\View;
|
|
use App\Core\AssetManager;
|
|
|
|
// Page variables
|
|
$page_title = '404 Not Found';
|
|
$page_description = 'The page you are looking for was not found.';
|
|
|
|
// Render the authentication layout
|
|
View::render('layouts/auth.php', [
|
|
'title' => $page_title,
|
|
'description' => $page_description,
|
|
'page_content' => function() {
|
|
?>
|
|
<div class="auth-page-wrapper pt-5">
|
|
<!-- auth page bg -->
|
|
<div class="auth-one-bg-position auth-one-bg" id="auth-particles">
|
|
<div class="bg-overlay"></div>
|
|
<div class="shape">
|
|
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1440 120">
|
|
<path d="M 0,36 C 144,53.6 432,123.2 720,124 C 1008,124.8 1296,56.8 1440,40L1440 140L0 140z"></path>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- auth page content -->
|
|
<div class="auth-page-content">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<div class="text-center pt-4">
|
|
<div>
|
|
<img src="<?php echo View::asset('assets/images/error.svg'); ?>" alt="" class="error-basic-img move-animation">
|
|
</div>
|
|
<div class="mt-n4">
|
|
<h1 class="display-1 fw-medium">404</h1>
|
|
<h3 class="text-uppercase">Sorry, Page not Found 😭</h3>
|
|
<p class="text-muted mb-4">The page you are looking for not available!</p>
|
|
<a href="/" class="btn btn-success"><i class="mdi mdi-home me-1"></i>Back to home</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- footer -->
|
|
<footer class="footer">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<div class="text-center">
|
|
<p class="mb-0 text-muted">© <script>document.write(new Date().getFullYear())</script> <?php echo \App\Core\AppConfig::getCompanyName(); ?>.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
</div>
|
|
|
|
<!-- particles js -->
|
|
|
|
<!-- particles app js -->
|
|
|
|
<?php
|
|
},
|
|
'scripts' => function() {
|
|
AssetManager::addFooterJs(View::asset('assets/libs/particles.js/particles.js'));
|
|
AssetManager::addFooterJs(View::asset('assets/js/pages/particles.app.js'));
|
|
}
|
|
]);
|
|
?>
|