[freeside-commits] freeside/httemplate/search svc_acct.cgi, 1.49, 1.50

Jeff Finucane,420,, jeff at wavetail.420.am
Fri Dec 28 07:10:36 PST 2007


Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail:/tmp/cvs-serv9712/httemplate/search

Modified Files:
	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.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- svc_acct.cgi	28 Dec 2007 01:41:23 -0000	1.49
+++ svc_acct.cgi	28 Dec 2007 15:10:33 -0000	1.50
@@ -157,6 +157,16 @@
 
   }
 
+} 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