- 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
51 lines
2.1 KiB
PHP
51 lines
2.1 KiB
PHP
<?php
|
|
use App\Core\View;
|
|
|
|
// Definir variáveis para o layout
|
|
$page_title = 'Auth offline';
|
|
$page_description = 'Página Auth offline';
|
|
|
|
// Incluir o layout principal
|
|
View::render('layouts/auth.php', [
|
|
'title' => $page_title,
|
|
'description' => $page_description,
|
|
'page_content' => function() {
|
|
?>
|
|
<?php
|
|
View::include('layouts/main.php');?>
|
|
|
|
<!-- auth-page wrapper -->
|
|
<div class="auth-page-wrapper auth-bg-cover py-5 d-flex justify-content-center align-items-center min-vh-100">
|
|
<div class="bg-overlay"></div>
|
|
<!-- auth-page content -->
|
|
<div class="auth-page-content overflow-hidden pt-lg-5">
|
|
<div class="container">
|
|
<div class="row justify-content-center">
|
|
<div class="col-xl-5">
|
|
<div class="card overflow-hidden">
|
|
<div class="card-body p-4">
|
|
<div class="text-center">
|
|
<img src="https://img.<?php echo \App\Core\AppConfig::getCompanyName(); ?>.com/<?php echo \App\Core\AppConfig::getCompanyName(); ?>/images/auth-offline.gif" alt="" height="210">
|
|
<h3 class="mt-4 fw-semibold">We're currently offline</h3>
|
|
<p class="text-muted mb-4 fs-14">We can't show you this images because you aren't connected to the internet. When you're back online refresh the page or hit the button below</p>
|
|
<button class="btn btn-success btn-border" onClick="window.location.href=window.location.href"><i class="ri-refresh-line align-bottom"></i> Refresh</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- end card -->
|
|
</div>
|
|
<!-- end col -->
|
|
|
|
</div>
|
|
<!-- end row -->
|
|
</div>
|
|
<!-- end container -->
|
|
</div>
|
|
<!-- end auth page content -->
|
|
</div>
|
|
<!-- end auth-page-wrapper -->
|
|
<?php
|
|
}
|
|
]);
|
|
?>
|