From 97e6cec67c0c99ce1b6f0667a09f1e009100189d Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 13 Jan 2008 21:14:32 +0000 Subject: ACLs --- httemplate/misc/whois.cgi | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'httemplate/misc/whois.cgi') diff --git a/httemplate/misc/whois.cgi b/httemplate/misc/whois.cgi index d3d9649fd..35d0eccc9 100644 --- a/httemplate/misc/whois.cgi +++ b/httemplate/misc/whois.cgi @@ -1,10 +1,3 @@ -% -% my $svcnum = $cgi->param('svcnum'); -% my $custnum = $cgi->param('custnum'); -% my $domain = $cgi->param('domain'); -% -% - <% include("/elements/header.html","Whois $domain", menubar( ( $custnum ? ( "View this customer (#$custnum)" => "${p}view/cust_main.cgi?$custnum", @@ -12,16 +5,23 @@ : () ), "View this domain (#$svcnum)" => "${p}view/svc_domain.cgi?$svcnum", - "Main menu" => $p, )) %> -% my $whois = eval { whois($domain) }; -% if ( $@ ) { -% ( $whois = $@ ) =~ s/ at \/.*Net\/Whois\/Raw\.pm line \d+.*$//s; -% } else { -% $whois =~ s/^\n+//; -% } -%
<% $whois %>
- - + +<% include('/elements/footer.html') %> + +<%init> + +my $svcnum = $cgi->param('svcnum'); +my $custnum = $cgi->param('custnum'); +my $domain = $cgi->param('domain'); + +my $whois = eval { whois($domain) }; + if ( $@ ) { + ( $whois = $@ ) =~ s/ at \/.*Net\/Whois\/Raw\.pm line \d+.*$//s; + } else { + $whois =~ s/^\n+//; + } + + -- cgit v1.2.1