X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=www%2Findex.php;h=ae8b5a11318131c5014732bdcf734fe398ec7e76;hb=c302638e3b5c08805b56db1e2f9d1c0dce494f3c;hp=84f87171fd94fbe46cb39f273796ad72cf4d8c01;hpb=e90135c8b78c87685fc4de865fcb59d1e84bcda2;p=readifood.git diff --git a/www/index.php b/www/index.php index 84f8717..ae8b5a1 100644 --- a/www/index.php +++ b/www/index.php @@ -28,9 +28,11 @@ 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"); + include_once("$lib_root/session.php"); include_once("$lib_root/header.php"); $q = new UserQuery; $user = $q->findOneByUsername($username);