mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-11 02:46:56 +01:00
* [ADD] Security improvements preventing common threats (SQL Injection, XSS, CSRF) * [ADD] Fully MVC * [ADD] Using PDO for database queries * [ADD] Using PKI for forms passwords encryption (for insecure channels) * [ADD] Using TOTP for 2-factor authentication * [ADD] Custom fields can be created for several modules * [ADD] Export to sysPass encrypted XML file * [ADD] View passwords as images * [ADD] Temporary master password for limited time logins * [ADD] Password generator with complexity options * [ADD] API authorizations * [ADD] New visual theme with Material Design Lite by Google * [ADD] Theming features * [ADD] Special searches * [ADD] Image thumbnail preview * [MOD] 60% of code rewriting for improve performance and reusability (2x faster) * [MOD] Better error handling * [MOD] Better in-context help
51 lines
1.3 KiB
PHP
51 lines
1.3 KiB
PHP
<?php
|
|
/**
|
|
* sysPass
|
|
*
|
|
* @author nuxsmin
|
|
* @link http://syspass.org
|
|
* @copyright 2012-2015 Rubén Domínguez nuxsmin@syspass.org
|
|
*
|
|
* This file is part of sysPass.
|
|
*
|
|
* sysPass is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* sysPass is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with sysPass. If not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
*/
|
|
|
|
use SP\Request;
|
|
|
|
define('APP_ROOT', '..');
|
|
|
|
require_once APP_ROOT . DIRECTORY_SEPARATOR . 'inc' . DIRECTORY_SEPARATOR . 'Base.php';
|
|
|
|
Request::checkReferer('GET');
|
|
|
|
if (!SP\Init::isLoggedIn()) {
|
|
return;
|
|
}
|
|
|
|
if (!SP\Util::fileIsEnabled()) {
|
|
echo _('Gestión de archivos deshabilitada');
|
|
return false;
|
|
}
|
|
|
|
$sk = SP\Request::analyze('sk', false);
|
|
|
|
if (!$sk || !SP\Common::checkSessionKey($sk)) {
|
|
SP\Common::printXML(_('CONSULTA INVÁLIDA'));
|
|
}
|
|
|
|
$controller = new SP\Controller\AccountsMgmtC();
|
|
$controller->getFiles();
|
|
$controller->view(); |