* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License * @link https://www.seeddms.org Main Site */ if (!isset($settings)) { require_once "../inc/inc.Settings.php"); } require_once "inc/inc.Utils.php"; require_once "inc/inc.LogInit.php"; require_once "inc/inc.Language.php"; require_once "inc/inc.Init.php"; require_once "inc/inc.Extension.php"; require_once "inc/inc.DBInit.php"; require_once "inc/inc.ClassUI.php"; require_once "inc/inc.Authentication.php"; $tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME'])); $view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user)); $accessop = new SeedDMS_AccessOperation($dms, $user, $settings); if (!$accessop->check_view_access($view, $_GET)) { UI::exitError(getMLText("my_documents"),getMLText("access_denied")); } if ($user->isGuest()) { UI::exitError(getMLText("my_documents"), getMLText("access_denied")); } if ($view) { $view->setParam('showtree', showtree()); $view->setParam('cachedir', $settings->_cacheDir); $view->setParam('previewWidthList', $settings->_previewWidthList); $view->setParam('previewConverters', isset($settings->_converters['preview']) ? $settings->_converters['preview'] : array()); $view->setParam('timeout', $settings->_cmdTimeout); $view->setParam('accessobject', $accessop); $view->setParam('xsendfile', $settings->_enableXsendfile); $view->setParam('onepage', $settings->_onePageMode); // do most navigation by reloading areas of pages with ajax $view($_GET); exit; }