mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-01 02:38:55 +00:00
Remove extra flood checks from BasePage.
This commit is contained in:
@@ -96,8 +96,7 @@ class BasePage
|
||||
$this->page = (isset($_GET['page'])) ? $_GET['page'] : 'content';
|
||||
|
||||
$this->users = new Users(['Settings' => $this->settings]);
|
||||
if ($this->users->isLoggedIn())
|
||||
{
|
||||
if ($this->users->isLoggedIn()) {
|
||||
$this->userdata = $this->users->getById($this->users->currentUserId());
|
||||
$this->userdata["categoryexclusions"] = $this->users->getCategoryExclusion($this->users->currentUserId());
|
||||
|
||||
@@ -146,16 +145,12 @@ class BasePage
|
||||
$this->settings->setSetting(['adbrowse', '']);
|
||||
$this->settings->setSetting(['addetail', '']);
|
||||
}
|
||||
|
||||
$this->floodCheck($this->userdata["role"]);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->smarty->assign('isadmin', 'false');
|
||||
$this->smarty->assign('ismod', 'false');
|
||||
$this->smarty->assign('loggedin', 'false');
|
||||
$this->floodCheck();
|
||||
|
||||
}
|
||||
|
||||
$this->smarty->assign('site', $this->settings);
|
||||
|
||||
Reference in New Issue
Block a user