From 011c6b98b0a7e02093f36ebadfda8d5ae424ca97 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 29 Aug 2005 07:57:10 +0000 Subject: [PATCH] Fixed Terminal 'root server' 'swap server' selectbox git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1240 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/systems/class_terminalGeneric.inc | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/plugins/admin/systems/class_terminalGeneric.inc b/plugins/admin/systems/class_terminalGeneric.inc index f95685e7e..124f61bd1 100644 --- a/plugins/admin/systems/class_terminalGeneric.inc +++ b/plugins/admin/systems/class_terminalGeneric.inc @@ -147,7 +147,25 @@ class termgeneric extends plugin } /* 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']); -- 2.30.2