Куча мелких фиксов, уборка мусора.

This commit is contained in:
lopar
2020-09-30 01:39:06 +03:00
parent 640e85cf18
commit 5ac30becb7
149 changed files with 4221 additions and 11012 deletions
+11 -7
View File
@@ -1,19 +1,23 @@
<?php
session_start();
if ($_SESSION['uid'] == null) header("Location: index.php");
if (!$_SESSION['uid']) {
header("Location: index.php");
exit;
}
require_once 'functions.php';
$user = $user ?? 0;
if ($user['level'] < 1) {
if ($user->level < 1) {
header("Location: main.php");
die();
exit;
}
if ($user['room'] != 25) {
if ($user->room != 25) {
header("Location: main.php");
die();
exit;
}
if ($user['battle'] != 0) {
if ($user->battle) {
header('location: fbattle.php');
die();
exit;
}
$get = urldecode(filter_input(INPUT_SERVER, 'QUERY_STRING'));