bad class bug
This commit is contained in:
parent
a86e5a6cd7
commit
ba1182c95d
2
klan.php
2
klan.php
@ -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']);
|
||||
?>
|
||||
|
6
main.php
6
main.php
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user