getDocumentCategories(); $tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME'])); $view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user)); if ($view) { $view->setParam('categories', $categories); $view->setParam('form', $form); $view->setParam('selcats', $selcats); $view($_GET); exit; }