battles/inf.php

50 lines
1.4 KiB
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;
if (empty($userInfo->id)): ?>
2020-06-23 05:11:07 +00:00
<!doctype html>
<html lang="ru">
2019-01-16 01:22:09 +00:00
<head>
<meta charset="utf-8">
2019-01-28 17:56:21 +00:00
<title>Ошибка</title>
</head>
<body style="color: #666; background-color: #d5d5d5; text-align: center; font-family: Consolas,monospace;">
Ошибка: персонаж <em><?= $login ?></em> не найден...
<p><a style="color: #99f" href="javascript:window.history.go(-1);">←назад</a></p>
2018-01-28 16:40:49 +00:00
</body>
</html>
2020-06-23 05:11:07 +00:00
<?php exit(); endif; ?>
2018-01-28 16:40:49 +00:00
2020-06-23 05:11:07 +00:00
<html lang="ru">
2018-01-28 16:40:49 +00:00
<head>
<title>Информация о <?= $userInfo->login ?></title>
<meta charset=UTF-8"/>
<link href="css/main.css" rel="stylesheet">
2018-01-28 16:40:49 +00:00
</head>
2020-07-03 13:52:19 +00:00
<body>
<?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';
2018-01-28 16:40:49 +00:00
?>
<script src="js/jquery-1.7.2.min.js"></script>
<script src="js/showthing.js"></script>
<script>
$(function () {
$(".tooltip").tipTip({maxWidth: "auto", edgeOffset: 0, fadeIn: 300, fadeOut: 500});
});
</script>
2018-01-28 16:40:49 +00:00
</body>
</html>