X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fsvc_acct.cgi;h=246a7fbc86e402e454234088136b62835d4e57a4;hp=6ca9bf0711d4132411b70ba7e1a2e025c02fb3e1;hb=ca1b5151cb9093fcb49de2ffd885754e1a5d5d48;hpb=3b0cb02522be27cea894150c3646ef03fef09e4b diff --git a/httemplate/view/svc_acct.cgi b/httemplate/view/svc_acct.cgi index 6ca9bf071..246a7fbc8 100755 --- a/httemplate/view/svc_acct.cgi +++ b/httemplate/view/svc_acct.cgi @@ -204,49 +204,80 @@ print "Access number". "". $svc_acct_pop->text. '' if $svc_acct_pop; -if ($svc_acct->uid ne '') { - print "Uid". - "". $svc_acct->uid. "", - "Gid". - "". $svc_acct->gid. "", - "GECOS". - "". $svc_acct->finger. "", - "Home directory". - "". $svc_acct->dir. "", - "Shell". - "". $svc_acct->shell. "", - "Quota". - "". $svc_acct->quota. "" - ; -} else { - print "(No shell account)"; -} +%> -if ($svc_acct->slipip) { - print "IP address". - ( ( $svc_acct->slipip eq "0.0.0.0" || $svc_acct->slipip eq '0e0' ) - ? "(Dynamic)" - : $svc_acct->slipip - ). ""; - my($attribute); - foreach $attribute ( grep /^radius_/, $svc_acct->fields ) { - #warn $attribute; - $attribute =~ /^radius_(.*)$/; - my $pattribute = $FS::raddb::attrib{$1}; - print "Radius (reply) $pattribute". - "". $svc_acct->getfield($attribute). - ""; - } - foreach $attribute ( grep /^rc_/, $svc_acct->fields ) { - #warn $attribute; - $attribute =~ /^rc_(.*)$/; - my $pattribute = $FS::raddb::attrib{$1}; - print "Radius (check) $pattribute: ". - "". $svc_acct->getfield($attribute). - ""; - } -} else { - print "(No SLIP/PPP account)"; +<% if ($svc_acct->uid ne '') { %> + + UID + <%= $svc_acct->uid %> + +<% } %> + +<% if ($svc_acct->gid ne '') { %> + + GID + <%= $svc_acct->gid %> + +<% } %> + +<% if ($svc_acct->finger ne '') { %> + + GECOS + <%= $svc_acct->finger %> + +<% } %> + +<% if ($svc_acct->dir ne '') { %> + + Home directory + <%= $svc_acct->dir %> + +<% } %> + +<% if ($svc_acct->shell ne '') { %> + + Shell + <%= $svc_acct->shell %> + +<% } %> + +<% if ($svc_acct->quota ne '') { %> + + Quota + <%= $svc_acct->quota %> + +<% } %> + +<% if ($svc_acct->slipip) { %> + + IP address + + <%= ( $svc_acct->slipip eq "0.0.0.0" || $svc_acct->slipip eq '0e0' ) + ? "(Dynamic)" + : $svc_acct->slipip + %> + + +<% } %> + +<% + +my($attribute); +foreach $attribute ( grep /^radius_/, $svc_acct->fields ) { + #warn $attribute; + $attribute =~ /^radius_(.*)$/; + my $pattribute = $FS::raddb::attrib{$1}; + print "Radius (reply) $pattribute". + "". $svc_acct->getfield($attribute). + ""; +} +foreach $attribute ( grep /^rc_/, $svc_acct->fields ) { + #warn $attribute; + $attribute =~ /^rc_(.*)$/; + my $pattribute = $FS::raddb::attrib{$1}; + print "Radius (check) $pattribute: ". + "". $svc_acct->getfield($attribute). + ""; } print 'RADIUS groups'.