[Gpg4win-commits] r166 - trunk/doc/website
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Feb 17 12:03:20 CET 2006
Author: wilde
Date: 2006-02-17 12:03:20 +0100 (Fri, 17 Feb 2006)
New Revision: 166
Added:
trunk/doc/website/dothtaccess
trunk/doc/website/switch.php
Modified:
trunk/doc/website/README
Log:
Added simple mechanism to switch index page based on host name in uri.
Using this to present visitors of www.gpg4win.de the German page.
Note: the DirectoryIndex is now swith.php as set by dothtaccess
which must be installed as .htaccess of cause.
Modified: trunk/doc/website/README
===================================================================
--- trunk/doc/website/README 2006-02-17 10:36:36 UTC (rev 165)
+++ trunk/doc/website/README 2006-02-17 11:03:20 UTC (rev 166)
@@ -29,7 +29,7 @@
Installing is done from within the "doc/website" directory, using
rsync:
-rsync -urvP --exclude='.svn' *.css *.html pix \
+rsync -urvP --exclude='.svn' *.css *.html *.php pix \
USER at wald.intevation.org:/gpg4win/htdocs/
Where USER is your accounts user name on wald.intevation.org.
Added: trunk/doc/website/dothtaccess
===================================================================
--- trunk/doc/website/dothtaccess 2006-02-17 10:36:36 UTC (rev 165)
+++ trunk/doc/website/dothtaccess 2006-02-17 11:03:20 UTC (rev 166)
@@ -0,0 +1 @@
+DirectoryIndex switch.php
Added: trunk/doc/website/switch.php
===================================================================
--- trunk/doc/website/switch.php 2006-02-17 10:36:36 UTC (rev 165)
+++ trunk/doc/website/switch.php 2006-02-17 11:03:20 UTC (rev 166)
@@ -0,0 +1,10 @@
+<?PHP
+switch ($_SERVER["HTTP_HOST"]) {
+ case "www.gpg4win.de":
+ $target = "index-de.html";
+ break;
+ default:
+ $target = "index.html";
+ }
+readfile($target);
+?>
More information about the Gpg4win-commits
mailing list