projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8590a91
)
more formatting updates to RADIUS report
author
ivan
<ivan>
Wed, 6 Oct 2004 13:39:17 +0000
(13:39 +0000)
committer
ivan
<ivan>
Wed, 6 Oct 2004 13:39:17 +0000
(13:39 +0000)
httemplate/search/sqlradius.cgi
patch
|
blob
|
history
diff --git
a/httemplate/search/sqlradius.cgi
b/httemplate/search/sqlradius.cgi
index
bb51acb
..
11edf3c
100644
(file)
--- a/
httemplate/search/sqlradius.cgi
+++ b/
httemplate/search/sqlradius.cgi
@@
-125,7
+125,7
@@
my $time = shift;
return ' ' if $time == 0;
my $pretty = time2str('%T%P %a %b %o %Y', $time );
my $time = shift;
return ' ' if $time == 0;
my $pretty = time2str('%T%P %a %b %o %Y', $time );
- $pretty =~ s/ (\d)(st|dn|rd|th)/
$1$2/;
+ $pretty =~ s/ (\d)(st|dn|rd|th)/$1$2/;
$pretty;
};
$pretty;
};
@@
-161,15
+161,18
@@
name => 'User',
attrib => 'UserName',
fmt => $user_format,
name => 'User',
attrib => 'UserName',
fmt => $user_format,
+ align => 'left',
},
'realm' => {
name => 'Realm',
attrib => 'Realm',
},
'realm' => {
name => 'Realm',
attrib => 'Realm',
+ align => 'left',
},
'dummy' => {
name => 'Customer',
attrib => '',
fmt => $customer_format,
},
'dummy' => {
name => 'Customer',
attrib => '',
fmt => $customer_format,
+ align => 'left',
},
'framedipaddress' => {
name => 'IP Address',
},
'framedipaddress' => {
name => 'IP Address',
@@
-177,31
+180,37
@@
fmt => sub { my $ip = shift;
length($ip) ? $ip : ' ';
},
fmt => sub { my $ip = shift;
length($ip) ? $ip : ' ';
},
+ align => 'right',
},
'acctstarttime' => {
name => 'Start time',
attrib => 'Acct-Start-Time',
fmt => $time_format,
},
'acctstarttime' => {
name => 'Start time',
attrib => 'Acct-Start-Time',
fmt => $time_format,
+ align => 'left',
},
'acctstoptime' => {
name => 'End time',
attrib => 'Acct-Stop-Time',
fmt => $time_format,
},
'acctstoptime' => {
name => 'End time',
attrib => 'Acct-Stop-Time',
fmt => $time_format,
+ align => 'left',
},
'acctsessiontime' => {
name => 'Duration',
attrib => 'Acct-Session-Time',
fmt => $duration_format,
},
'acctsessiontime' => {
name => 'Duration',
attrib => 'Acct-Session-Time',
fmt => $duration_format,
+ align => 'right',
},
'acctinputoctets' => {
name => 'Upload', # (from user)',
attrib => 'Acct-Input-Octets',
fmt => $octets_format,
},
'acctinputoctets' => {
name => 'Upload', # (from user)',
attrib => 'Acct-Input-Octets',
fmt => $octets_format,
+ align => 'right',
},
'acctoutputoctets' => {
name => 'Download', # (to user)',
attrib => 'Acct-Output-Octets',
fmt => $octets_format,
},
'acctoutputoctets' => {
name => 'Download', # (to user)',
attrib => 'Acct-Output-Octets',
fmt => $octets_format,
+ align => 'right',
},
;
$fields{$_}->{fmt} ||= sub { length($_[0]) ? shift : ' '; }
},
;
$fields{$_}->{fmt} ||= sub { length($_[0]) ? shift : ' '; }