Зачем-то инкапсуляция...

This commit is contained in:
Igor Barkov (iwork)
2021-02-01 18:42:52 +02:00
parent 8d0bce6299
commit 7dd6368b84
23 changed files with 867 additions and 236 deletions

View File

@@ -6,7 +6,7 @@ use Battles\User;
session_start();
require_once "functions.php";
$user = $user ?? new User($_SESSION['uid']);
if ($user->level < 4 && $user->level > 10) {
if ($user->getLevel() < 4 && $user->getLevel() > 10) {
header('location: main.php?act=none');
exit;
}