annotate website/switch.php @ 212:011ec33e84b4

* website/.htaccess, website/buildhtml.mk, website/switch.php: added an rsync-switch to transfer symlinks as files (-L), reworked the details language-switch inside the PHP-script.
author Stephan Holl <stephan.holl@intevation.de>
date Fri, 22 Jul 2011 13:35:25 +0200
parents 123ebb293f3a
children
rev   line source
155
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
1 <?PHP
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
2 switch ($_SERVER["HTTP_HOST"]) {
195
123ebb293f3a * website/.htaccess,
Stephan Holl <stephan.holl@intevation.de>
parents: 159
diff changeset
3 case "www.mxd2map.org":
123ebb293f3a * website/.htaccess,
Stephan Holl <stephan.holl@intevation.de>
parents: 159
diff changeset
4 case "mxd2map.org":
155
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
5 $target = "index-de.html";
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
6 break;
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
7 default:
212
011ec33e84b4 * website/.htaccess, website/buildhtml.mk, website/switch.php:
Stephan Holl <stephan.holl@intevation.de>
parents: 195
diff changeset
8 $target = "index.html";
155
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
9 }
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
10 readfile($target);
5a882b5773c9 initial website.
Emanuel Schuetze <emanuel@intevation.de>
parents:
diff changeset
11 ?>
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)