isAdmin()) { UI::exitError(getMLText("admin_tools"),getMLText("access_denied")); } if(isset($_GET['workflowactionid']) && $_GET['workflowactionid']) { $selworkflowaction = $dms->getWorkflowAction($_GET['workflowactionid']); } else { $selworkflowaction = null; } $workflowactions = $dms->getAllWorkflowActions(); if (is_bool($workflowactions)) { UI::exitError(getMLText("admin_tools"),getMLText("internal_error")); } $tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME'])); $view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user)); if($view) { $view->setParam('allworkflowactions', $workflowactions); $view->setParam('selworkflowaction', $selworkflowaction); $view($_GET); exit; } ?>