From f44ed8d0e1de072ea341c013c967714cd0217fee Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Sat, 12 Apr 2014 15:41:12 -0400 Subject: [PATCH] Store session variables. Start a session so we can keep track of user preferences later. --- lib/footer.php | 1 + lib/session.php | 5 +++++ www/index.php | 1 + 3 files changed, 7 insertions(+) create mode 100644 lib/session.php 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); -- 2.7.4