Big cleaning.
This commit is contained in:
+1
-4
@@ -1,9 +1,6 @@
|
||||
<?php
|
||||
session_start();
|
||||
error_reporting(E_ALL ^ E_NOTICE);
|
||||
ini_set('display_errors', 'on');
|
||||
if (@$_SESSION['uid'] == null) header("Location: index.php");
|
||||
include './config.php';
|
||||
if ($_SESSION['uid'] == null) header("Location: index.php");
|
||||
include "functions.php";
|
||||
$user = mysql_fetch_array(mysql_query('SELECT * FROM `users` WHERE `id` = \''.$_SESSION['uid'].'\' LIMIT 1;'));
|
||||
if ($user['battle'] != 0) { header('location: fbattle.php'); echo "jljkljkl"; die(); }
|
||||
|
||||
Reference in New Issue
Block a user