예제 #1
0
        $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:
        exit;
        break;
}
$controller->view();
예제 #2
0
     $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:
 case \SP\Controller\ActionsInterface::ACTION_CFG_WIKI:
 case \SP\Controller\ActionsInterface::ACTION_CFG_LDAP:
 case \SP\Controller\ActionsInterface::ACTION_CFG_MAIL:
 case \SP\Controller\ActionsInterface::ACTION_CFG_ENCRYPTION:
 case \SP\Controller\ActionsInterface::ACTION_CFG_ENCRYPTION_TEMPPASS:
 case \SP\Controller\ActionsInterface::ACTION_CFG_BACKUP:
 case \SP\Controller\ActionsInterface::ACTION_CFG_EXPORT:
 case \SP\Controller\ActionsInterface::ACTION_CFG_IMPORT:
예제 #3
0
 * 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;
use SP\SessionUtil;
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 || !SessionUtil::checkSessionKey($sk)) {
    SP\Response::printXML(_('CONSULTA INVÁLIDA'));
}
$controller = new SP\Controller\AccountsMgmtC();
$controller->getFiles();
$controller->view();