steffen: server/kolab/kolab/admin/service index.php,1.8,1.9

cvs at intevation.de cvs at intevation.de
Fri Apr 16 16:13:48 CEST 2004


Author: steffen

Update of /kolabrepository/server/kolab/kolab/admin/service
In directory doto:/tmp/cvs-serv25554/kolab/kolab/admin/service

Modified Files:
	index.php 
Log Message:
config updates, release bump, virus enable/disable option in webgui

Index: index.php
===================================================================
RCS file: /kolabrepository/server/kolab/kolab/admin/service/index.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- index.php	16 Apr 2004 10:17:28 -0000	1.8
+++ index.php	16 Apr 2004 14:13:46 -0000	1.9
@@ -1,4 +1,4 @@
-<?
+<?php
 /*
  (c) 2003 Tassilo Erlewein <tassilo.erlewein at erfrakon.de>
  (c) 2003 Martin Konold <martin.konold at erfrakon.de>
@@ -21,7 +21,7 @@
 <p>Further details with regards to security considerations are available on the 
 internet at the <a href="http://kolab.kde.org">Kolab</a> webserver.</p>
 </div>
-<?
+<?php
 
 function debug ($a) {
 //   print "debug: $a<br>\n";
@@ -75,10 +75,15 @@
    if (in_array($sieve, $allowed)) $attrs['cyrus-sieve'] = $sieve;
 }
 
+if( !empty($HTTP_GET_VARS['amavis']) ) {
+  $amavis = urldecode($HTTP_GET_VARS['amavis']);
+   if (in_array($amavis, $allowed)) $attrs['postfix-enable-virus-scan'] = $amavis;  
+}
+
 #array_push($errors, "http $http ftp $ftp imap $imap imaps $imaps pop3 $pop3 pop3s $pop3s sieve $sieve");
 
 if ( ( isset($http) || isset($ftp) || isset($imaps) || 
-       isset($pop3) || isset($pop3s) || isset($sieve) ) && 
+       isset($pop3) || isset($pop3s) || isset($sieve) || isset($amavis) ) && 
        !($result = ldap_modify($link, "k=kolab,".$_SESSION['base_dn'], $attrs)) )
      array_push($errors, "LDAP Error: failed to modify kolab configuration object ".ldap_error($link));
 
@@ -92,6 +97,7 @@
    $sieve = $attrs['cyrus-sieve'][0];
    $ftp = $attrs['proftpd-ftp'][0];
    $http = $attrs['apache-http'][0];
+   $amavis = $attrs['postfix-enable-virus-scan'][0];
    ldap_free_result($result);
 }
 ?>
@@ -137,6 +143,13 @@
 <? if ($http=="TRUE") 
    print("<span class=\"active\">active</span></td><td class=\"content\"><a href=\"index.php?http=FALSE\">disable http</a>");
    else print("<span class=\"inactive\">disabled</span></td><td class=\"content\"><a href=\"index.php?http=TRUE\">activate http</a>"); 
+?>
+</td></tr>
+
+<tr><td class="content"> Amavis Virus Scanning </td><td class="content">
+<? if ($amavis=="TRUE") 
+   print("<span class=\"active\">active</span></td><td class=\"content\"><a href=\"index.php?amavis=FALSE\">disable amavis</a>");
+   else print("<span class=\"inactive\">disabled</span></td><td class=\"content\"><a href=\"index.php?amavis=TRUE\">activate amavis</a>"); 
 ?>
 </td></tr>
 





More information about the commits mailing list