diff options
author | jeff <jeff> | 2007-12-28 01:41:23 +0000 |
---|---|---|
committer | jeff <jeff> | 2007-12-28 01:41:23 +0000 |
commit | 4fd5994039666584fa14b7b2afbb4cd0d6481b21 (patch) | |
tree | d7bc891e5dfe2e5142fea5b2eb14471672236ee6 /httemplate/search | |
parent | 97418edf65d4cb40b8aa51998c123fd185a27711 (diff) |
last login reporting (#2952)
Diffstat (limited to 'httemplate/search')
-rwxr-xr-x | httemplate/search/svc_acct.cgi | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/httemplate/search/svc_acct.cgi b/httemplate/search/svc_acct.cgi index 2c42ef039..d2389baf0 100755 --- a/httemplate/search/svc_acct.cgi +++ b/httemplate/search/svc_acct.cgi @@ -77,12 +77,12 @@ my $link_cust = sub { my @extra_sql = (); -my @header = ( '#', 'Service', 'Account', 'UID' ); -my @fields = ( 'svcnum', 'svc', 'email', 'uid' ); -my @links = ( $link, $link, $link, $link ); -my $align = 'rlll'; -my @color = ( '', '', '', '' ); -my @style = ( '', '', '', '' ); +my @header = ( '#', 'Service', 'Account', 'UID', 'Last Login' ); +my @fields = ( 'svcnum', 'svc', 'email', 'uid', 'last_login_text' ); +my @links = ( $link, $link, $link, $link, $link ); +my $align = 'rlllr'; +my @color = ( '', '', '', '', '' ); +my @style = ( '', '', '', '', '' ); if ( $cgi->param('domain') ) { my $svc_domain = @@ -110,7 +110,7 @@ if ( $cgi->param('magic') =~ /^(all|unlinked)$/ ) { $sortby = "LOWER($sortby)" if $sortby eq 'username'; push @extra_sql, "$sortby IS NOT NULL" - if $sortby eq 'uid' || $sortby eq 'seconds'; + if $sortby eq 'uid' || $sortby eq 'seconds' || $sortby eq 'last_login'; $orderby = "ORDER BY $sortby"; } |