From f60f82727f96c033aaff9f5b5f0767c722e25f28 Mon Sep 17 00:00:00 2001 From: Friendika Date: Thu, 16 Dec 2010 16:35:45 -0800 Subject: register/login timestamps --- include/auth.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/auth.php') 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'])) -- cgit v1.2.3