seeddms-code/out/out.Dashboard.php

33 lines
1.3 KiB
PHP
Raw Normal View History

2023-04-06 06:02:21 +00:00
<?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());
2023-04-21 17:05:54 +00:00
$view->setParam('convertToPdf', $settings->_convertToPdf);
2023-04-06 06:02:21 +00:00
$view->setParam('timeout', $settings->_cmdTimeout);
$view->setParam('dayspastdashboard', (int) $settings->_daysPastDashboard);
2023-04-06 06:02:21 +00:00
$view->setParam('accessobject', $accessop);
$view->setParam('xsendfile', $settings->_enableXsendfile);
$view($_GET);
exit;
}