]>
git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - html/html/clwarn.cgi
2 ###############################################################################
4 # IPFire.org - A linux based firewall #
5 # Copyright (C) 2007 Michael Tremer & Christian Schmidt #
7 # This program is free software: you can redistribute it and/or modify #
8 # it under the terms of the GNU General Public License as published by #
9 # the Free Software Foundation, either version 3 of the License, or #
10 # (at your option) any later version. #
12 # This program is distributed in the hope that it will be useful, #
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
15 # GNU General Public License for more details. #
17 # You should have received a copy of the GNU General Public License #
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
20 ###############################################################################
24 # enable only the following on debugging purpose
26 use CGI
::Carp
'fatalsToBrowser';
28 $swroot="/var/ipfire";
29 &readhash
("$swroot/ethernet/settings", \
%netsettings);
31 my $TITLE_VIRUS = "SquidClamAv Virus detection";
33 my $url = param
('url') || '';
34 my $virus = param
('virus') || '';
35 my $source = param
('source') || '';
37 my $user = param
('user') || '';
41 $virus =~ s/stream: //;
44 print "Pragma: no-cache\n";
45 print "Cache-control: no-cache\n";
46 print "Connection: close\n";
47 print "Content-type: text/html\n\n";
53 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
54 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
55 <title>ACCESS MESSAGE</title>
59 <table width="100%" height='100%' border="0">
61 <td colspan='3' width='100%' height='130' align="center" background="http://$netsettings{'GREEN_ADDRESS'}:81/images/background.gif">
62 <tr> <td width='10%'><td align='center' bgcolor='#CC000000' width='80%'><font face="verdana, arial, sans serif" color="#FFFFFF" size="5">
72 <tr> <td colspan='3' align='center'>
73 <font face="verdana, arial, sans serif" color="#CC000000" size="1">
81 <td colspan='3' align="center">
82 <font face="verdana, arial, sans serif" color="#000000" size="4">
83 <b>Access to the requested page has been denied</b>
85 <font face="verdana,arial,sans serif" color="#000000" size="2">
92 <p>URL: <a href="$url">$url</a>
100 <p>Client IP address: <i>$source</i>
106 <br><p>Please contact the Network Administrator if you think there has been an error
110 <td colspan='3' height='60%' valign="bottom" align="right">
111 <font face="verdana,arial,sans serif" color="#656565" size="1">Web Filtering by
113 <a href="http://www.ipfire.org" target="_blank"><b>
114 <font face="verdana,arial,sans serif" color="#656565" size="1">IPFire</b></a>
126 my $filename = $_[0];
132 open(FILE
, $filename) or die "Unable to read file $filename";
136 ($var, $val) = split /=/, $_, 2;
142 # Untaint variables read from hash
143 $var =~ /([A-Za-z0-9_-]*)/; $var = $1;
144 $val =~ /([\w\W]*)/; $val = $1;
145 $hash->{$var} = $val;