bad class bug

This commit is contained in:
lopar 2018-03-03 22:56:05 +02:00
parent a86e5a6cd7
commit ba1182c95d
2 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ include_once 'functions.php';
if (!$user['klan']) {
die(err('Вы не состоите в клане!'));
}
$klan = db::c()->query('SELECT * FROM `clans` WHERE `id` = ?i', $u->i()['klan'])->fetch_assoc();
$klan = db::c()->query('SELECT * FROM `clans` WHERE `id` = ?i', $user['klan'])->fetch_assoc();
$polno = [];
$polno = unserialize($klan['vozm']);
?>

View File

@ -8,8 +8,8 @@ if (!isset($_SESSION['uid'])) {
include("config.php");
include("functions.php");
$tmaz = time();
db::c()->query('UPDATE `online` SET `real_time` = ?i WHERE `id` = ?i', time(), $u->i()['id']);
if ($u->i()['battle'] != 0) {
db::c()->query('UPDATE `online` SET `real_time` = ?i WHERE `id` = ?i', time(), $user['id']);
if ($user['battle'] != 0) {
header('location: fbattle.php');
die();
}
@ -20,7 +20,7 @@ if ($u->i()['battle'] != 0) {
//}
if ($_POST['bankpsw']) {
echo "<b style='color: Red;'>" . auth_bank((int)$_POST['bank'], $_POST['bankpsw'], $u->i()['id']) . "</b>";
echo "<b style='color: Red;'>" . auth_bank((int)$_POST['bank'], $_POST['bankpsw'], $user['id']) . "</b>";
}
if ($_GET['unset_bank'] == 1) {