diff --git a/bank.php b/bank.php index 8537d40..aa21297 100644 --- a/bank.php +++ b/bank.php @@ -23,6 +23,7 @@ if ($get == 'exit') { $_SESSION[BANK_SESSION_NAME] = null; } $bank = new Bank($user->id); +$status = ''; if (isset($_POST['userlogin'])) { $_SESSION[BANK_SESSION_NAME] = $bank->user_id; @@ -31,7 +32,6 @@ if ($_SESSION[BANK_SESSION_NAME]) { $toid = (int)$_POST['to_id'] ?? 0; $summa = (int)$_POST['summa'] ?? 0; $submit = $_POST['action'] ?? ''; - $status = ''; // Зачисление кредитов на счёт. if ($submit === 'depositMoney' && $summa) { $bank->depositMoney($summa); @@ -49,17 +49,10 @@ if ($_SESSION[BANK_SESSION_NAME]) { } unset($submit, $summa, $toid); } +Template::header('Банк'); ?> - - -
- - -