mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Make caching for ban list (#1269)
This commit is contained in:
parent
ed34bbb735
commit
66083cabad
7 changed files with 46 additions and 31 deletions
|
@ -394,20 +394,6 @@ $user = new TorrentPier\Legacy\Common\User();
|
|||
|
||||
$userdata =& $user->data;
|
||||
|
||||
/**
|
||||
* Initial ban check
|
||||
*/
|
||||
if ($banInfo = getUserBanInfo((int)$user->id)) {
|
||||
if (!IS_GUEST) {
|
||||
$user->session_end();
|
||||
}
|
||||
if (!empty($banInfo['ban_reason'])) {
|
||||
bb_die($lang['YOU_BEEN_BANNED'] . '<br><br>' . $banInfo['ban_reason']);
|
||||
} else {
|
||||
bb_die($lang['YOU_BEEN_BANNED']);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Cron
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue