$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 (!isset($_GET["logname"])) { UI::exitError(getMLText("admin_tools"),getMLText("unknown_id")); } if(isset($_GET["mode"])) $mode = $_GET["mode"]; else $mode = 'web'; /* $_GET["logname"] can be a single file name or an array of file names */ if(!is_array($_GET["logname"])) $lognames = array($_GET["logname"]); else $lognames = $_GET["logname"]; foreach($lognames as $file) { if(!file_exists($settings->_contentDir.$file)) { UI::exitError(getMLText("admin_tools"),getMLText("unknown_id")); } } if($view) { $view->setParam('lognames', $lognames); $view->setParam('mode', $mode); $view($_GET); exit; } ?>