$tpl->assign('header', _('Ver Autorización')); $tpl->assign('onCloseAction', \SP\Controller\ActionsInterface::ACTION_USR); $tpl->assign('isView', true); $controller = new SP\Controller\UsersMgmtC($tpl); $controller->getToken(); break; case \SP\Controller\ActionsInterface::ACTION_MGM_APITOKENS_NEW: $tpl->assign('header', _('Nueva Autorización')); $tpl->assign('onCloseAction', \SP\Controller\ActionsInterface::ACTION_USR); $controller = new SP\Controller\UsersMgmtC($tpl); $controller->getToken(); break; case \SP\Controller\ActionsInterface::ACTION_MGM_APITOKENS_EDIT: $tpl->assign('header', _('Editar Autorización')); $tpl->assign('onCloseAction', \SP\Controller\ActionsInterface::ACTION_USR); $controller = new SP\Controller\UsersMgmtC($tpl); $controller->getToken(); break; case \SP\Controller\ActionsInterface::ACTION_MGM_CUSTOMFIELDS_NEW: $tpl->assign('header', _('Nuevo Campo')); $tpl->assign('onCloseAction', \SP\Controller\ActionsInterface::ACTION_MGM); $controller = new SP\Controller\AccountsMgmtC($tpl); $controller->getCustomField(); break; case \SP\Controller\ActionsInterface::ACTION_MGM_CUSTOMFIELDS_EDIT: $tpl->assign('header', _('Editar Campo')); $tpl->assign('onCloseAction', \SP\Controller\ActionsInterface::ACTION_MGM); $controller = new SP\Controller\AccountsMgmtC($tpl); $controller->getCustomField(); break; default:
$controller->getViewAccount(); break; case \SP\Controller\ActionsInterface::ACTION_ACC_VIEW_HISTORY: $controller = new SP\Controller\AccountC($tpl, null, $itemId); $controller->getViewHistoryAccount(); break; case \SP\Controller\ActionsInterface::ACTION_ACC_DELETE: $controller = new SP\Controller\AccountC($tpl, null, $itemId); $controller->getDeleteAccount(); break; case \SP\Controller\ActionsInterface::ACTION_ACC_REQUEST: $controller = new SP\Controller\AccountC($tpl, null, $itemId); $controller->getRequestAccountAccess(); break; case \SP\Controller\ActionsInterface::ACTION_USR: $controller = new SP\Controller\UsersMgmtC($tpl); $controller->useTabs(); $controller->getUsersList(); $controller->getGroupsList(); $controller->getProfilesList(); $controller->getAPITokensList(); break; case \SP\Controller\ActionsInterface::ACTION_MGM: $controller = new SP\Controller\AccountsMgmtC($tpl); $controller->useTabs(); $controller->getCategories(); $controller->getCustomers(); $controller->getCustomFields(); break; case \SP\Controller\ActionsInterface::ACTION_CFG: case \SP\Controller\ActionsInterface::ACTION_CFG_GENERAL:
* 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()) { SP\Util::logout(); } $userId = SP\Request::analyze('userId', false); if (!$userId) { return; } $tpl = new SP\Template(); $tpl->assign('userId', $userId); $controller = new SP\Controller\UsersMgmtC($tpl); $controller->getUserPass(); $tpl->addTemplate('js-common'); $controller->view();