X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fadmin%2Fsystems%2Fclass_terminalGeneric.inc;h=f95685e7ece1f1804c5ab224b1100556c7d06dc1;hb=0eeb438528e816232aac90579be963b2218087c7;hp=5d2b4395e282f44d89e300ea4ec3da989cba4385;hpb=39d0a234a02b9678799b80ea97ee53e8d4bfc6ff;p=gosa.git diff --git a/plugins/admin/systems/class_terminalGeneric.inc b/plugins/admin/systems/class_terminalGeneric.inc index 5d2b4395e..f95685e7e 100644 --- a/plugins/admin/systems/class_terminalGeneric.inc +++ b/plugins/admin/systems/class_terminalGeneric.inc @@ -37,6 +37,7 @@ class termgeneric 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", @@ -83,7 +84,7 @@ class termgeneric extends plugin if (isset($_POST['action'])){ switch($_POST['saction']){ case 'wake': - $cmd= $this->search($this->config->data['TABS'], "termgeneric", "WAKECMD"); + $cmd= search_config($this->config->data['TABS'], "termgeneric", "WAKECMD"); if ($cmd == ""){ print_red(_("No WAKECMD definition found in your gosa.conf")); } else { @@ -95,7 +96,7 @@ class termgeneric extends plugin break; case 'reboot': - $cmd= $this->search($this->config->data['TABS'], "termgeneric", "REBOOTCMD"); + $cmd= search_config($this->config->data['TABS'], "termgeneric", "REBOOTCMD"); if ($cmd == ""){ print_red(_("No REBOOTCMD definition found in your gosa.conf")); } else { @@ -107,7 +108,7 @@ class termgeneric extends plugin break; case 'halt': - $cmd= $this->search($this->config->data['TABS'], "termgeneric", "HALTCMD"); + $cmd= search_config($this->config->data['TABS'], "termgeneric", "HALTCMD"); if ($cmd == ""){ print_red(_("No HALTCMD definition found in your gosa.conf")); } else { @@ -122,7 +123,7 @@ class termgeneric extends plugin /* Do we represent a valid terminal? */ if (!$this->is_account && $this->parent == NULL){ - $display= " ". + $display= "\"\" ". _("This 'dn' has no terminal features.").""; return($display); } @@ -130,6 +131,7 @@ class termgeneric extends plugin /* Fill templating stuff */ $smarty= get_smarty(); $smarty->assign("cn", $this->cn); + $smarty->assign("staticAddress", ""); $smarty->assign("bases", $this->config->idepartments);