$dms, 'user'=>$user)); $accessop = new SeedDMS_AccessOperation($dms, null, $user, $settings); if (!$user->isAdmin()) { UI::exitError(getMLText("admin_tools"),getMLText("access_denied")); } $type = 'docsperuser'; if(!empty($_GET['type'])) { $type = $_GET['type']; } if($data = $dms->getStatisticalData($type)) { switch($type) { case 'docsperstatus': foreach($data as &$rec) { $rec['key'] = getOverallStatusText((int) $rec['key']); } break; } } if($view) { $view->setParam('type', $type); $view->setParam('data', $data); $view->setParam('accessobject', $accessop); $view($_GET); exit; }