aboutsummaryrefslogtreecommitdiffstats
path: root/include/auth.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-19 05:24:22 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-19 05:24:22 -0700
commitbbe53699f26bfa4e4d17da097fd8f2fc14da47dd (patch)
tree70888d850bc8f839532b087584eb41f0a9bbf0a8 /include/auth.php
parent9b0584e59338f0b75c6b8a9a1b5def33da5de5f6 (diff)
downloadvolse-hubzilla-bbe53699f26bfa4e4d17da097fd8f2fc14da47dd.tar.gz
volse-hubzilla-bbe53699f26bfa4e4d17da097fd8f2fc14da47dd.tar.bz2
volse-hubzilla-bbe53699f26bfa4e4d17da097fd8f2fc14da47dd.zip
bug fixes
Diffstat (limited to 'include/auth.php')
-rw-r--r--include/auth.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/auth.php b/include/auth.php
index ef5c6f0b4..bbbe8eb0d 100644
--- a/include/auth.php
+++ b/include/auth.php
@@ -23,12 +23,20 @@ if((x($_SESSION,'authenticated')) && (! ($_POST['auth-params'] == 'login'))) {
if(strlen($a->user['timezone']))
date_default_timezone_set($a->user['timezone']);
+ if(x($a->user,'nickname'))
+ $_SESSION['my_url'] = $a->get_baseurl() . '/profile/' . $r[0]['nickname'];
+ else
+ $_SESSION['my_url'] = $a->get_baseurl() . '/profile/' . $r[0]['uid'];
+
+
+
$r = q("SELECT * FROM `contact` WHERE `uid` = %s AND `self` = 1 LIMIT 1",
intval($_SESSION['uid']));
if(count($r)) {
$a->contact = $r[0];
$a->cid = $r[0]['id'];
$_SESSION['cid'] = $a->cid;
+
}
}
}