steffen: server/kolab-webadmin/kolab-webadmin/www/admin/service index.php, 1.12, 1.13
cvs at intevation.de
cvs at intevation.de
Wed Dec 15 01:07:27 CET 2004
Author: steffen
Update of /kolabrepository/server/kolab-webadmin/kolab-webadmin/www/admin/service
In directory doto:/tmp/cvs-serv16994/kolab-webadmin/www/admin/service
Modified Files:
index.php
Log Message:
New feature (Issue579): Option to allow unauthorized fb download
Index: index.php
===================================================================
RCS file: /kolabrepository/server/kolab-webadmin/kolab-webadmin/www/admin/service/index.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- index.php 3 Dec 2004 00:02:12 -0000 1.12
+++ index.php 15 Dec 2004 00:07:25 -0000 1.13
@@ -36,6 +36,7 @@
global $sieve;
global $ftp;
global $http;
+ global $httpallowunauthfb;
global $amavis;
global $quotawarn;
global $freebusypast;
@@ -56,6 +57,7 @@
$sieve = $attrs['cyrus-sieve'][0];
$ftp = $attrs['proftpd-ftp'][0];
$http = $attrs['apache-http'][0];
+ $httpallowunauthfb = $attrs['apache-allow-unauthenticated-fb'][0];
$amavis = $attrs['postfix-enable-virus-scan'][0];
$quotawarn = $attrs['cyrus-quotawarn'][0];
$freebusypast = $attrs['kolabFreeBusyPast'][0];
@@ -127,6 +129,15 @@
}
}
+if( $_REQUEST['submithttpallowunauthfb'] ) {
+ $attrs = array();
+ $attrs['apache-allow-unauthenticated-fb'] = postvalue( 'httpallowunauthfb' );
+ 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['submitfreebusypast'] ) {
$attrs = array();
$attrs['kolabFreeBusyPast'] = trim( $_REQUEST['freebusypast'] );
@@ -222,6 +233,7 @@
$smarty->assign( 'page_title', $menuitems[$sidx]['title'] );
$smarty->assign( 'entries', $entries );
$smarty->assign( 'quotawarn', $quotawarn );
+$smarty->assign( 'httpallowunauthfb', toboolstr($httpallowunauthfb) );
$smarty->assign( 'freebusypast', $freebusypast );
$smarty->assign( 'postfixmynetworks', $postfixmynetworks );
$smarty->assign( 'postfixallowunauth', toboolstr($postfixallowunauth) );
More information about the commits
mailing list