_rootFolderID; } else { $nodeid = intval($_GET["node"]); } $node = $dms->getFolder($nodeid); if (!is_object($node)) { UI::exitError(getMLText("folder_title", array("foldername" => getMLText("invalid_folder_id"))), getMLText("invalid_folder_id")); } } else { $folderid = intval($_GET["folderid"]); $folder = $dms->getFolder($folderid); $form = preg_replace('/[^A-Za-z0-9_]+/', '', $_GET["form"]); } $tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME'])); $view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user)); if($view) { $view->setParam('orderby', $settings->_sortFoldersDefault); if(isset($_GET['action']) && $_GET['action'] == 'subtree') { $view->setParam('node', $node); } else { $view->setParam('folder', $folder); $view->setParam('form', $form); } $view($_GET); exit; }