steffen: server/kolab-webadmin/kolab-webadmin/www/admin/service index.php, 1.1, 1.2

cvs at intevation.de cvs at intevation.de
Thu May 27 15:24:37 CEST 2004


Author: steffen

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

Modified Files:
	index.php 
Log Message:
quota warn level configurable

Index: index.php
===================================================================
RCS file: /kolabrepository/server/kolab-webadmin/kolab-webadmin/www/admin/service/index.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- index.php	17 May 2004 15:24:27 -0000	1.1
+++ index.php	27 May 2004 13:24:35 -0000	1.2
@@ -37,6 +37,7 @@
   global $ftp;
   global $http;
   global $amavis;
+  global $quotawarn;
 
   // Get values from LDAP
   if (($result = ldap_read($ldap->connection, "k=kolab,".$_SESSION['base_dn'], '(objectclass=*)')) &&
@@ -50,6 +51,7 @@
 	$ftp = $attrs['proftpd-ftp'][0];
 	$http = $attrs['apache-http'][0];
 	$amavis = $attrs['postfix-enable-virus-scan'][0];
+	$quotawarn = $attrs['cyrus-quotawarn'][0];
 	ldap_free_result($result);
   }
 }
@@ -76,6 +78,14 @@
   }
 }
 
+if( $_REQUEST['submitquotawarn'] ) {
+  $attrs = array();
+  $attrs['cyrus-quotawarn'] = trim( $_REQUEST['quotawarn'] );
+  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);
+  }  
+}
+
 // Fill in output form
 extract_ldap_values();
 $entries = array( array( 'service' => 'pop3', 'name'  => 'POP3 Service', 'enabled' => toboolstr( $pop3 ) ),
@@ -94,6 +104,7 @@
 $smarty->assign( 'group', $auth->group() );
 $smarty->assign( 'page_title', $menuitems[$sidx]['title'] );
 $smarty->assign( 'entries', $entries );
+$smarty->assign( 'quotawarn', $quotawarn );
 $smarty->assign( 'menuitems', $menuitems );
 $smarty->assign( 'submenuitems', 
 				 array_key_exists('submenu', 





More information about the commits mailing list