getWorkflow($_GET['workflow']); if (is_bool($workflow)) { UI::exitError(getMLText("admin_tools"),getMLText("internal_error")); } if(isset($_GET['documentid']) && $_GET['documentid']) { $document = $dms->getDocument($_GET['documentid']); if (is_bool($document)) { UI::exitError(getMLText("admin_tools"),getMLText("internal_error")); } } else { $document = null; } if(isset($_GET['transition']) && $_GET['transition']) { $transition = $dms->getWorkflowTransition($_GET['transition']); if (is_bool($transition)) { UI::exitError(getMLText("admin_tools"),getMLText("internal_error")); } } else { $transition = null; } $tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME'])); $view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user, 'workflow'=>$workflow, 'transition'=>$transition, 'document'=>$document)); if($view) { $view->show(); exit; } ?>