]> git.wh0rd.org Git - tt-rss.git/commitdiff
user prefs: show registration date
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 17 May 2008 03:38:39 +0000 (04:38 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 17 May 2008 03:38:39 +0000 (04:38 +0100)
modules/pref-users.php

index 467f3e106480b32f677ea838f5deaa43414ea40a..2e9eff7591e546238f8ece2dc6e41b31d5fbd945 100644 (file)
 
                $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
                                        <td align='center' width=\"5%\">&nbsp;</td>
                                        <td width=''><a href=\"javascript:updateUsersList('login')\">".__('Login')."</a></td>
                                        <td width='20%'><a href=\"javascript:updateUsersList('access_level')\">".__('Access Level')."</a></td>
+                                       <td width='20%'><a href=\"javascript:updateUsersList('created')\">".__('Registered')."</a></td>
                                        <td width='20%'><a href=\"javascript:updateUsersList('last_login')\">".__('Last login')."</a></td></tr>";
                
                $lnum = 0;
 
                        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") {
 
                        } */
                                
+       
+                       print "<td>".$line["created"]."</td>";          
                        print "<td>".$line["last_login"]."</td>";               
                
                        print "</tr>";