From 30613f939cbbfa49d6c8ff408758401313b7fc2b Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 5 Jul 2005 10:36:48 +0000 Subject: [PATCH] postfix_mynetworks is Multi field, added seperator, to allow multiple .... git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@918 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_servKolab.inc | 21 +++++++++++++++++++++ plugins/admin/systems/servkolab.tpl | 6 ++++-- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/plugins/admin/systems/class_servKolab.inc b/plugins/admin/systems/class_servKolab.inc index 910ab152e..c88e17bb3 100644 --- a/plugins/admin/systems/class_servKolab.inc +++ b/plugins/admin/systems/class_servKolab.inc @@ -65,6 +65,15 @@ class servkolab extends plugin { } else { $this->is_account=false; } + + if(is_array($this->attrs['postfix-mynetworks'])){ + unset($this->attrs['postfix-mynetworks']['count']); + $tmp=""; + foreach($this->attrs['postfix-mynetworks'] as $tm){ + $tmp.=$tm.";"; + } + $this->postfix_mynetworks = $tmp; + } } @@ -239,6 +248,18 @@ class servkolab extends plugin { $this->kolabHost[]= $this->cn; } + + $tmp = split(";",$this->postfix_mynetworks); + $this->postfix_mynetworks = array(); + foreach($tmp as $tm){ + trim($tm); + if(!empty($tm)){ + $this->postfix_mynetworks[]=$tm; + } + } + + $this->attrs['postfix_mynetworks']=$this->postfix_mynetworks; + /* Call parents save to prepare $this->attrs */ plugin::save(); diff --git a/plugins/admin/systems/servkolab.tpl b/plugins/admin/systems/servkolab.tpl index c16011ae1..b6f1a597e 100644 --- a/plugins/admin/systems/servkolab.tpl +++ b/plugins/admin/systems/servkolab.tpl @@ -119,8 +119,10 @@ - {t}Hosts/networks allowed to relay{/t}  - + {t}Hosts/networks allowed to relay{/t}
+ +
+ ( {t}Enter multiple values, seperated with{/t} ; ) -- 2.30.2