From ceddb78c594529972acc6bd40c637cc2efdd172b Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 29 Sep 2006 06:31:53 +0000 Subject: [PATCH] Added acls for terminal service git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4830 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/systems/class_terminalService.inc | 31 ++++---- .../admin/systems/class_terminalStartup.inc | 4 +- plugins/admin/systems/terminalService.tpl | 72 ++++++++++++++----- 3 files changed, 75 insertions(+), 32 deletions(-) diff --git a/plugins/admin/systems/class_terminalService.inc b/plugins/admin/systems/class_terminalService.inc index cc4b868ca..d449f089b 100644 --- a/plugins/admin/systems/class_terminalService.inc +++ b/plugins/admin/systems/class_terminalService.inc @@ -256,6 +256,13 @@ class termservice extends plugin /* Show main page */ $smarty= get_smarty(); + /* Assign acls */ + $tmp= $this->plInfo(); + foreach($tmp['plProvidedAcls'] as $name => $translation){ + $smarty->assign($name."ACL",$this->getacl($name)); + } + + /* Arrays */ foreach(array("XMethods", "XDrivers", "XResolutions", "XColordepths", "gotoScannerModels", "XKbModels","XKbVariants", @@ -277,13 +284,11 @@ class termservice extends plugin "gotoXKbVariant", "gotoXMouseType", "gotoXMouseport") as $val){ $smarty->assign($val."_select", $this->$val); - $smarty->assign($val."ACL", chkacl($this->acl, $val)); } /* Variables */ foreach(array("gotoXHsync", "gotoXVsync") as $val){ $smarty->assign($val, $this->$val); - $smarty->assign($val."ACL", chkacl($this->acl, $val)); } $smarty->assign("staticAddress", ""); @@ -294,14 +299,12 @@ class termservice extends plugin } else { $smarty->assign("$val", ""); } - $smarty->assign($val."ACL", chkacl($this->acl, "gotoLpdEnable")); } /* Phone stuff */ $smarty->assign ("goFonHardware", $this->goFonHardware); $hl= " +{render acl=$gotoXKbModelACL} + +{/render} - {html_options options=$XKbLayouts selected=$gotoXKbLayout_select} +{/render} - {html_options options=$XKbVariants selected=$gotoXKbVariant_select} +{/render} @@ -41,17 +47,21 @@ - {html_options options=$MouseTypes selected=$gotoXMouseType_select} +{/render} - {html_options options=$MousePorts selected=$gotoXMouseport_select} +{/render} @@ -67,7 +77,9 @@
{t}Telephone{/t}  +{render acl=$goFonHardwareACL} {$hardware_list} +{/render}
@@ -85,25 +97,31 @@ - {html_options values=$XDrivers output=$XDrivers selected=$gotoXDriver_select} +{/render} - {html_options options=$XResolutions selected=$gotoXResolution_select} +{/render } - {html_options options=$XColordepths selected=$gotoXColordepth_select} +{/render} @@ -122,13 +140,19 @@ - +{render acl=$gotoXHsyncACL} + kHz +{/render} - +{render acl=$gotoXVsyncACL} + Hz +{/render} @@ -144,27 +168,33 @@ - {html_options options=$XMethods selected=$gotoXMethod_select} +{/render} - {html_options values=$xdmcpservers output=$xdmcpservers selected=$gotoXdmcpServer_select} +{/render} - {html_options values=$fontservers output=$fontservers selected=$gotoFontPath_select} +{/render} @@ -179,7 +209,9 @@

- +{render acl=$gotoLpdEnableACL} + +{/render} {t}Provide print services{/t}
@@ -188,9 +220,11 @@
- {html_options values=$nfsservers output=$nfsservers selected=$gotoLpdServer_select} +{/render} @@ -201,7 +235,9 @@

{t}Scan device{/t}

- +{render acl=$gotoScannerEnableACL} + +{/render} {t}Provide scan services{/t}
@@ -209,9 +245,11 @@
- {html_options values=$gotoScannerModels output=$gotoScannerModels selected=$gotoScannerModel_select} +{/render}
-- 2.30.2