Куча мелких фиксов, уборка мусора.
This commit is contained in:
+13
-10
@@ -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']) {
|
||||
|
||||
Reference in New Issue
Block a user