[Xfce4-commits] <wiki:master> Update domain and respect https.

Nick Schermer noreply at xfce.org
Fri Jan 6 22:08:01 CET 2012


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

commit 8785f1daf0332f28c443f3c7c1c426ebaccd9874
Author: Nick Schermer <nick at xfce.org>
Date:   Fri Jan 6 22:07:49 2012 +0100

    Update domain and respect https.

 help.php |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/help.php b/help.php
index 27e08bb..010a066 100644
--- a/help.php
+++ b/help.php
@@ -10,7 +10,7 @@ function get_value($name, $fallback = null)
 /* Subpaths in which components are expected */
 $subdirs = array ('xfce', 'apps', 'panel-plugins', 'thunar-plugins');
 $defpage = 'start';
-$domain  = 'docs2.xfce.org';
+$domain  = 'docs.xfce.org';
 
 /* Path to the dokuwiki data */
 $relpath = '/../domains/'.$domain.'/data/pages/';
@@ -99,6 +99,9 @@ if (!empty ($offset))
     $uri .= '#'.$offset;
 
 /* Redirect */
-header('Location: http://'.$domain.'/'.$uri);
+if (isset ($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on")
+    header('Location: https://'.$domain.'/'.$uri);
+else
+    header('Location: http://'.$domain.'/'.$uri);
 
 ?>


More information about the Xfce4-commits mailing list