From 92ef50c3759c1ec6e49cefd8041fd0c2b67226ba Mon Sep 17 00:00:00 2001 From: ivan Date: Sat, 22 May 2010 19:13:11 +0000 Subject: [PATCH] hide uid on account search --- httemplate/search/svc_acct.cgi | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/httemplate/search/svc_acct.cgi b/httemplate/search/svc_acct.cgi index 09d117765..c13e4a2f4 100755 --- a/httemplate/search/svc_acct.cgi +++ b/httemplate/search/svc_acct.cgi @@ -91,13 +91,30 @@ if ( $conf->exists('report-showpasswords') #its a terrible idea push @style, ''; } -#maybe hide the UID if a flag isn't passed... its much less useful these days -push @header, 'Real Name', 'UID', 'Last Login'; -push @fields, 'finger', 'uid', 'last_login_text'; -push @links, $link, $link, $link; -$align .= 'llr'; -push @color, '', '', ''; -push @style, '', '', ''; +push @header, 'Real Name'; +push @fields, 'finger'; +push @links, $link; +$align .= 'l'; +push @color, ''; +push @style, ''; + +#hide the UID, its much less useful these days +unless ( $cgi->param('show_uid') ) { #XXX add a checkbox + push @header, 'UID'; + push @fields, 'uid'; + push @links, $link; + $align .= 'l'; + push @color, ''; + push @style, ''; +} + +push @header, 'Last Login'; +push @fields, 'last_login_text'; +push @links, $link; +$align .= 'r'; +push @color, ''; +push @style, ''; + for (qw( domain domsvc agentnum custnum popnum svcpart cust_fields )) { $search_hash{$_} = $cgi->param($_) if length($cgi->param($_)); -- 2.11.0