X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;ds=sidebyside;f=www%2Findex.php;fp=www%2Findex.php;h=4468e057bb7fbe2f7082d28fe6f9b2c9506cff3b;hb=28d2c6d84af075263a89025b04df438cdd762658;hp=84f87171fd94fbe46cb39f273796ad72cf4d8c01;hpb=dcee8bacbf2d1eea4c00c42be7ce2dc14f113fa2;p=readifood.git diff --git a/www/index.php b/www/index.php index 84f8717..4468e05 100644 --- a/www/index.php +++ b/www/index.php @@ -28,6 +28,7 @@ else $module = strtolower($module); #echo "request: $request; module: $module; params: " . print_r($parameters, true); + $http = (isset($_SERVER['HTTPS'])) ? "https" : "http"; $username = $_SERVER['REMOTE_USER']; include_once("$lib_root/constants.php"); include_once("$lib_root/functions.php");