Удаление блока кастомных страниц в профиле.
This commit is contained in:
4
inf.php
4
inf.php
@@ -44,9 +44,7 @@ if (empty($user->id)): ?>
|
||||
<link href="css/main.css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<?php if ($user->admin === 1 && private_access($uid) !== ADMINISTRATOR_ACCESS && file_exists('customuserdata/' . $user['id'])) {
|
||||
die(file_get_contents('customuserdata/' . $user['id']));
|
||||
}
|
||||
<?php
|
||||
try {
|
||||
$effect = db::c()->query('SELECT `time` FROM `effects` WHERE `owner` = ?i AND `type` = ?i ', $this->id, 5)->fetch_assoc();
|
||||
if ($effect['time'] && !private_access($uid)) {
|
||||
|
||||
Reference in New Issue
Block a user