mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-12-24 10:31:34 +00:00
33 lines
1.3 KiB
PHP
33 lines
1.3 KiB
PHP
<?php
|
|
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.Authentication.php");
|
|
require_once("inc/inc.ClassUI.php");
|
|
|
|
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
|
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user));
|
|
$accessop = new SeedDMS_AccessOperation($dms, null, $user, $settings);
|
|
|
|
if($view) {
|
|
$view->setParam('fulltextservice', $fulltextservice);
|
|
$view->setParam('conversionmgr', $conversionmgr);
|
|
$view->setParam('showtree', showtree());
|
|
$view->setParam('settings', $settings);
|
|
$view->setParam('cachedir', $settings->_cacheDir);
|
|
$view->setParam('previewWidthList', $settings->_previewWidthList);
|
|
$view->setParam('previewConverters', isset($settings->_converters['preview']) ? $settings->_converters['preview'] : array());
|
|
$view->setParam('convertToPdf', $settings->_convertToPdf);
|
|
$view->setParam('timeout', $settings->_cmdTimeout);
|
|
$view->setParam('dayspastdashboard', (int) $settings->_daysPastDashboard);
|
|
$view->setParam('accessobject', $accessop);
|
|
$view->setParam('xsendfile', $settings->_enableXsendfile);
|
|
$view($_GET);
|
|
exit;
|
|
}
|