Вход в игру снова работает.

This commit is contained in:
Igor Barkov (iwork)
2021-01-29 17:21:14 +02:00
parent 92c3ea79c0
commit 06963ce428
3 changed files with 24 additions and 21 deletions
+6 -1
View File
@@ -9,8 +9,13 @@ use Battles\Travel;
use Battles\User;
require_once 'config.php';
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
} else {
$user = new User($_SESSION['uid']);
}
$user = new User($_SESSION['uid']);
if ($user->id && $user->block) {
exit('user blocked!');
}