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'); |
---|
7 | |
---|
8 | if( ($en !== false && $de !== false && $de < $en) || |
---|
9 | ($en === false && de !== false) ) |
---|
10 | header("Location: /de/"); |
---|
11 | else |
---|
12 | header("Location: /en-v6/"); |
---|
13 | ?> |
---|
14 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
---|
15 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
---|
16 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de"> |
---|
17 | <head> |
---|
18 | <title>technikum29</title> |
---|
19 | <link rel="stylesheet" href="shared/css/startseite.css" type="text/css" title="technikum29" /> |
---|
20 | <link rel="start" href="/de/" title="Startseite" /> |
---|
21 | <link rel="bookmark" href="/de/" title="Startseite" /> |
---|
22 | |
---|
23 | <link rel="next" href="/de/" title="Deutsche Startseite" /> |
---|
24 | <link rel="copyright" href="/de/impressum.shtm" title="Kontakt, Impressum, Copyright" /> |
---|
25 | |
---|
26 | <script type="text/javascript" src="shared/js/startseite.js"></script> |
---|
27 | |
---|
28 | <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /> |
---|
29 | <meta name="author" content="h. müller" /> |
---|
30 | <meta name="ICBM" content="50.14, 8.456" /> <!-- somewhere in Kelkheim --> |
---|
31 | <meta http-equiv="Content-Script-Type" content="text/javascript" /> |
---|
32 | <meta http-equiv="Content-Style-Type" content="text/css" /> |
---|
33 | <meta name="DC.Format" content="text/html" /> |
---|
34 | |
---|
35 | <meta name="DC.Identifier" content="http://www.technikum29.de/" /> |
---|
36 | <meta name="DC.Language" content="de" /> |
---|
37 | <meta name="robots" content="index,follow" /> |
---|
38 | <meta name="keywords" content="technikum, Technikum29, Museum, Main-Taunus, Technikmuseum-Main-Taunus" /> |
---|
39 | <meta name="DC.Title" content="technikum29.de" /> |
---|
40 | <meta name="DC.Subject" content="technikum29 Homepage" /> |
---|
41 | |
---|
42 | <meta name="t29.thisversion" content="06.08.2006/v5.5.6" /> |
---|
43 | </head> |
---|
44 | |
---|
45 | <body> |
---|
46 | <div id="container"> |
---|
47 | <h1>technikum29</h1> |
---|
48 | <div id="languages"> |
---|
49 | <div lang="de" xml:lang="de" id="de"> |
---|
50 | <h2>technikum29 auf deutsch</h2> |
---|
51 | <p class="text">Museum für Rechner-, Computer- und Kommunikationstechnik</p> |
---|
52 | <p class="go" title="Weiter zur Homepage"><a href="/de/" title="Weiter">» <span>Deutsch</span></a></p> |
---|
53 | |
---|
54 | <p class="author">Autor: h.Müller (dipl.-phys.)</p> |
---|
55 | </div> |
---|
56 | |
---|
57 | <div lang="en" xml:lang="en" id="en"> |
---|
58 | <h2>technikum29 in english</h2> |
---|
59 | <p class="text">Museum of calculator, computer and communication technology</p> |
---|
60 | <p class="go"><a href="/en/" title="Next page...">» <span>English</span></a></p> |
---|
61 | |
---|
62 | <p class="author">Author: h.Müller (dipl.-phys.)</p> |
---|
63 | </div> |
---|
64 | </div> |
---|
65 | </div> |
---|
66 | </body> |
---|
67 | </html> |
---|
68 | |
---|