From: Iain Patterson Date: Sat, 12 Apr 2014 19:41:12 +0000 (-0400) Subject: Store session variables. X-Git-Tag: 2014-04-12~1 X-Git-Url: http://git.iain.cx/?p=readifood.git;a=commitdiff_plain;h=f44ed8d0e1de072ea341c013c967714cd0217fee;hp=f720a723a18a95cede2cdd22cc3199a39232059f Store session variables. Start a session so we can keep track of user preferences later. --- diff --git a/lib/footer.php b/lib/footer.php index 3ccf4a8..da9130d 100644 --- a/lib/footer.php +++ b/lib/footer.php @@ -2,3 +2,4 @@ + diff --git a/lib/session.php b/lib/session.php new file mode 100644 index 0000000..9f415b8 --- /dev/null +++ b/lib/session.php @@ -0,0 +1,5 @@ + diff --git a/www/index.php b/www/index.php index 4468e05..ae8b5a1 100644 --- a/www/index.php +++ b/www/index.php @@ -32,6 +32,7 @@ $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);