|
|
@ -227,6 +227,8 @@ class AdminController extends Controller |
|
|
|
if (!isset($_POST['rejected'])) |
|
|
|
{ |
|
|
|
$this->getModel('UsersModel')->deleteUser($_GET['id']); |
|
|
|
if ($user_info['avatar'] != null) //delete user's avatar
|
|
|
|
unlink('./'.$user_info['avatar']); |
|
|
|
$this->getView('MainView')->forum_message('Profile deleted. Redirecting to users list...', 'index.php?mode=admin&submode=users'); |
|
|
|
$lockv = true; |
|
|
|
} |
|
|
|