|-------------------------------------------------------------------------- | Delete a single user |-------------------------------------------------------------------------- | */ case 'users_delete': if (!Sentinel::isAdmin()) { $return['error'] = 'vaffanculo'; break; } $username = $_POST['u']; if ($username === $current_user) { $return['error'] = __('Please do not shoot yourself in the foot!'); } else { Sentinel::deleteUser($username); Sentinel::log('deleteuser ' . $username, $current_user); Sentinel::save(); } break; /* |-------------------------------------------------------------------------- | Sign in as a user |-------------------------------------------------------------------------- | */ /* |-------------------------------------------------------------------------- | Sign in as a user |-------------------------------------------------------------------------- | */