steffen: server/kolab-webadmin/kolab-webadmin/www/admin/service index.php, 1.4, 1.5

cvs at intevation.de cvs at intevation.de
Fri Aug 6 00:03:08 CEST 2004


Author: steffen

Update of /kolabrepository/server/kolab-webadmin/kolab-webadmin/www/admin/service
In directory doto:/tmp/cvs-serv27601/kolab-webadmin/www/admin/service

Modified Files:
	index.php 
Log Message:
mynetworks ediable

Index: index.php
===================================================================
RCS file: /kolabrepository/server/kolab-webadmin/kolab-webadmin/www/admin/service/index.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- index.php	18 Jul 2004 01:15:51 -0000	1.4
+++ index.php	5 Aug 2004 22:03:06 -0000	1.5
@@ -38,6 +38,7 @@
   global $http;
   global $amavis;
   global $quotawarn;
+  global $postfixmynetworks;
   global $kolabhost;
 
   // Get values from LDAP
@@ -53,6 +54,7 @@
 	$http = $attrs['apache-http'][0];
 	$amavis = $attrs['postfix-enable-virus-scan'][0];
 	$quotawarn = $attrs['cyrus-quotawarn'][0];
+	$postfixmynetworks = $attrs['postfix-mynetworks'][0];
 	$kolabhost = $attrs['kolabhost'];
 	unset( $kolabhost['count'] );
 	ldap_free_result($result);
@@ -91,6 +93,15 @@
   }
 }
 
+if( $_REQUEST['submitpostfixmynetworks'] ) {
+  $attrs = array();
+  $attrs['postfix-mynetworks'] = trim( $_REQUEST['postfixmynetworks'] );
+  if( !($result = ldap_modify($ldap->connection, "k=kolab,".$_SESSION['base_dn'], $attrs)) ) {
+	$errors[] = _("LDAP Error: failed to modify kolab configuration object: ")
+	  .ldap_error($ldap->connection);
+  }  
+}
+
 if( $_REQUEST['deletekolabhost'] ) {
   extract_ldap_values();
   $key = array_search($_REQUEST['akolabhost'],$kolabhost);
@@ -135,6 +146,7 @@
 $smarty->assign( 'page_title', $menuitems[$sidx]['title'] );
 $smarty->assign( 'entries', $entries );
 $smarty->assign( 'quotawarn', $quotawarn );
+$smarty->assign( 'postfixmynetworks', $postfixmynetworks );
 $smarty->assign( 'kolabhost', $kolabhost );
 $smarty->assign( 'menuitems', $menuitems );
 $smarty->assign( 'submenuitems', 





More information about the commits mailing list