2018-01-28 16:40:49 +00:00
< ? php
2021-08-20 17:40:06 +00:00
2022-08-09 19:57:43 +00:00
use Battles\ { Template , User };
use Battles\Models\Presents ;
2021-08-20 17:40:06 +00:00
2020-07-05 17:15:45 +00:00
include_once 'config.php' ;
2022-08-09 19:57:43 +00:00
$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 ()) {
2021-03-10 21:38:14 +00:00
echo sprintf ( 'Ошибка: персонаж <em>%s</em> не найден...<p><a style="color: #99f;" href="javascript:window.history.go(-1);">←назад</a></p>' , urldecode ( $_SERVER [ 'QUERY_STRING' ]));
2020-09-30 11:49:17 +00:00
exit ;
}
2022-08-09 19:57:43 +00:00
User :: getInstance ( $_SERVER [ 'QUERY_STRING' ]) -> userInfo () -> showUserInfo ();
include_once 'views/inf-presents.php' ;