Зачем-то инкапсуляция...

This commit is contained in:
Igor Barkov (iwork)
2021-02-01 18:42:52 +02:00
parent 8d0bce6299
commit 7dd6368b84
23 changed files with 867 additions and 236 deletions
+5 -2
View File
@@ -1,4 +1,7 @@
<?php
use Battles\Template;
session_start();
if (empty($_SESSION['uid'])) {
header('Location: /index.php');
@@ -54,10 +57,10 @@ function info_quest($id)
if (!empty($q->error)) {
$status = $q->error;
}
\Battles\Template::header('Памятник');
Template::header('Памятник');
?>
<div style="float: right;">
<?php if (($user->level < 5 || $user->admin) && $user->health < $user->maxHealth): ?>
<?php if (($user->getLevel() < 5 || $user->admin) && $user->health < $user->maxHealth): ?>
<button onclick="location.href='?hps'">Восстановить здоровье</button>
<? endif ?>
<button onclick="location.href='?'">Обновить</button>