From: Andrew Dolgov Date: Sat, 17 May 2008 03:38:39 +0000 (+0100) Subject: user prefs: show registration date X-Git-Tag: 1.2.23-final~100 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f52fb64d8cde75ac94a07266cc4515d5ed07ccc4;p=tt-rss.git user prefs: show registration date --- diff --git a/modules/pref-users.php b/modules/pref-users.php index 467f3e10..2e9eff75 100644 --- a/modules/pref-users.php +++ b/modules/pref-users.php @@ -225,7 +225,8 @@ $result = db_query($link, "SELECT id,login,access_level,email, - ".SUBSTRING_FOR_DATE."(last_login,1,16) as last_login + ".SUBSTRING_FOR_DATE."(last_login,1,16) as last_login, + ".SUBSTRING_FOR_DATE."(created,1,16) as created FROM ttrss_users WHERE @@ -250,6 +251,7 @@   ".__('Login')." ".__('Access Level')." + ".__('Registered')." ".__('Last login').""; $lnum = 0; @@ -277,9 +279,12 @@ if (get_pref($link, 'HEADLINES_SMART_DATE')) { $line["last_login"] = smart_date_time(strtotime($line["last_login"])); + $line["created"] = smart_date_time(strtotime($line["created"])); } else { $line["last_login"] = date(get_pref($link, 'SHORT_DATE_FORMAT'), strtotime($line["last_login"])); + $line["created"] = date(get_pref($link, 'SHORT_DATE_FORMAT'), + strtotime($line["created"])); } // if (!$edit_uid || $subop != "edit") { @@ -333,6 +338,8 @@ } */ + + print "".$line["created"].""; print "".$line["last_login"].""; print "";