Code

Services
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 13 May 2005 11:41:35 +0000 (11:41 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 13 May 2005 11:41:35 +0000 (11:41 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@202 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servService.inc
plugins/admin/systems/servservice.tpl

index cd8788a566b224f6cbe135007099350934f57104..26b6245ac06d6ff78e3d8ccf2c92053cf8b9b83f 100644 (file)
@@ -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']);
+      }
 
 
 
index 61bf58be91a65ec5fe2c9090592d2613e5fd9600..5ca3b2378fa636df11575c8b8276a7a29125eef8 100644 (file)
@@ -43,7 +43,7 @@
     <tr>
      <td>{t}NFS Exports{/t}</td>
      <td>
-        <select style="width:350px;" id="goTimeEntry" name="goTimeSource" {$goNTPServerState} size=4 multiple {$trustmodeACL} {$trusthide}>
+        <select style="width:350px;" id="goTimeEntry" name="goTimeSource" {$goNtpServerState} size=4 multiple {$trustmodeACL} {$trusthide}>
             {html_options values=$goTimeSource output=$goTimeSource}
         </select>
     <br>