]> git.ipfire.org Git - ipfire.org.git/commitdiff
Build some nice error pages.
authorms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Sun, 28 Oct 2007 21:29:36 +0000 (21:29 +0000)
committerms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Sun, 28 Oct 2007 21:29:36 +0000 (21:29 +0000)
git-svn-id: http://svn.ipfire.org/svn/ipfire/branches/www.ipfire.org/trunk@1025 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

de/403.shtml [new file with mode: 0644]
de/404.shtml [new file with mode: 0644]
de/500.shtml [new file with mode: 0644]
en/403.shtml [new file with mode: 0644]
en/404.shtml [new file with mode: 0644]
en/500.shtml [new file with mode: 0644]
header.shtml
index.pl

diff --git a/de/403.shtml b/de/403.shtml
new file mode 100644 (file)
index 0000000..7a2d49c
--- /dev/null
@@ -0,0 +1,35 @@
+<!--#include virtual="../header.shtml" -->
+
+<div id="main">
+
+       <div id="main_inner" class="fixed">
+
+               <div id="primaryContent_columnless">
+
+                       <div id="columnA_columnless">
+               
+                               <h3>403 - Der Zugang zu dieser Webseite ist nicht gestattet</h3>
+
+                               <!-- insert image here -->
+
+                               <p>
+                                       Sie haben nicht die erforderliche Berechtigung um diesen Teil
+                                       der Webseite zu besuchen.
+                                       <br />
+                                       <a href="http://<!--#echo var="SERVER_NAME" -->/">Startseite</a>
+                                       <a href="javascript:history.go(-1)">Zurück</a>
+                               </p>
+                               
+                               <br class="clear" />
+               
+                       </div>
+       
+               </div>
+
+               <br class="clear" />
+
+       </div>
+
+</div>
+
+<!--#include virtual="../footer.shtml" -->
diff --git a/de/404.shtml b/de/404.shtml
new file mode 100644 (file)
index 0000000..eacb562
--- /dev/null
@@ -0,0 +1,35 @@
+<!--#include virtual="../header.shtml" -->
+
+<div id="main">
+
+       <div id="main_inner" class="fixed">
+
+               <div id="primaryContent_columnless">
+
+                       <div id="columnA_columnless">
+               
+                               <h3>404 - Die angeforderte Webseite wurde nicht gefunden</h3>
+
+                               <!-- insert image here -->
+
+                               <p>
+                                       Die Webseite, die aufgerufen wurde, ist auf dem Server leider
+                                       nicht vorhanden.
+                                       <br />
+                                       <a href="http://<!--#echo var="SERVER_NAME" -->/">Startseite</a>
+                                       <a href="javascript:history.go(-1)">Zurück</a>
+                               </p>
+                               
+                               <br class="clear" />
+               
+                       </div>
+       
+               </div>
+
+               <br class="clear" />
+
+       </div>
+
+</div>
+
+<!--#include virtual="../footer.shtml" -->
diff --git a/de/500.shtml b/de/500.shtml
new file mode 100644 (file)
index 0000000..3f3ca42
--- /dev/null
@@ -0,0 +1,37 @@
+<!--#include virtual="../header.shtml" -->
+
+<div id="main">
+
+       <div id="main_inner" class="fixed">
+
+               <div id="primaryContent_columnless">
+
+                       <div id="columnA_columnless">
+               
+                               <h3>500 - Interner Serverfehler</h3>
+
+                               <!-- insert image here -->
+
+                               <p>
+                                       Beim Aufruf der Webseite ist auf dem Server ein interner Fehler
+                                       aufgetreten.<br />
+                                       Sollte sich dieser Umstand wiederholen, informieren Sie bitte die
+                                       Betreiber der Webseite.
+                                       <br />
+                                       <a href="http://<!--#echo var="SERVER_NAME" -->/">Startseite</a>
+                                       <a href="javascript:history.go(-1)">Zurück</a>
+                               </p>
+                               
+                               <br class="clear" />
+               
+                       </div>
+       
+               </div>
+
+               <br class="clear" />
+
+       </div>
+
+</div>
+
+<!--#include virtual="../footer.shtml" -->
diff --git a/en/403.shtml b/en/403.shtml
new file mode 100644 (file)
index 0000000..0d88801
--- /dev/null
@@ -0,0 +1,34 @@
+<!--#include virtual="../header.shtml" -->
+
+<div id="main">
+
+       <div id="main_inner" class="fixed">
+
+               <div id="primaryContent_columnless">
+
+                       <div id="columnA_columnless">
+               
+                               <h3>403 - Access to this site is denied</h3>
+
+                               <!-- insert image here -->
+
+                               <p>
+                                       You don't have the permission to visit this site.
+                                       <br />
+                                       <a href="http://<!--#echo var="SERVER_NAME" -->/">Home</a>
+                                       <a href="javascript:history.go(-1)">Back</a>
+                               </p>
+                               
+                               <br class="clear" />
+               
+                       </div>
+       
+               </div>
+
+               <br class="clear" />
+
+       </div>
+
+</div>
+
+<!--#include virtual="../footer.shtml" -->
diff --git a/en/404.shtml b/en/404.shtml
new file mode 100644 (file)
index 0000000..9bba4e7
--- /dev/null
@@ -0,0 +1,34 @@
+<!--#include virtual="../header.shtml" -->
+
+<div id="main">
+
+       <div id="main_inner" class="fixed">
+
+               <div id="primaryContent_columnless">
+
+                       <div id="columnA_columnless">
+               
+                               <h3>404 - Document not found</h3>
+
+                               <!-- insert image here -->
+
+                               <p>
+                                       The requested document was not found on the webserver.
+                                       <br />
+                                       <a href="http://<!--#echo var="SERVER_NAME" -->/">Home</a>
+                                       <a href="javascript:history.go(-1)">Back</a>
+                               </p>
+                               
+                               <br class="clear" />
+               
+                       </div>
+       
+               </div>
+
+               <br class="clear" />
+
+       </div>
+
+</div>
+
+<!--#include virtual="../footer.shtml" -->
diff --git a/en/500.shtml b/en/500.shtml
new file mode 100644 (file)
index 0000000..a65d125
--- /dev/null
@@ -0,0 +1,36 @@
+<!--#include virtual="../header.shtml" -->
+
+<div id="main">
+
+       <div id="main_inner" class="fixed">
+
+               <div id="primaryContent_columnless">
+
+                       <div id="columnA_columnless">
+               
+                               <h3>500 - internal server error</h3>
+
+                               <!-- insert image here -->
+
+                               <p>
+                                       When you requested this website the server produced an internal
+                                       error.<br />
+                                       If this happens one more time, please send a mail to the developers.
+                                       <br />
+                                       <a href="http://<!--#echo var="SERVER_NAME" -->/">Home</a>
+                                       <a href="javascript:history.go(-1)">Back</a>
+                               </p>
+                               
+                               <br class="clear" />
+               
+                       </div>
+       
+               </div>
+
+               <br class="clear" />
+
+       </div>
+
+</div>
+
+<!--#include virtual="../footer.shtml" -->
index 9a1892fff93f13334367d92d89e2ee86b1350e09..1eddcc232e4556579ec2d9f88bdd47b4071e3e7b 100644 (file)
@@ -15,6 +15,7 @@
        <div id="header_inner" class="fixed">
 
                <div id="logo">
