Сборка REDL: панель на PHP 8, капча-тумблер, закрытые уязвимости, установщики в один клик
- панель работает на PHP 8.4 (оригинал под PHP 7.0): elFinder utf8_encode, apache_get_modules, warnings - капча выключена и управляется из админки (флаг captcha_enable + блок настроек) - закрыты две SQL-инъекции без авторизации (createAuthLog: пароль из POST и CF-Connecting-IP) - убрано хранение паролей в открытом виде в authlog, XSS в поле ref - установщики install-panel.sh и install-node.sh (оригинальный затирал sources.list репозиториями Debian 9) - современный Dockerfile (оригинальный на debian:stretch больше не собирается) - планировщик и автозапуск работают без systemd - брендинг REDL.IO, год 2026, ссылки на redl.io - документация на русском: ИЗМЕНЕНИЯ, БЕЗОПАСНОСТЬ, ИНСТРУКЦИЯ
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (c) 2020 HOSTINPL (HOSTING-RUS) https://vk.com/hosting_rus
|
||||
Developed by Samir Shelenko (https://vk.com/id00v)
|
||||
*/
|
||||
class logoutController extends Controller {
|
||||
public function index() {
|
||||
$this->load->model('users');
|
||||
$this->document->setActiveSection('account');
|
||||
$this->document->setActiveItem('logout');
|
||||
|
||||
if(!$this->user->isLogged()) {
|
||||
$this->session->data['error'] = 'Вы не авторизированы';
|
||||
$this->response->redirect($this->config->url . 'account/login');
|
||||
}
|
||||
|
||||
$userid=$this->user->getId();
|
||||
$ip=$this->user->getRealIpAdress();
|
||||
$this->usersModel->createAuthLog($userid,$ip,'2','NONE');
|
||||
|
||||
$this->user->logout();
|
||||
$this->session->data['success'] = 'Вы успешно вышли из своего аккаунта';
|
||||
$this->response->redirect($this->config->url);
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user