$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")); } if(!$settings->_enableFullSearch) { UI::exitError(getMLText("admin_tools"),getMLText("fulltextsearch_disabled")); } $index = null; if(!isset($_GET['action']) || $_GET['action'] == 'show') { if($fulltextservice) { if(isset($_GET['create']) && $_GET['create'] == 1) { if(isset($_GET['confirm']) && $_GET['confirm'] == 1) { $index = $fulltextservice->Indexer(true); if(!$index) { UI::exitError(getMLText("admin_tools"),getMLText("no_fulltextindex")); } } else { header('Location: out.CreateIndex.php'); exit; } } else { $index = $fulltextservice->Indexer(false); if(!$index) { $index = $fulltextservice->Indexer(true); if(!$index) { UI::exitError(getMLText("admin_tools"),getMLText("no_fulltextindex")); } } } } } if (!isset($_GET["folderid"]) || !is_numeric($_GET["folderid"]) || intval($_GET["folderid"])<1) { $folderid = $settings->_rootFolderID; } else { $folderid = intval($_GET["folderid"]); } $folder = $dms->getFolder($folderid); if($view) { $view->setParam('fulltextservice', $fulltextservice); $view->setParam('recreate', (isset($_GET['create']) && $_GET['create']==1)); $view->setParam('forceupdate', (isset($_GET['forceupdate']) && $_GET['forceupdate']==1)); $view->setParam('folder', $folder); $view->setParam('converters', $settings->_converters['fulltext']); $view->setParam('timeout', $settings->_cmdTimeout); $view->setParam('maxrequests', 1); // not yet used $view->setParam('accessobject', $accessop); $view($_GET); exit; }