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