[freeside-commits] freeside/httemplate/search svc_acct.cgi, 1.40.2.2, 1.40.2.3
Jeff Finucane,420,,
jeff at wavetail.420.am
Fri Dec 28 07:10:23 PST 2007
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail:/tmp/cvs-serv9675/httemplate/search
Modified Files:
Tag: FREESIDE_1_7_BRANCH
svc_acct.cgi
Log Message:
add never logged in report
Index: svc_acct.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/svc_acct.cgi,v
retrieving revision 1.40.2.2
retrieving revision 1.40.2.3
diff -u -d -r1.40.2.2 -r1.40.2.3
--- svc_acct.cgi 28 Dec 2007 01:32:49 -0000 1.40.2.2
+++ svc_acct.cgi 28 Dec 2007 15:10:20 -0000 1.40.2.3
@@ -80,6 +80,16 @@
$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)";
More information about the freeside-commits
mailing list