battles/inf.php

26 lines
821 B
PHP
Raw Normal View History

2018-01-28 16:40:49 +00:00
<?php
session_start();
include_once 'config.php';
$login = urldecode($_SERVER['QUERY_STRING']) ?? '';
$userInfo = new UserInfo($login);
$presentsModel = new PresentsModel($userInfo->id);
$presentsList = $presentsModel->getAllPresents();
$userInfo->watcher_id = $userInfo->id ?? null;
Template::header('Информация о'.$userInfo->login);
if (empty($userInfo->id)): ?>
Ошибка: персонаж <em><?= $login ?></em> не найден...
<p><a style="color: #99f" href="javascript:window.history.go(-1);">←назад</a></p>
2020-06-23 05:11:07 +00:00
<?php exit(); endif; ?>
2018-01-28 16:40:49 +00:00
<?php
try {
$userInfo->showUserInfo();
2020-07-05 16:54:57 +00:00
} catch (Exception $e_showUserInfo) {
echo "<div class='debug'>Ошибка генератора showUserInfo() в User.php: {$e_showUserInfo}</div>";
2020-07-03 14:14:08 +00:00
}
include_once 'views/presents-list.php';