[92] | 1 | <?php |
---|
| 2 | /* technikum29 language negotation since v5.8.x |
---|
| 3 | * automatical redirection based on user language |
---|
| 4 | */ |
---|
| 5 | $de = strpos($_SERVER['HTTP_ACCEPT_LANGUAGE'], 'de'); |
---|
| 6 | $en = strpos($_SERVER['HTTP_ACCEPT_LANGUAGE'], 'en'); |
---|
[357] | 7 | |
---|
| 8 | // Support web prefixes, aka installation of the homepage in |
---|
| 9 | // subdirectorys and not in virtual hosts |
---|
| 10 | // Basically relative redirects would do the trick, too, |
---|
| 11 | // but officially they are not allowed (not standard compilant) |
---|
| 12 | include "lib/host.php"; |
---|
| 13 | $host = t29Host::detect(); |
---|
| 14 | // this is not implemented in the HTML below, since actually |
---|
| 15 | // there is no browser who see's that HTML. |
---|
| 16 | |
---|
[92] | 17 | if( ($en !== false && $de !== false && $de < $en) || |
---|
| 18 | ($en === false && de !== false) ) |
---|
[357] | 19 | header("Location: {$host->web_prefix}/de/"); |
---|
[92] | 20 | else |
---|
[357] | 21 | header("Location: {$host->web_prefix}/en/"); |
---|
[92] | 22 | ?> |
---|
| 23 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
---|
| 24 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
---|
| 25 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de"> |
---|
| 26 | <head> |
---|
| 27 | <title>technikum29</title> |
---|
| 28 | <link rel="stylesheet" href="shared/css/startseite.css" type="text/css" title="technikum29" /> |
---|
| 29 | <link rel="start" href="/de/" title="Startseite" /> |
---|
| 30 | <link rel="bookmark" href="/de/" title="Startseite" /> |
---|
| 31 | |
---|
| 32 | <link rel="next" href="/de/" title="Deutsche Startseite" /> |
---|
| 33 | <link rel="copyright" href="/de/impressum.shtm" title="Kontakt, Impressum, Copyright" /> |
---|
| 34 | |
---|
| 35 | <script type="text/javascript" src="shared/js/startseite.js"></script> |
---|
| 36 | |
---|
| 37 | <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /> |
---|
| 38 | <meta name="author" content="h. müller" /> |
---|
| 39 | <meta name="ICBM" content="50.14, 8.456" /> <!-- somewhere in Kelkheim --> |
---|
| 40 | <meta http-equiv="Content-Script-Type" content="text/javascript" /> |
---|
| 41 | <meta http-equiv="Content-Style-Type" content="text/css" /> |
---|
| 42 | <meta name="DC.Format" content="text/html" /> |
---|
| 43 | |
---|
| 44 | <meta name="DC.Identifier" content="http://www.technikum29.de/" /> |
---|
| 45 | <meta name="DC.Language" content="de" /> |
---|
| 46 | <meta name="robots" content="index,follow" /> |
---|
| 47 | <meta name="keywords" content="technikum, Technikum29, Museum, Main-Taunus, Technikmuseum-Main-Taunus" /> |
---|
| 48 | <meta name="DC.Title" content="technikum29.de" /> |
---|
| 49 | <meta name="DC.Subject" content="technikum29 Homepage" /> |
---|
| 50 | |
---|
| 51 | <meta name="t29.thisversion" content="06.08.2006/v5.5.6" /> |
---|
| 52 | </head> |
---|
| 53 | |
---|
| 54 | <body> |
---|
| 55 | <div id="container"> |
---|
| 56 | <h1>technikum29</h1> |
---|
| 57 | <div id="languages"> |
---|
| 58 | <div lang="de" xml:lang="de" id="de"> |
---|
| 59 | <h2>technikum29 auf deutsch</h2> |
---|
| 60 | <p class="text">Museum für Rechner-, Computer- und Kommunikationstechnik</p> |
---|
| 61 | <p class="go" title="Weiter zur Homepage"><a href="/de/" title="Weiter">» <span>Deutsch</span></a></p> |
---|
| 62 | |
---|
| 63 | <p class="author">Autor: h.Müller (dipl.-phys.)</p> |
---|
| 64 | </div> |
---|
| 65 | |
---|
| 66 | <div lang="en" xml:lang="en" id="en"> |
---|
| 67 | <h2>technikum29 in english</h2> |
---|
| 68 | <p class="text">Museum of calculator, computer and communication technology</p> |
---|
| 69 | <p class="go"><a href="/en/" title="Next page...">» <span>English</span></a></p> |
---|
| 70 | |
---|
| 71 | <p class="author">Author: h.Müller (dipl.-phys.)</p> |
---|
| 72 | </div> |
---|
| 73 | </div> |
---|
| 74 | </div> |
---|
| 75 | </body> |
---|
| 76 | </html> |
---|
| 77 | |
---|