1 |
unnilennium |
1.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') { |