Логирование методов пользователя

This commit is contained in:
rsgrinko committed 2022-04-19 00:10:36 +03:00
1 parent d77a8fc3c4
commit 893e1056fc
8 files changed
+274 -23

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@
use Core\Models\User;
require_once __DIR__ . '/../../core/bootstrap.php';
$userId = User::getUserId();
$userId = User::getCurrentUserId();
if(!empty($userId)) {
$USER = new User($userId);
+2 -2
View File
@@ -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">
+1 -1
View File
@@ -4,7 +4,7 @@
require_once __DIR__ . '/inc/bootstrap.php';
if (User::isUser()) {
if (User::isAuthorized()) {
$auth = true;
} else {
$auth = false;