diff options
Diffstat (limited to 'httemplate')
| -rwxr-xr-x | httemplate/search/svc_acct.cgi | 14 | ||||
| -rwxr-xr-x | httemplate/view/svc_acct.cgi | 1 |
2 files changed, 8 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"; } diff --git a/httemplate/view/svc_acct.cgi b/httemplate/view/svc_acct.cgi index 8326818d6..d764afee6 100755 --- a/httemplate/view/svc_acct.cgi +++ b/httemplate/view/svc_acct.cgi @@ -79,6 +79,7 @@ Upload: <B><% sprintf("%.3f", $input) %></B> megabytes<BR> Download: <B><% sprintf("%.3f", $output) %></B> megabytes<BR> + Last Login: <B><% $svc_acct->last_login_text %></B><BR> % my $href = qq!<A HREF="${p}search/sqlradius.cgi?svcnum=$svcnum!; View session detail: |
