diff options
author | jeff <jeff> | 2007-12-28 15:10:33 +0000 |
---|---|---|
committer | jeff <jeff> | 2007-12-28 15:10:33 +0000 |
commit | 2559f2146ea5bdb013f3a013f1179f14b638a742 (patch) | |
tree | 0e99ab5dbb5e3d389f7eaafc1dc8223cecbdae69 /httemplate/search/svc_acct.cgi | |
parent | e5dc922210f963b16df55ebf40ebffd60d9aa09a (diff) |
add never logged in report
Diffstat (limited to 'httemplate/search/svc_acct.cgi')
-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 d2389baf0..a3609a2ed 100755 --- a/httemplate/search/svc_acct.cgi +++ b/httemplate/search/svc_acct.cgi @@ -157,6 +157,16 @@ if ( $cgi->param('magic') =~ /^(all|unlinked)$/ ) { } +} 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)"; |