Code

added lable tags
[gosa.git] / plugins / admin / ogroups / class_termgroup.inc
index 01d0e0d975ec81cdbe234f87c430cede26a4c17f..fe7b1611f3ce549b39fe487976b2dbfaf681ff1b 100644 (file)
@@ -36,6 +36,10 @@ class termgroup extends plugin
     $this->config= $config;
   }
 
+  function check()
+  {
+  }
+
   function execute()
   {
 
@@ -50,7 +54,7 @@ class termgroup extends plugin
 
       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 {
@@ -62,7 +66,7 @@ class termgroup 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 {
@@ -74,7 +78,7 @@ class termgroup 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 {