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">
|
2024-07-21 04:43:25 +03:00
|
|
|
<script src="https://code.jquery.com/jquery-3.7.1.js"></script>
|
|
|
|
<link rel="stylesheet" href="/static/css/notie.css<?php if (NGALLERY['root']['cloudflare-caching'] === true) { echo '?'.time(); } ?>">
|
|
|
|
<script src="/static/js/notie.js<?php if (NGALLERY['root']['cloudflare-caching'] === true) { echo '?'.time(); } ?>"></script>
|
2024-07-10 12:30:10 +03:00
|
|
|
|
2024-07-21 04:43:25 +03:00
|
|
|
<script>
|
|
|
|
notie.setOptions({
|
|
|
|
transitionCurve: 'cubic-bezier(0.2, 0, 0.2, 1)'
|
|
|
|
});
|
|
|
|
var Notify = {
|
|
|
|
noty: function(status, text) {
|
2024-07-10 12:30:10 +03:00
|
|
|
|
2024-07-21 04:43:25 +03:00
|
|
|
if (status == 'danger') status = 'error';
|
2024-07-10 12:30:10 +03:00
|
|
|
|
2024-07-21 04:43:25 +03:00
|
|
|
return notie.alert({ type: status, text: text })
|
2024-07-10 12:30:10 +03:00
|
|
|
|
2024-07-21 04:43:25 +03:00
|
|
|
},
|
|
|
|
}
|
|
|
|
</script>
|
2024-07-10 12:30:10 +03:00
|
|
|
<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>
|