Big cleaning.

This commit is contained in:
lopar
2018-12-13 01:37:27 +02:00
parent 9f0d0b540e
commit 03d07b0543
12 changed files with 21 additions and 245 deletions
+1 -4
View File
@@ -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(); }