diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-08-16 05:23:26 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-08-16 05:23:26 -0700 |
commit | 30e3a65c0f15f2cbcc538b35c18b1f60490fda9b (patch) | |
tree | 5f702db316822d065442ba0e3983272deab861ac /include/auth.php | |
parent | 4bcf38029656fa3ad2e1914f531491ef90320c23 (diff) | |
download | volse-hubzilla-30e3a65c0f15f2cbcc538b35c18b1f60490fda9b.tar.gz volse-hubzilla-30e3a65c0f15f2cbcc538b35c18b1f60490fda9b.tar.bz2 volse-hubzilla-30e3a65c0f15f2cbcc538b35c18b1f60490fda9b.zip |
full theming support
Diffstat (limited to 'include/auth.php')
-rw-r--r-- | include/auth.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/auth.php b/include/auth.php index 8d2a0e2d0..745285ef0 100644 --- a/include/auth.php +++ b/include/auth.php @@ -10,6 +10,7 @@ if((x($_SESSION,'authenticated')) && (! ($_POST['auth-params'] == 'login'))) { unset($_SESSION['is_visitor']); unset($_SESSION['administrator']); unset($_SESSION['cid']); + unset($_SESSION['theme']); notice( t('Logged out.') . EOL); goaway($a->get_baseurl()); } @@ -20,6 +21,7 @@ if((x($_SESSION,'authenticated')) && (! ($_POST['auth-params'] == 'login'))) { goaway($a->get_baseurl()); } $a->user = $r[0]; + $_SESSION['theme'] = $a->user['theme']; if(strlen($a->user['timezone'])) date_default_timezone_set($a->user['timezone']); @@ -54,7 +56,7 @@ else { goaway($a->get_baseurl()); } $_SESSION['uid'] = $r[0]['uid']; - $_SESSION['admin'] = $r[0]['admin']; + $_SESSION['theme'] = $r[0]['theme']; $_SESSION['authenticated'] = 1; $_SESSION['my_url'] = $a->get_baseurl() . '/profile/' . $r[0]['nickname']; |