Выдача информации с учётом статусов.
This commit is contained in:
9
inf.php
9
inf.php
@@ -1,14 +1,12 @@
|
||||
<?php
|
||||
session_start();
|
||||
include_once 'config.php';
|
||||
//include_once 'models/PresentsModel.php';
|
||||
|
||||
$login = urldecode($_SERVER['QUERY_STRING']) ?? '';
|
||||
$uid = $_SESSION['uid'] ?? null;
|
||||
$user = new User($login);
|
||||
$presentsModel = new PresentsModel($user->id);
|
||||
$presentsList = $presentsModel->getAllPresents();
|
||||
|
||||
$user->watcher_id = $_SESSION['uid'] ?? null;
|
||||
if (empty($user->id)): ?>
|
||||
<!doctype html>
|
||||
<html lang="ru">
|
||||
@@ -32,11 +30,6 @@ if (empty($user->id)): ?>
|
||||
<body>
|
||||
<?php
|
||||
|
||||
$hideInfo = new EffectsModel($user->id);
|
||||
if ($hideInfo->getHideUserInfoStatus()) {
|
||||
exit('<h3>Персонаж обезличен!</h3>');
|
||||
}
|
||||
|
||||
try {
|
||||
$user->showUserInfo();
|
||||
} catch (Exception $e_showUserInfo) {
|
||||
|
||||
Reference in New Issue
Block a user