Зачем-то инкапсуляция...
This commit is contained in:
+5
-2
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user