freeside/httemplate/misc whois.cgi,NONE,1.1.2.1

ivan ivan at pouncequick.420.am
Mon Apr 5 02:09:18 PDT 2004


Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory pouncequick:/tmp/cvs-serv28521/httemplate/misc

Added Files:
      Tag: FREESIDE_1_4_BRANCH
	whois.cgi 
Log Message:
add whois functionality internally instead of linking to geektools

--- NEW FILE: whois.cgi ---
<%
  my $svcnum = $cgi->param('svcnum');
  my $custnum = $cgi->param('custnum');
  my $domain = $cgi->param('domain');

%>
<%= header("Whois $domain", menubar(
  ( $custnum
    ? ( "View this customer (#$custnum)" => "${p}view/cust_main.cgi?$custnum",
      )
    : ()
  ),
  "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+//;
   }
%>
<PRE><%= $whois %></PRE>
</BODY>
</HTML>




More information about the freeside-commits mailing list