From df3d2bc548875b8c238d57d3fc9ac7e740bf0c89 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 13 May 2005 11:41:35 +0000 Subject: [PATCH] Services git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@202 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_servService.inc | 26 ++++++++++++--------- plugins/admin/systems/servservice.tpl | 2 +- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/plugins/admin/systems/class_servService.inc b/plugins/admin/systems/class_servService.inc index cd8788a56..26b6245ac 100644 --- a/plugins/admin/systems/class_servService.inc +++ b/plugins/admin/systems/class_servService.inc @@ -11,7 +11,7 @@ class servservice extends plugin var $goExportEntry = array(); var $goTimeSource = array(); var $goLdapBase= ""; - var $goXdmcPlsEnabled= ""; + var $goXdmcpIsEnabled =""; var $goFontPath= ""; var $goNTPServer=""; var $goLdapServer=""; @@ -28,9 +28,9 @@ class servservice extends plugin "goNfsServer" => array("goExportEntry"), "goNtpServer" => array("goTimeSource"), "goLdapServer" => array("goLdapBase"), - "goTerminalServer"=> array("goXdmcpIsEnabled", "goFontPath") -// "goSyslogServer" => array(""), -// "goCupsServer" => array("") + "goTerminalServer"=> array("goXdmcpIsEnabled", "goFontPath"), + "goSyslogServer" => array("goSyslogServer"), + "goCupsServer" => array("goCupsServer") ); @@ -63,6 +63,7 @@ class servservice extends plugin /* Fill templating stuff */ $smarty= get_smarty(); + /* Handling for Nfs Export Entries */ @@ -72,8 +73,6 @@ class servservice extends plugin { $this->attrs['goExportEntry'][]=$_POST['NewNfsExport']; } - - /* Deleting an Entry, is a bit more complicated than adding one*/ if(isset($_POST['DelNfsEnt'])) @@ -93,9 +92,11 @@ class servservice extends plugin } /* Set the entry which we want to show in the frontend */ - $this->goExportEntry = ($this->attrs['goExportEntry']); - unset($this->goExportEntry['count']); - + if(isset($this->attrs['goExportEntry'])) + { + $this->goExportEntry = ($this->attrs['goExportEntry']); + unset($this->goExportEntry['count']); + } /* @@ -126,8 +127,11 @@ class servservice extends plugin } /* Set the entry which we want to show in the frontend */ - $this->goTimeSource = ($this->attrs['goTimeSource']); - unset($this->goTimeSource['count']); + if(isset($this->attrs['goTimeSource'])) + { + $this->goTimeSource = ($this->attrs['goTimeSource']); + unset($this->goTimeSource['count']); + } diff --git a/plugins/admin/systems/servservice.tpl b/plugins/admin/systems/servservice.tpl index 61bf58be9..5ca3b2378 100644 --- a/plugins/admin/systems/servservice.tpl +++ b/plugins/admin/systems/servservice.tpl @@ -43,7 +43,7 @@ {t}NFS Exports{/t} - {html_options values=$goTimeSource output=$goTimeSource}
-- 2.30.2