Hi all,

I allready upgraded to QmailScanner 1.20RC3 but the Qmail Scanners Stats got
completely screwed up with that move.
The QSS php code was quite simple (but horrible ugly and undocumented....)
so I adjusted it to work with RC3. This works for me so far (using f-prot),
I haven't got any other logging to test with.
So for anyone who likes the graphs; a diff is included below.

Arno


[EMAIL PROTECTED] qss]# diff -b index.php index.php.bak
104a105,106
>
>
107c109,110
<       $domain = explode("@",$val[4]);
---
>       $domain = explode("@",$val[1]);
>
112,115c115,117
<         if (strncmp("Clear",$val[1],5) <> 0) {
<                 $virname=explode(":",$val[1]);
<               $data[] = $date."\t".$domain[1]."\t".$virname[1];
<         }
---
>       $data[] = $date."\t".$domain[1]."\t".$val[4];
>
>
132,133c134
< $totalCount = count($logFile);
< $virusCount = count($data);
---
> $virusCount = count($logFile);
403,411c404
<                   <font face="Verdana, Arial, Helvetica, sans-serif"
size="1">Qmail-Scanner stopped
<                   <?PHP
<                     print($virusCount);
<                     if ($virusCount >= 1)
<                         echo " virus since ";
<                     else
<                         echo " viruses since ";
<                     echo $virusDate." in ".$totalCount." messages";
<                   ?>.</font></td>
---
>                   <font face="Verdana, Arial, Helvetica, sans-serif"
size="1">Qmail-Scanner stopped <?PHP print($virus
Count); ?> viruses since <?PHP print($virusDate); ?>.</font></td>
791c784
<             2.0.2-AS-RC3</a> - Stats generated in
---
>             2.0.2</a> - Stats generated in



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to