isGuest()) { UI::exitError(getMLText("my_documents"),getMLText("access_denied")); } // Check to see if the user wants to see only those documents that are still // in the review / approve stages. $showInProcess = false; if (isset($_GET["inProcess"]) && strlen($_GET["inProcess"])>0 && $_GET["inProcess"]!=0) { $showInProcess = true; } $orderby='n'; if (isset($_GET["orderby"]) && strlen($_GET["orderby"])==1 ) { $orderby=$_GET["orderby"]; } $tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME'])); $view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user, 'orderby'=>$orderby, 'showinprocess'=>$showInProcess, 'workflowmode'=>$settings->_workflowMode, 'cachedir'=>$settings->_cacheDir)); if($view) { $view->show(); exit; } ?>