Files
inwestprofil.pl/autoload/admin/view/class.Page.php
Jacek Pyziak dde8b85885 Add new templates for user authentication and management
- Created `unlogged-layout.php` and `unlogged.php` for the login page layout.
- Implemented `main-view.php` for system update management with progress tracking.
- Added `user-2fa.php` for two-factor authentication verification.
- Developed `user-edit.php` for editing user details and privileges.
- Introduced `users-list.php` for displaying and managing user accounts.
- Added `.htaccess` configuration for URL rewriting and security settings.
2026-01-13 23:16:24 +01:00

23 lines
419 B
PHP

<?php
namespace admin\view;
class Page {
public static function show()
{
global $user;
if ( $_GET['module'] == 'user' && $_GET['action'] == 'twofa' ) {
return \admin\controls\Users::twofa();
}
if ( !$user || !$user['admin'] )
return \admin\view\Users::login_form();
$tpl = new \Tpl;
$tpl -> content = \admin\Site::route();
return $tpl -> render( 'site/main-layout' );
}
}
?>