mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update manage_user.php
This commit is contained in:
parent
7dea5b28f0
commit
38fec7428d
@ -21,11 +21,12 @@ switch ($mode)
|
||||
if ($userdata['user_id'] == $user_id) $this->ajax_die($lang['USER_DELETE_ME']);
|
||||
if (empty($this->request['confirmed'])) $this->prompt_for_confirm($lang['USER_DELETE_CONFIRM']);
|
||||
|
||||
if ($user_id != BOT_UID)
|
||||
if (!in_array($user_id, explode(',', EXCLUDED_USERS_CSV)))
|
||||
{
|
||||
delete_user_sessions($user_id);
|
||||
user_delete($user_id);
|
||||
|
||||
$user_id = $userdata['user_id']; // Store self user_id for redirect after successful deleting
|
||||
$this->response['info'] = $lang['USER_DELETED'];
|
||||
}
|
||||
else $this->ajax_die($lang['USER_DELETE_CSV']);
|
||||
|
Loading…
Reference in New Issue
Block a user