Store session variables.
[readifood.git] / www / index.php
index 84f8717..ae8b5a1 100644 (file)
   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);