14 lines
689 B
PHP
14 lines
689 B
PHP
<?php
|
||
session_start();
|
||
include_once 'config.php';
|
||
$userInfo = new \Battles\UserInfo(urldecode($_SERVER['QUERY_STRING']));
|
||
$presentsModel = new \Battles\Models\PresentsModel($userInfo->getId());
|
||
$presentsList = $presentsModel->getAllPresents();
|
||
$userInfo->watcher_id = $_SESSION['uid'] ?? null;
|
||
\Battles\Template::header('Информация о ' . $userInfo->getLogin());
|
||
if (!$userInfo->getId()) {
|
||
echo sprintf('Ошибка: персонаж <em>%s</em> не найден...<p><a style="color: #99f;" href="javascript:window.history.go(-1);">←назад</a></p>', urldecode($_SERVER['QUERY_STRING']));
|
||
exit;
|
||
}
|
||
$userInfo->showUserInfo();
|
||
include_once 'views/presents-list.php'; |