diff --git a/out/out.ConversionServices.php b/out/out.ConversionServices.php new file mode 100644 index 000000000..53af0f5d5 --- /dev/null +++ b/out/out.ConversionServices.php @@ -0,0 +1,47 @@ +$dms, 'user'=>$user)); +$accessop = new SeedDMS_AccessOperation($dms, null, $user, $settings); +if (!$settings->_enableDebugMode) { + UI::exitError(getMLText("admin_tools"),getMLText("access_denied")); +} +if (!$accessop->check_view_access($view, $_GET)) { + UI::exitError(getMLText("admin_tools"),getMLText("access_denied")); +} + +if($view) { + $view->setParam('settings', $settings); + $view->setParam('accessobject', $accessop); + $view->setParam('conversionmgr', $conversionmgr); + $view($_GET); + exit; +} + diff --git a/out/out.NotificationServices.php b/out/out.NotificationServices.php index f985d37ed..0bfdd317a 100644 --- a/out/out.NotificationServices.php +++ b/out/out.NotificationServices.php @@ -29,7 +29,7 @@ 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); +$accessop = new SeedDMS_AccessOperation($dms, null, $user, $settings); if (!$settings->_enableDebugMode) { UI::exitError(getMLText("admin_tools"),getMLText("access_denied")); } diff --git a/views/bootstrap/class.ConversionServices.php b/views/bootstrap/class.ConversionServices.php new file mode 100644 index 000000000..6f9635ed1 --- /dev/null +++ b/views/bootstrap/class.ConversionServices.php @@ -0,0 +1,68 @@ + + * @copyright Copyright (C) 2010-2023 Uwe Steinmann + * @version Release: @package_version@ + */ + +/** + * Class which outputs the html page for Conversion Services view + * + * @category DMS + * @package SeedDMS + * @author Uwe Steinmann + * @copyright Copyright (C) 2016 Uwe Steinmann + * @version Release: @package_version@ + */ +class SeedDMS_View_ConversionServices extends SeedDMS_Theme_Style { + + /** + * List all registered conversion services + * + */ + function list_conversion_services($conversionmgr) { /* {{{ */ + if(!$conversionmgr) + return; + + $allservices = $conversionmgr->getServices(); + + echo "\n"; + echo ""; + echo "\n"; + echo ""; + echo ""; + foreach($allservices as $from=>$tos) { + foreach($tos as $to=>$services) { + foreach($services as $service) { + echo ""; + } + } + } + echo ""; + echo "
".getMLText('service_list_from')."".getMLText('service_list_to')."".getMLText('class_name')."".getMLText('service_list_info')."
".$from."".$to."".get_class($service)."".$service->getInfo()."
\n"; + } /* }}} */ + + function show() { /* {{{ */ + $dms = $this->params['dms']; + $user = $this->params['user']; + $conversionmgr = $this->params['conversionmgr']; + + $this->htmlStartPage(getMLText("admin_tools")); + $this->globalNavigation(); + $this->contentStart(); + $this->pageNavigation(getMLText("admin_tools"), "admin_tools"); + $this->contentHeading(getMLText("list_conversion_services")); + + self::list_conversion_services($conversionmgr); + + $this->contentEnd(); + $this->htmlEndPage(); + } /* }}} */ +} +