source: t29-www/lib/401.php @ 1492

Last change on this file since 1492 was 910, checked in by sven, 8 years ago

Fehlermeldungen für Fehlerseiten hinzugefügt.

File size: 829 bytes
Line 
1<?php
2/**
3 * t29v6 401er Entry Point
4 *
5 * Will be called as ErrorDocument 404 which also catches old
6 * file.shtml? URLs as well as old URLs which should be remapped
7 * to new ones.
8 *
9 **/
10
11// standard arguments
12$seiten_id = '401';
13$version = '$Id$';
14$titel = "401 Unauthorized";
15$dynamischer_inhalt = true;
16
17$lib = dirname(__FILE__);
18require "$lib/technikum29.php";
19
20$wanted_page = $_SERVER['REQUEST_URI'];
21
22require_once "$lib/client.php";
23if(t29Client::getLanguage() == "de") {
24?>
25<h2>401 Nicht authorisiert</h2>
26<address><?=$wanted_page; ?></address>
27<p>Der Zugriff auf diese Ressource ist nicht gestattet.</p>
28<?php
29} else { // language
30?>
31<h2>401 Unauthorized</h2>
32<address><?=$wanted_page; ?></address>
33<p>You are not authorized to view the requested resource.</p>
34<?php
35} // language
Note: See TracBrowser for help on using the repository browser.
© 2008 - 2013 technikum29 • Sven Köppel • Some rights reserved
Powered by Trac
Expect where otherwise noted, content on this site is licensed under a Creative Commons 3.0 License