//========================= // Start the buffer //_________________________ // Permanent redirection header("HTTP/1.1 301 Moved Permanently"); if($HTTP_GET_VARS["action"] == "contact") header("Location: index.html"); else if($HTTP_GET_VARS["action"] == "galerie") header("Location: sculptures.html"); else if($HTTP_GET_VARS["action"] == "catalog") header("Location: book.html"); else if($HTTP_GET_VARS["action"] == "exhibitions") header("Location: exhibition.html"); else header("Location: index.html"); exit(); ob_start(); $sDefaultInclude = "home.php"; // Set default include $sDefaultContentName = "home"; // Set default describtion $aValidLinks = array( "home" => "home.php", "contact" => "contact.php", "Contact received" => "contact.received.php", "catalog received" => "catalog.received.php", "galerie" => "galerie.php", "admin" => "admin.php", "catalog" => "catalog.php", "exhibitions" => "exhibitions.php" ); $aDescriptions = array( "home" => "Partbeelden - Home", "contact" => "Partbeelden - Contact", "Contact received" => "Partbeelden - Thank you for your message", "Catalog received" => "Partbeelden - Thank you for your request", "galerie" => "Partbeelden - Galerie", "admin" => "Partbeelden - Admin", "catalog" => "Partbeelden - Order the catalogue online", "exhibitions" => "Partbeelden - Exhibitions" ); //========================= // Check if request is accepted //_________________________ $sInclude = $sDefaultInclude; $sContentName = $sDefaultContentName; if(isset($HTTP_GET_VARS["action"])) { $sAction = $HTTP_GET_VARS["action"]; $sAction = str_replace(strstr($sAction,"?"), "", $sAction); $sAction = str_replace(strstr($sAction,"#"), "", $sAction); foreach($aValidLinks as $sName => $sLink) { if($sName == $sAction) { $sInclude = $sLink; $sContentName= $sName; } } }; $Description = $aDescriptions[$sContentName]; ?>