* 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\Themes; define('APP_ROOT', '..'); require_once APP_ROOT . DIRECTORY_SEPARATOR . 'inc' . DIRECTORY_SEPARATOR . 'Base.php'; Request::checkReferer('POST'); if (!SP\Init::isLoggedIn()) { SP\Util::logout(); } SP\Util::checkReload(); if (!SP\Request::analyze('actionId', 0, true)) { die('<div class="error">' . _('Parámetros incorrectos') . '</DIV>'); } $actionId = SP\Request::analyze('actionId'); $itemId = SP\Request::analyze('itemId', 0); $lastAction = SP\Request::analyze('lastAction', \SP\Controller\ActionsInterface::ACTION_ACC_SEARCH); $tpl = new SP\Template(); $tpl->assign('actionId', $actionId); $tpl->assign('id', $itemId); $tpl->assign('activeTabId', $itemId); $tpl->assign('lastAccountId', \SP\Session::getLastAcountId()); $tpl->assign('queryTimeStart', microtime()); $tpl->assign('userId', SP\Session::getUserId());