diff options
| author | jeff <jeff> | 2007-12-28 15:10:20 +0000 |
|---|---|---|
| committer | jeff <jeff> | 2007-12-28 15:10:20 +0000 |
| commit | 35ad4181b0352ba1f4581653c22f76ba23da5723 (patch) | |
| tree | 0389407152d36c315abdeaa7c8b69b89884e11b0 /httemplate/search | |
| parent | a7bfb9ccb9a31b1e1cba5a7cbcf40137cf2eee75 (diff) | |
add never logged in report
Diffstat (limited to 'httemplate/search')
| -rwxr-xr-x | httemplate/search/svc_acct.cgi | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/httemplate/search/svc_acct.cgi b/httemplate/search/svc_acct.cgi index 62fb9821b..62b276748 100755 --- a/httemplate/search/svc_acct.cgi +++ b/httemplate/search/svc_acct.cgi @@ -80,6 +80,16 @@ if ( $cgi->param('magic') =~ /^(all|unlinked)$/ ) { $orderby = "ORDER BY $sortby"; } +} elsif ( $cgi->param('magic') =~ /^nologin$/ ) { + + if ( $cgi->param('sortby') =~ /^(\w+)$/ ) { + my $sortby = $1; + $sortby = "LOWER($sortby)" + if $sortby eq 'username'; + push @extra_sql, "last_login IS NULL"; + $orderby = "ORDER BY $sortby"; + } + } elsif ( $cgi->param('popnum') =~ /^(\d+)$/ ) { push @extra_sql, "popnum = $1"; $orderby = "ORDER BY LOWER(username)"; |
