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

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
+13 -10
View File
@@ -1,18 +1,21 @@
<?php
session_start();
if ($_SESSION['uid'] == null) header("Location: index.php");
include "config.php";
$user = db::c()->query('SELECT `room`,`battle` FROM `users` WHERE `id` = ?i',$_SESSION['uid'])->fetch_assoc();
if ($user['room'] != 650) {
header("Location: main.php");
die();
if ($_SESSION['uid'] == null) {
header("Location: index.php");
exit;
}
if ($user['battle'] != 0) {
require_once "config.php";
$user = new User($_SESSION['uid']);
if ($user->room != 650) {
header("Location: main.php");
exit;
}
if ($user->battle) {
header('location: fbattle.php');
die();
exit;
}
if ($_GET['id']) {