view website/switch.php @ 312:503d3a453a04

Check for isEmpty instead of comparing with "" Comparison failed for me when a linebreak was set in properties
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 14 Sep 2012 17:03:15 +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);
?>
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)