battles/inf.php

15 lines
690 B
PHP
Raw Normal View History

2018-01-28 16:40:49 +00:00
<?php
use Battles\{Template, User};
use Battles\Models\Presents;
include_once 'config.php';
$presentsList = (new Presents())->getAll(User::getInstance($_SERVER['QUERY_STRING'])->getId());
Template::header('Информация о ' . User::getInstance($_SERVER['QUERY_STRING'])->getLogin());
if (!User::getInstance($_SERVER['QUERY_STRING'])->getId()) {
echo sprintf('Ошибка: персонаж <em>%s</em> не найден...<p><a style="color: #99f;" href="javascript:window.history.go(-1);">←назад</a></p>', urldecode($_SERVER['QUERY_STRING']));
exit;
}
User::getInstance($_SERVER['QUERY_STRING'])->userInfo()->showUserInfo();
include_once 'views/inf-presents.php';