aboutsummaryrefslogtreecommitdiff
path: root/www/www-header.php
diff options
context:
space:
mode:
authorJustin J. Novack <jnovack@gmail.com>2012-09-16 01:17:46 -0400
committerJustin J. Novack <jnovack@gmail.com>2012-09-16 01:17:46 -0400
commita73791f16d10ea0e2c477f29d9049d75516aa774 (patch)
treec5cc7406b5710804600477a45d20fa21815c67a3 /www/www-header.php
parentb0687c328fcaa4d891b31c2146694654cd4707c9 (diff)
downloadphorkie-a73791f16d10ea0e2c477f29d9049d75516aa774.tar.gz
phorkie-a73791f16d10ea0e2c477f29d9049d75516aa774.zip
Added OpenID Authentication
Diffstat (limited to 'www/www-header.php')
-rw-r--r--www/www-header.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/www/www-header.php b/www/www-header.php
index 72a2e67..3bb7e89 100644
--- a/www/www-header.php
+++ b/www/www-header.php
@@ -1,5 +1,6 @@
<?php
namespace phorkie;
+session_start();
set_include_path(
__DIR__ . '/../src/'
. PATH_SEPARATOR . get_include_path()
@@ -63,6 +64,9 @@ function render($tplname, $vars)
$vars['css'] = $GLOBALS['phorkie']['cfg']['css'];
$vars['title'] = $GLOBALS['phorkie']['cfg']['title'];
$vars['topbar'] = $GLOBALS['phorkie']['cfg']['topbar'];
+ $vars['identity'] = $_SESSION['identity'];
+ $vars['name'] = $_SESSION['name'];
+ $vars['email'] = $_SESSION['email'];
$vars['db'] = new Database();
$template = $GLOBALS['twig']->loadTemplate($tplname . '.htm');