Code

goFonQueueStrategy will be saved in correct format now
[gosa.git] / plugins / admin / systems / class_workstationGeneric.inc
index cf9c8b9d25ac26ee51719b540bf142aff3472b7e..1b8775eced24032bf4e6891375fead677ad28722 100644 (file)
@@ -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 {
@@ -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);