Code

summary added
[gosa.git] / plugins / admin / systems / class_workstationGeneric.inc
index c1305e4f0b9678a1b1d1596a464ba12f27236976..1b8775eced24032bf4e6891375fead677ad28722 100644 (file)
@@ -28,7 +28,6 @@ class workgeneric extends plugin
   var $ghSoundAdapter= "-";
   var $gotoLastUser= "-";
 
-
   /* Needed values and lists */
   var $base= "";
   var $cn= "";
@@ -38,6 +37,7 @@ class workgeneric extends plugin
   var $modes= array();
 
   /* attribute list for save action */
+  var $ignore_account= TRUE;
   var $attributes= array("gotoMode", "gotoTerminalPath", "macAddress",
       "gotoSwapServer", "gotoSyslogServer", "gotoNtpServer",
       "gotoFloppyEnable", "gotoCdromEnable", "cn", "gotoSndModule",
@@ -93,7 +93,7 @@ class workgeneric extends plugin
     if (isset($_POST['action'])){
       switch($_POST['saction']){
         case 'wake':
-          $cmd= $this->search($this->config->data['TABS'], "terminfo", "WAKECMD");
+          $cmd= search_config($this->config->data['TABS'], "terminfo", "WAKECMD");
           if ($cmd == ""){
             print_red(_("No WAKECMD definition found in your gosa.conf"));
           } else {
@@ -105,7 +105,7 @@ class workgeneric extends plugin
           break;
 
         case 'reboot':
-          $cmd= $this->search($this->config->data['TABS'], "terminfo", "REBOOTCMD");
+          $cmd= search_config($this->config->data['TABS'], "terminfo", "REBOOTCMD");
           if ($cmd == ""){
             print_red(_("No REBOOTCMD definition found in your gosa.conf"));
           } else {
@@ -117,7 +117,7 @@ class workgeneric extends plugin
           break;
 
         case 'halt':
-          $cmd= $this->search($this->config->data['TABS'], "terminfo", "HALTCMD");
+          $cmd= search_config($this->config->data['TABS'], "terminfo", "HALTCMD");
           if ($cmd == ""){
             print_red(_("No HALTCMD definition found in your gosa.conf"));
           } else {
@@ -132,7 +132,7 @@ class workgeneric extends plugin
 
     /* Do we represent a valid terminal? */
     if (!$this->is_account && $this->parent == NULL){
-      $display= "<img src=\"images/stop.png\" align=center>&nbsp;<b>".
+      $display= "<img alt=\"\" src=\"images/stop.png\" align=middle>&nbsp;<b>".
         _("This 'dn' has no workstation features.")."</b>";
       return($display);
     }
@@ -141,7 +141,8 @@ class workgeneric extends plugin
     $smarty= get_smarty();
     $smarty->assign("cn", $this->cn);
     $smarty->assign("bases", $this->config->idepartments);
-
+    $smarty->assign("staticAddress", "");
+        
     /* Check if workstation is online */
     $query= "fping -q -r 1 -t 500 ".$this->cn;
     exec ($query, $dummy, $retval);