Code

postfix_mynetworks is Multi field, added seperator, to allow multiple ....
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 5 Jul 2005 10:36:48 +0000 (10:36 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 5 Jul 2005 10:36:48 +0000 (10:36 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@918 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servKolab.inc
plugins/admin/systems/servkolab.tpl

index 910ab152ec2ea47dd69d1d4944d4aa68b9156ff7..c88e17bb34aa8c4d8a7c24ecf77029736cfc26ed 100644 (file)
@@ -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();
 
index c16011ae1699b51906732566aec7ab73098b9d7b..b6f1a597e9f6d805ff195fcadf8de3e50433324d 100644 (file)
     </tr>
     <tr>
          <td>
-           {t}Hosts/networks allowed to relay{/t}&nbsp;
-        <input name="postfix_mynetworks" size="35" maxlength="120" value="{$postfix_mynetworks}" {$postfix_mynetworksACL} type="text">
+           {t}Hosts/networks allowed to relay{/t}<br>
+        <input name="postfix_mynetworks" size="60" maxlength="220" value="{$postfix_mynetworks}" {$postfix_mynetworksACL} type="text">
+               <br>
+               ( {t}Enter multiple values, seperated with{/t} ; )
        </td>
      </tr>
    </table>