mirror of
https://github.com/claradex/nativegallery.git
synced 2024-11-15 03:31:10 +03:00
43 lines
No EOL
1,023 B
PHP
43 lines
No EOL
1,023 B
PHP
<?php
|
|
use App\Services\{Router, Auth};
|
|
|
|
$user = new \App\Models\User(Auth::userid());
|
|
|
|
if (!isset($_GET['type']) || $_GET['type'] != 'Photo') {
|
|
if ($user->i('admin') === 2) {
|
|
header('Location: ?type=Photo');
|
|
}
|
|
}
|
|
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="ru">
|
|
<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>
|
|
|
|
<script>
|
|
notie.setOptions({
|
|
transitionCurve: 'cubic-bezier(0.2, 0, 0.2, 1)'
|
|
});
|
|
var Notify = {
|
|
noty: function(status, text) {
|
|
|
|
if (status == 'danger') status = 'error';
|
|
|
|
return notie.alert({ type: status, text: text })
|
|
|
|
},
|
|
}
|
|
</script>
|
|
<body>
|
|
<div class="container">
|
|
<?=\App\Controllers\AdminController::loadMenu();?>
|
|
<?=\App\Controllers\AdminController::loadContent();?>
|
|
</div>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|