Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > b7e206913df11537a640e2a6abef388c > files > 8

squidclamav-3.9-2mdv2010.0.i586.rpm

#!/usr/bin/perl
use strict;

use CGI;

my $VERSION = '3.9';
my $TITLE_VIRUS = "SquidClamAv $VERSION : Virus detection";

my $cgi = new CGI;

my $url = $cgi->param('url') || '';
my $virus = $cgi->param('virus') || '';
my $source = $cgi->param('source') || '';
$source =~ s/\/-//;
my $user = $cgi->param('user') || '';


# Remove clamd infos
$virus =~ s/stream: //;
$virus =~ s/ FOUND//;


print $cgi->header();

print $cgi->start_html(-title => $TITLE_VIRUS);
print qq{
<h2 style="color: #FF0000">$TITLE_VIRUS</h2>
<hr>
<p>
};
print qq{
The requested URL $url <br>
contains the virus : $virus
};

print qq{
<p>
This URL can not be dowloaded.
<p>
Origin: $source / $user
<p>
<hr>
Powered by <a href="http://sourceforge.net/projects/squidclamav/">SquidClamAv $VERSION</a>.
};

print $cgi->end_html();

exit 0;