/[smecontribs]/rpms/smeserver-unjunkmgr/contribs8/smeserver-unjunkmgr-2.1-patch1.patch
ViewVC logotype

Contents of /rpms/smeserver-unjunkmgr/contribs8/smeserver-unjunkmgr-2.1-patch1.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Thu Jun 27 15:37:22 2013 UTC (11 years, 4 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-unjunkmgr-2_1-2_el5_sme, smeserver-unjunkmgr-2_1-3_el5_sme, HEAD
Error occurred while calculating annotation data.
* Thu Jun 27 2013 JP Pialasse <tests@pialasse.com> 2.1-2.sme
- fix some php deprecated and PHP warning
- patch1

1 diff -up smeserver-unjunkmgr-2.1/root/usr/local/unjunkmgr/index.php.patch1 smeserver-unjunkmgr-2.1/root/usr/local/unjunkmgr/index.php
2 --- smeserver-unjunkmgr-2.1/root/usr/local/unjunkmgr/index.php.patch1 2009-06-04 03:55:57.000000000 -0400
3 +++ smeserver-unjunkmgr-2.1/root/usr/local/unjunkmgr/index.php 2013-06-27 11:34:42.000000000 -0400
4 @@ -98,11 +98,13 @@ function read_and_print_virus_log ($log_
5 if ($line) {
6
7 # printf("line = %s\n",$line);
8 - $keys = split ("\|", $line) ;
9 -
10 + #$keys = split ("\|", $line) ;
11 + $keys = preg_split ("/\|/", $line) ;
12 +
13 $list = array();
14 foreach ($keys as $item) {
15 - $key = split ("\=", $item);
16 + #$key = split ("\=", $item);
17 + $key = preg_split ("/\=/", $item);
18
19 # printf("key = %s\n",$key);
20 if ($key[0] == 'SCANNED') {
21 @@ -159,7 +161,7 @@ function read_and_print_virus_log ($log_
22 printf("Infected with Virus");
23 print('</td>');
24 print('<td align="right"><H3 style="word-spacing: 0; margin-top: 0; margin-bottom: 2; margin-left: 2">');
25 - printf("%s (%.2f %%)",number_format($bad,0,2,'.'), number_format(($bad/$scanned)*100,2,'.',''));
26 + if ($scanned>0) printf("%s (%.2f %%)",number_format($bad,0,2,'.'), number_format(($bad/$scanned)*100,2,'.',''));
27 print('</td>');
28 print('</tr>');
29 }
30 @@ -227,11 +229,13 @@ function read_and_print_spam_log ($log_f
31 if ($line) {
32
33 # printf("line = %s\n",$line);
34 - $keys = split ("\|", $line) ;
35 -
36 + #$keys = split ("\|", $line) ;
37 + $keys = preg_split ("/\|/", $line) ;
38 +
39 $list = array();
40 foreach ($keys as $item) {
41 - $key = split ("\=", $item);
42 + #$key = split ("\=", $item);
43 + $key = preg_split ("/\=/", $item);
44
45 # printf("key = %s\n",$key);
46 if ($key[0] == 'SCANNED') {

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed