diff options
author | Friendika <info@friendika.com> | 2010-12-16 16:35:45 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2010-12-16 16:35:45 -0800 |
commit | f60f82727f96c033aaff9f5b5f0767c722e25f28 (patch) | |
tree | 9ad52de5515064ac7b8ad12b7c07a408803b4784 /include | |
parent | df2e79dcaf28810e31d4bdc48bdb76e12f70e817 (diff) | |
download | volse-hubzilla-f60f82727f96c033aaff9f5b5f0767c722e25f28.tar.gz volse-hubzilla-f60f82727f96c033aaff9f5b5f0767c722e25f28.tar.bz2 volse-hubzilla-f60f82727f96c033aaff9f5b5f0767c722e25f28.zip |
register/login timestamps
Diffstat (limited to 'include')
-rw-r--r-- | include/auth.php | 4 | ||||
-rw-r--r-- | include/nav.php | 3 | ||||
-rw-r--r-- | include/profile_selectors.php | 2 |
3 files changed, 8 insertions, 1 deletions
diff --git a/include/auth.php b/include/auth.php index dd4afac23..fe09ef160 100644 --- a/include/auth.php +++ b/include/auth.php @@ -162,6 +162,10 @@ else { $a->cid = $r[0]['id']; $_SESSION['cid'] = $a->cid; } + q("UPDATE `user` SET `login_date` = '%s' WHERE `uid` = %d LIMIT 1", + dbesc(datetime_convert()), + intval($_SESSION['uid']) + ); header('X-Account-Management-Status: active; name="' . $a->user['username'] . '"; id="' . $a->user['nickname'] .'"'); if(($a->module !== 'home') && isset($_SESSION['return_url'])) diff --git a/include/nav.php b/include/nav.php index f7c5c4e01..171309673 100644 --- a/include/nav.php +++ b/include/nav.php @@ -1,5 +1,8 @@ <?php + if(!(x($a->page,'nav'))) + $a->page['nav'] = ''; + $a->page['nav'] .= '<div id="panel" style="display: none;"></div>' ; if(local_user()) { diff --git a/include/profile_selectors.php b/include/profile_selectors.php index 63bc22dc5..f4b30f211 100644 --- a/include/profile_selectors.php +++ b/include/profile_selectors.php @@ -3,7 +3,7 @@ function gender_selector($current="",$suffix="") { $o = ''; - $select = array('', t('Male'), t('Female'), t('Mostly Male'), t('Mostly Female'), t('Transgender'), t('Intersex'), t('Transsexual'), t('Hermaphrodite'), t('Currently Male'), t('Currently Female'), t('Neuter'), t('Non-specific'), t('Other'), t('Undecided')); + $select = array('', t('Male'), t('Female'), t('Currently Male'), t('Currently Female'), t('Mostly Male'), t('Mostly Female'), t('Transgender'), t('Intersex'), t('Transsexual'), t('Hermaphrodite'), t('Neuter'), t('Non-specific'), t('Other'), t('Undecided')); $o .= "<select name=\"gender$suffix\" id=\"gender-select$suffix\" size=\"1\" >"; foreach($select as $selection) { |