nativegallery/views/pages/Admin/Index.php

29 lines
432 B
PHP
Raw Normal View History

2024-07-10 12:30:10 +03:00
<?php
use App\Services\{Router, Auth};
2024-07-18 16:13:50 +03:00
$user = new \App\Models\User(Auth::userid());
if (!isset($_GET['type']) || $_GET['type'] != 'Photo') {
if ($user->i('admin') === 2) {
header('Location: ?type=Photo');
}
}
2024-07-10 12:30:10 +03:00
?>
<!DOCTYPE html>
<html lang="ru">
<body>
2024-07-20 22:55:19 +03:00
<div class="container">
<?=\App\Controllers\AdminController::loadMenu();?>
<?=\App\Controllers\AdminController::loadContent();?>
</div>
2024-07-10 12:30:10 +03:00
</body>
</html>