Внедрение шаблонизатора. Решение самых идиотских ошибок вёрстки. Кое-где исправлены ошибки синтаксиса php.

This commit is contained in:
Igor Barkov (iwork)
2020-09-30 22:12:34 +03:00
parent 8b1a2e9b38
commit a4de6c51a3
41 changed files with 4688 additions and 5715 deletions
+5 -12
View File
@@ -5,7 +5,7 @@ if (empty($_SESSION['uid'])) {
}
require_once 'functions.php';
include('classes/quests_class.php');
$status = '';
$get = urldecode(filter_input(INPUT_SERVER, 'QUERY_STRING'));
if ($get == 'exit') {
@@ -54,22 +54,17 @@ function info_quest($id)
if (!empty($q->error)) {
$status = $q->error;
}
Template::header('Памятник');
?>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="css/main.css"/>
</head>
<body>
<div style="float: right;">
<?php if (($user['level'] < 5 OR $user['admin'] == 1) AND $user['hp'] < $user['maxhp']): ?>
<?php if (($user->level < 5 || $user->admin) && $user->health < $user->maxHealth): ?>
<button onclick="location.href='?hps'">Восстановить здоровье</button>
<? endif ?>
<button onclick="location.href='?'">Обновить</button>
<button onclick="location.href='?exit'">Вернуться</button>
</div>
<h1>Памятник</h1>
<div><?php if (!empty($status)) err($status); ?></div>
<div><?= $status ?></div>
<div>
На памятнике выгравированы опасные задания, за выполнение которых можно получить достойную
награду! Для каждого задания отводится определенный промежуток времени, если задание не сдано вовремя, то
@@ -77,6 +72,4 @@ if (!empty($q->error)) {
</div>
<div style="text-align: center;">
<?= $questList ?>
</div>
</body>
</html>
</div>