X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fadmin%2Fsystems%2Fclass_terminalGeneric.inc;h=86aa8966e1f5b0aee580440b29a899694c0d97c0;hb=6a798c99f3cd57b6e98610975ac80dcd7e094a90;hp=f95685e7ece1f1804c5ab224b1100556c7d06dc1;hpb=91002093104478981171b9a58ded2248bd296b08;p=gosa.git diff --git a/plugins/admin/systems/class_terminalGeneric.inc b/plugins/admin/systems/class_terminalGeneric.inc index f95685e7e..86aa8966e 100644 --- a/plugins/admin/systems/class_terminalGeneric.inc +++ b/plugins/admin/systems/class_terminalGeneric.inc @@ -76,6 +76,9 @@ class termgeneric extends plugin function execute() { + /* Call parent execute */ + plugin::execute(); + /* Do we need to flip is_account state? */ if (isset($_POST['modify_state'])){ $this->is_account= !$this->is_account; @@ -147,7 +150,28 @@ 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 =""; + if(isset($tmp[4])){ + $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']);