Mercurial > mxd2map
view website/switch.php @ 306:ea3fde77ea48
Catch generic Exceptions to avoid leaking them and creating
silent errors
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Thu, 06 Sep 2012 18:56:20 +0200 |
parents | 011ec33e84b4 |
children |
line wrap: on
line source
<?PHP switch ($_SERVER["HTTP_HOST"]) { case "www.mxd2map.org": case "mxd2map.org": $target = "index-de.html"; break; default: $target = "index.html"; } readfile($target); ?>