Логирование методов пользователя
This commit is contained in:
1 parent
d77a8fc3c4
commit
893e1056fc
8 files changed
+274
-23
No files matched your search
@@ -3,7 +3,7 @@
|
||||
use Core\Models\User;
|
||||
|
||||
require_once __DIR__ . '/bootstrap.php';
|
||||
if (!User::isUser() and $_SERVER['REQUEST_URI'] !== '/login.php') {
|
||||
if (!User::isAuthorized() and $_SERVER['REQUEST_URI'] !== '/login.php') {
|
||||
header('Location: login.php');
|
||||
die();
|
||||
}
|
||||
@@ -34,7 +34,7 @@
|
||||
<header>
|
||||
<div class="headerwrapper">
|
||||
<div class="header-left">
|
||||
<a href="index.html" class="logo">
|
||||
<a href="index.php" class="logo">
|
||||
<img src="//<?=$_SERVER['SERVER_NAME']; ?>/admin/styles/images/logo.png" alt=""/>
|
||||
</a>
|
||||
<div class="pull-right">
|
||||
|
||||
Reference in new issue
Block a user