]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - html/html/redirect.cgi
Fix dahdi firmware download.
[people/pmueller/ipfire-2.x.git] / html / html / redirect.cgi
index 0be18ed2b3f6585365eee256a56a9f09b819fdfb..93f1ea4a96aece6bdc9064120b614ab086f49ee6 100644 (file)
@@ -1,8 +1,23 @@
 #!/usr/bin/perl
-
-#
-# $Id: redirect.cgi,v 0.3 2006/07/18 00:00:00 modyfy bye linuxadmin
-#
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007  Michael Tremer & Christian Schmidt                      #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 use CGI qw(param);
 
@@ -44,52 +59,34 @@ print <<END
 <title>ACCESS MESSAGE</title>
 </head>
 
+<body>
+<table width="100%" height='100%' border="0">
+<tr>
+               <td colspan='3' width='100%' height='130' align="center" background="http://$netsettings{'GREEN_ADDRESS'}:81/images/background.gif">
+<tr>           <td width='10%'><td align='center' bgcolor='#CC000000' width='80%'><font face="verdana, arial, sans serif" color="#FFFFFF" size="5">
+                                       <b>$msgtext1</b>
+                                       </font>
+               <td width='10%'>
 END
 ;
 
-if (($filtersettings{'ENABLE_JPEG'} eq 'on') && (-e "/home/httpd/html/images/urlfilter/logo_ipfire.gif"))
+if (!($category eq ""))
 {
-print <<END
-<body background="http://$netsettings{'GREEN_ADDRESS'}:81//images/urlfilter/logo_ipfire.gif" bgcolor="#FFFFFF">
-END
-;
-} else {
-print <<END
-<img src="http://$netsettings{'GREEN_ADDRESS'}:81//images/logo_ipfire.gif" ALT="IPFire-Logo">
-<body bgcolor="#455B72">
+       print <<END
+       <tr>            <td colspan='3' align='center'>
+                               <font face="verdana, arial, sans serif" color="#CC000000" size="1">
+                                       <b>$category</b>
+                               </font>
 END
 ;
 }
-
 print <<END
-
-
-<center>
-
-<table width="80%" cellspacing="10" cellpadding="5" border="1">
-<tr>
-               <td nowrap align="right" background="http://$netsettings{'GREEN_ADDRESS'}:81//images/urlfilter/bgcool.gif">
-               <font face="verdana, arial, sans serif" color="#CC000000" size="1">
-               <b> INFO: $category</b>
-               </font>
-       </td>
-</tr>
 <tr>
-       <td bgcolor="#F4F4F4" align="center">
-               <table width="100%" cellspacing="20" cellpadding="18" border="1">
-                       <tr>
-                               <td nowrap align="center" background="http://$netsettings{'GREEN_ADDRESS'}:81//images/urlfilter/bgcool.gif">
-                                       <font face="verdana, arial, sans serif" color="#CC000000" size="5">
-                                       <b>$msgtext1</b>
-                                       </font>
-                               </td>
-                       </tr>
-                       <tr>
-                               <td bgcolor="#E2E2E2" align="center">
-                                       <font face="verdana, arial, sans serif" color="#000000" size="4">
-                                       <b>$msgtext2</b>
-                                       </font>
-                                       <font face="verdana,arial,sans serif" color="#000000" size="2">
+                       <td colspan='3' align="center">
+                               <font face="verdana, arial, sans serif" color="#000000" size="4">
+                               <b>$msgtext2</b>
+                               </font>
+                               <font face="verdana,arial,sans serif" color="#000000" size="2">
 END
 ;
 
@@ -112,29 +109,16 @@ END
 print <<END
                                        <br><p>$msgtext3
                                        </font>
-                               </td>
-                       </tr>
-       </td>
-</tr>
-</table>
 
 <tr>
-       <td nowrap align="right" background="http://$netsettings{'GREEN_ADDRESS'}:81//images/urlfilter/bgcool.gif">
+       <td colspan='3' height='60%' valign="bottom" align="right">
                <font face="verdana,arial,sans serif" color="#656565" size="1">Web Filtering by
                </font>
-               <a href="http://www.ipfire.eu" target="_blank"><b>
-               <font face="verdana,arial,sans serif" color="#656565" size="1">IPFire</b></a> and
-               <a href="http://www.squidguard.org" target="_blank"><b>
-               <font face="verdana,arial,sans serif" color="#656565" size="1">SquidGuard
-               </font></b></a>
-       </td>
-</tr>
+               <a href="http://www.ipfire.org" target="_blank"><b>
+               <font face="verdana,arial,sans serif" color="#656565" size="1">IPFire</b></a>
+               </font>
 
 </table>
-
-<img src="http://$netsettings{'GREEN_ADDRESS'}:81//images/urlfilter/bg_cool_tux.jpg">
-</center>
-
 </body>
 
 </html>