This commit is contained in:
lopar
2018-03-01 23:41:48 +02:00
parent 75a85099dc
commit 9a209d6ebd
2 changed files with 9 additions and 9 deletions
+3 -1
View File
@@ -72,8 +72,10 @@ if (empty($user['battle']) && ($user['hp'] < @$user['maxhp'])) {
regenhp($user);
}
$inder = filter_input(INPUT_COOKIE, $_COOKIE['inder']);
if (!isset($banks['id'])) {
$banks = db::c()->query('SELECT `id`, `cr`, `ekr` FROM `bank` WHERE `id` = "?s" AND `owner` = "?s" LIMIT 1', $_COOKIE['inder'], $user['id'])->fetch_assoc();
$banks = db::c()->query('SELECT `id`, `cr`, `ekr` FROM `bank` WHERE `id` = "?s" AND `owner` = "?s" LIMIT 1', $inder, $u->i()['id'])->fetch_assoc();
}
function auth_bank($id, $pass, $us)