Хороним идиотские ошибки в проверках и инклюдах.
This commit is contained in:
@@ -5,10 +5,11 @@ if ($user['battle'] > 0) {
|
||||
} elseif (rand(1,100)!=1) {
|
||||
undressall($user['id']);
|
||||
$user = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `id` = '{$_SESSION['uid']}' LIMIT 1;"));
|
||||
if ($_SESSION['uid'] == null) {
|
||||
if (empty($_SESSION['uid'])) {
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
if($user['sila']>3){
|
||||
mysql_query("UPDATE `users` SET `stats`=`stats`+1,`sila` = `sila`-1 WHERE `id` = '{$_SESSION['uid']}' LIMIT 1;");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user