+                       <!-- need link back to home here -->
                        <h1><span>IPFire</span>.org</h1>
                        <h2>Security for Future</h2>
                </div>
index 2ed28962a89e2882a83dd29f47a4af108dce1fbb..cf2d0f5753067ff9d68afe81bc6416d622b3fa70 100755 (executable)
--- a/index.pl
+++ b/index.pl
@@ -1,19 +1,28 @@
 #!/usr/bin/perl
 
 my $lang = "en";
+my @error;
 
 # Set language to german, else use english site
 if ($ENV{'HTTP_ACCEPT_LANGUAGE'} =~ /^de(.*)/) {
        $lang = "de";
 }
 
+if($ENV{'REQUEST_METHOD'} eq 'GET') {
+  @error = split(/=/, "$ENV{'QUERY_STRING'}");
+}
+
 print "Status: 302 Moved\n";
 print "Pragma: no-cache\n";
 
-if ($ENV{'SERVER_NAME'} eq "source.ipfire.org") {
-       print "Location: /$lang/source.shtml\n";
+if ($error[1]) {
+       print "Location: /$lang/$error[1].shtml\n";
 } else {
-       print "Location: /$lang/index.shtml\n";
+       if ($ENV{'SERVER_NAME'} eq "source.ipfire.org") {
+               print "Location: /$lang/source.shtml\n";
+       } else {
+               print "Location: /$lang/index.shtml\n";
+       }
 }
 
 # End http header...