diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-10-17 20:04:17 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-10-17 20:04:17 -0700 |
commit | 0f47ac282c30c61dbc13e42c4f53b2fc14d65593 (patch) | |
tree | b56358665636f78c6e9a62f2abebfb75049cf447 /include/auth.php | |
parent | f5a8a92df101cbf37fedb9ac3f7702f60a40772e (diff) | |
download | volse-hubzilla-0f47ac282c30c61dbc13e42c4f53b2fc14d65593.tar.gz volse-hubzilla-0f47ac282c30c61dbc13e42c4f53b2fc14d65593.tar.bz2 volse-hubzilla-0f47ac282c30c61dbc13e42c4f53b2fc14d65593.zip |
celebrity/group/community pages about 75% implemented
Diffstat (limited to 'include/auth.php')
-rw-r--r-- | include/auth.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/auth.php b/include/auth.php index f4f75c607..7e04cb2e7 100644 --- a/include/auth.php +++ b/include/auth.php @@ -14,6 +14,7 @@ if((x($_SESSION,'authenticated')) && (! ($_POST['auth-params'] === 'login'))) { unset($_SESSION['administrator']); unset($_SESSION['cid']); unset($_SESSION['theme']); + unset($_SESSION['page_flags']); notice( t('Logged out.') . EOL); goaway($a->get_baseurl()); } @@ -34,6 +35,7 @@ if((x($_SESSION,'authenticated')) && (! ($_POST['auth-params'] === 'login'))) { $a->user = $r[0]; $_SESSION['theme'] = $a->user['theme']; + $_SESSION['page_flags'] = $a->user['page-flags']; if(strlen($a->user['timezone'])) date_default_timezone_set($a->user['timezone']); @@ -58,6 +60,7 @@ else { unset($_SESSION['cid']); unset($_SESSION['theme']); unset($_SESSION['my_url']); + unset($_SESSION['page_flags']); $encrypted = hash('whirlpool',trim($_POST['password'])); @@ -77,6 +80,7 @@ else { $_SESSION['uid'] = $r[0]['uid']; $_SESSION['theme'] = $r[0]['theme']; $_SESSION['authenticated'] = 1; + $_SESSION['page_flags'] = $r[0]['page-flags']; $_SESSION['my_url'] = $a->get_baseurl() . '/profile/' . $r[0]['nickname']; notice( t("Welcome back ") . $r[0]['username'] . EOL); |