index 01d0e0d975ec81cdbe234f87c430cede26a4c17f..ff2c6666a0a05d516b6a0f74ade931a0fb6a98ae 100644 (file)
$this->config= $config;
}
+ function check()
+ {
+ }
+
function execute()
{
+ /* Call parent execute */
+ plugin::execute();
+
/* Watch for events */
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 {
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 {
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 {