Module: tools Branch: master Commit: 571f3be2395890ea1d35392683b3d332866002f5 URL: http://source.winehq.org/git/tools.git/?a=commit;h=571f3be2395890ea1d3539268...
Author: Mikolaj Zalewski mikolajz@tygrys.dom Date: Wed Mar 19 23:25:30 2008 +0100
add the link to the Wine wiki
---
php/lib.php | 2 +- php/redirect.php | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/php/lib.php b/php/lib.php index 74d3807..ca463d8 100644 --- a/php/lib.php +++ b/php/lib.php @@ -4,7 +4,7 @@ $MASTER_LANGUAGE = "009:01"; $MASTER_LANGUAGE_BINID = 1033; $MASTER_LANGUAGE_NAME = "English (US)";
-$WINE_WIKI_TRANSLATIONS = "<a href="TODO">[TODO: Wiki translations page]</a>"; +$WINE_WIKI_TRANSLATIONS = "<a href="redirect.php?url=http://wiki.winehq.org/Translating%5C%22%3Ehttp://wiki.winehq.org/Translatin...</a>";
function validate_lang($id) { diff --git a/php/redirect.php b/php/redirect.php new file mode 100644 index 0000000..1d0d2ca --- /dev/null +++ b/php/redirect.php @@ -0,0 +1,9 @@ +<?php + +$url = $_REQUEST['url']; + +if (strpos($url, "http://wiki.winehq.org/") === 0) + header("Location: $url"); +else + die("Invalid address"); +?>