[Xfce4-commits] <wiki:master> Force domain.

Nick Schermer noreply at xfce.org
Fri Jan 6 21:20:01 CET 2012


Updating branch refs/heads/master
         to 0457a3236e0516715cc95d94ff426cc7df1e7454 (commit)
       from e3a78a5a4ffdf57e7a1b12c0de874a8ec9ae3185 (commit)

commit 0457a3236e0516715cc95d94ff426cc7df1e7454
Author: Nick Schermer <nick at xfce.org>
Date:   Fri Jan 6 21:17:58 2012 +0100

    Force domain.

 help.php |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/help.php b/help.php
index 8bb679b..27e08bb 100644
--- a/help.php
+++ b/help.php
@@ -7,16 +7,17 @@ function get_value($name, $fallback = null)
   return $fallback;
 }
 
+/* Subpaths in which components are expected */
+$subdirs = array ('xfce', 'apps', 'panel-plugins', 'thunar-plugins');
+$defpage = 'start';
+$domain  = 'docs2.xfce.org';
+
 /* Path to the dokuwiki data */
-$relpath = '/../domains/docs2.xfce.org/data/pages/';
+$relpath = '/../domains/'.$domain.'/data/pages/';
 $root = realpath (dirname ($_SERVER['SCRIPT_FILENAME']) . $relpath);
 if (!is_dir ($root) || !chdir (($root)))
     die ('Pages path is not properly configured');
 
-/* Subpaths in which components are expected */
-$subdirs = array ('xfce', 'apps', 'panel-plugins', 'thunar-plugins');
-$defpage = 'start';
-
 /* Get information about from the uri */
 //$version = get_value ('version');
 $locale = get_value ('locale');
@@ -98,6 +99,6 @@ if (!empty ($offset))
     $uri .= '#'.$offset;
 
 /* Redirect */
-header('Location: /'.$uri);
+header('Location: http://'.$domain.'/'.$uri);
 
 ?>


More information about the Xfce4-commits mailing list