steffen: server/kolab-webadmin/kolab-webadmin/www/admin/service index.php, 1.10, 1.11

cvs at intevation.de cvs at intevation.de
Thu Oct 21 22:29:48 CEST 2004


Author: steffen

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

Modified Files:
	index.php 
Log Message:
fix for issue484 (Cannot use all attributes of an external address)

Index: index.php
===================================================================
RCS file: /kolabrepository/server/kolab-webadmin/kolab-webadmin/www/admin/service/index.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- index.php	11 Sep 2004 02:45:59 -0000	1.10
+++ index.php	21 Oct 2004 20:29:46 -0000	1.11
@@ -38,6 +38,7 @@
   global $http;
   global $amavis;
   global $quotawarn;
+  global $freebusypast;
   global $postfixmynetworks;
   global $postfixallowunauth;
   global $postfixrelayhost;
@@ -57,6 +58,7 @@
 	$http = $attrs['apache-http'][0];
 	$amavis = $attrs['postfix-enable-virus-scan'][0];
 	$quotawarn = $attrs['cyrus-quotawarn'][0];
+	$freebusypast = $attrs['kolabFreeBusyPast'][0];
 	$postfixmynetworks = $attrs['postfix-mynetworks'][0];
 	$postfixallowunauth = $attrs['postfix-allow-unauthenticated'][0];
 	$postfixrelayhost = $attrs['postfix-relayhost'][0];
@@ -125,6 +127,15 @@
   }
 }
 
+if( $_REQUEST['submitfreebusypast'] ) {
+  $attrs = array();
+  $attrs['kolabFreeBusyPast'] = trim( $_REQUEST['freebusypast'] );
+  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['submitpostfixmynetworks'] ) {
   $attrs = array();
   $attrs['postfix-mynetworks'] = trim( $_REQUEST['postfixmynetworks'] );
@@ -211,6 +222,7 @@
 $smarty->assign( 'page_title', $menuitems[$sidx]['title'] );
 $smarty->assign( 'entries', $entries );
 $smarty->assign( 'quotawarn', $quotawarn );
+$smarty->assign( 'freebusypast', $freebusypast );
 $smarty->assign( 'postfixmynetworks', $postfixmynetworks );
 $smarty->assign( 'postfixallowunauth', toboolstr($postfixallowunauth) );
 $smarty->assign( 'postfixrelayhost', $postfixrelayhost );





More information about the commits mailing list