diff --git a/plugins/admin/systems/class_terminalGeneric.inc b/plugins/admin/systems/class_terminalGeneric.inc
index e639e1636edd26b1e43af4aaeaaf694b8c976e2a..124f61bd17ece318ccd11bb176ebefac23568a52 100644 (file)
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 {
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 {
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 {
}
/* Arrays */
$smarty->assign("modes", $this->modes);
- $smarty->assign("nfsservers", $this->config->data['SERVERS']['NFS']);
+
+ $tmp2 = array();
+ foreach($this->config->data['SERVERS']['NFS'] as $server){
+ if($server != "default"){
+ $tmp = split("\|",$server);
+ $tmp3= split(":",$tmp[0]);
+
+ $servername = $tmp3[0];
+ $nfsname = $tmp3[1];
+
+ $path = $tmp[4];
+
+ $tmp2[$servername.":".$path]= $servername.":".$path;
+ }else{
+ $tmp2[$server]=$server;
+ }
+ }
+
+ $smarty->assign("nfsservers", $tmp2);
$smarty->assign("syslogservers", $this->config->data['SERVERS']['SYSLOG']);
$smarty->assign("ntpservers", $this->config->data['SERVERS']['NTP']);