Jeremy Newman : add a workaound for old issue and interview URLs

Jeremy Newman jnewman at winehq.org
Tue Dec 9 15:04:51 CST 2008


Module: website
Branch: master
Commit: f4cc16f647566c0d015802e714fc2432101fef57
URL:    http://source.winehq.org/git/website.git/?a=commit;h=f4cc16f647566c0d015802e714fc2432101fef57

Author: Jeremy Newman <jnewman at codeweavers.com>
Date:   Tue Dec  9 15:04:32 2008 -0600

add a workaound for old issue and interview URLs

---

 site |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/site b/site
index 9915d70..209c6b8 100644
--- a/site
+++ b/site
@@ -75,6 +75,24 @@ else
     define("PAGE", 'home');
 }
 
+// homepage old URL redirects
+if (defined("PAGE") and PAGE == "home")
+{
+    // fix old WWN issue URLS
+    if (isset($_GET['issue']) and intval($_GET['issue']) > 0)
+    {
+        $html->redirect("{$config->base_url}wwn/{$_GET['issue']}");
+        exit();
+    }
+
+    // fix old interview URLS
+    if (isset($_GET['interview']) and intval($_GET['interview']) > 0)
+    {
+        $html->redirect("{$config->base_url}interview/{$_GET['interview']}");
+        exit();
+    }
+}
+
 // loag page content
 $html->page = $html->template("local", PAGE);
 




More information about the wine-cvs mailing list