$dms, 'user'=>$user)); $accessop = new SeedDMS_AccessOperation($dms, $user, $settings); if (!$accessop->check_view_access($view, $_GET)) { UI::exitError(getMLText("admin_tools"),getMLText("access_denied")); } /* Set an encryption key if is not set */ if(!trim($settings->_encryptionKey)) $settings->_encryptionKey = md5(uniqid()); $users = $dms->getAllUsers($settings->_sortUsersInList); $groups = $dms->getAllGroups(); if($view) { $view->setParam('settings', $settings); $view->setParam('currenttab', (isset($_REQUEST['currenttab']) ? $_REQUEST['currenttab'] : '')); $view->setParam('allusers', $users); $view->setParam('allgroups', $groups); $view->setParam('accessobject', $accessop); $view($_GET); exit; } ?>