#!/usr/bin/perl

 ##################################################################################
 #                                                                                #
 #                COPYRIGHT(C) COLIN TAM (AH PING)                                #
 #                EMAIL: ping@ping.com.hk                                         #
 #                HOMEPAGE: http://www.ping.com.hk                                #
 #                                                                                #
 #                THIS FILE WRITTEN ON 25/02/1999 AT 13:00 BY AH PING             #
 #                                                                                #
 ##################################################################################
require "cgi-lib.cgi";
&ReadParse(*input);

@months = ('1','2','3','4','5','6','7','8','9','10','11','12');
@days   = ('sun','1','2','3','4','5','6');
($sec,$min,$hour,$mday,$mon,$year,$wday) = (localtime(time))[0,1,2,3,4,5,6];
$time = sprintf("%02d:%02d:%02d",$hour,$min,$sec);
$year += 1900;
$date = "$days[$wday],$year$months[$mon]$mday($time)";

print "Content-type: text/html\n\n";

if ($input{'domain'} eq "Check")
{
&check;
}

print <<"DOMAIN";

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>域名查询</title>
<style type="text/css">
<!--
a:link {  text-decoration: none}
a:active {  text-decoration: none}
a:hover {  text-decoration: none; color: #FF0000; font-family: "Verdana", "Arial", "Helvetica", "sans-serif"; font-style: normal}
a:visited {  text-decoration: none}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>域名查询</title>
<style type="text/css">
<!--
a:link {  text-decoration: none}
a:active {  text-decoration: none}
a:hover {  text-decoration: none; color: #FF0000; font-family: "Verdana", "Arial", "Helvetica", "sans-serif"; font-style: normal}
a:visited {  text-decoration: none}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>域名查询</title>
<style type="text/css">
<!--
a:link {  text-decoration: none}
a:active {  text-decoration: none}
a:hover {  text-decoration: none; color: #FF0000; font-family: "Verdana", "Arial", "Helvetica", "sans-serif"; font-style: normal}
a:visited {  text-decoration: none}
-->
</style>
</head>

<body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" link="#FFFFFF" vlink="#FFFFFF">
<form method="GET" action="domain.pl">
  <input type="hidden" name="domain" value="Check"><table border="0" cellpadding="0"
  cellspacing="0" width="778" height="70">
    <tr>
      <td width="100%" bgcolor="#C60000"><div align="center"><center><table border="0" width="100%" marginwidth="0" marginheight="0" cellspacing="0" cellpadding="0" bgcolor="#CC0000" height="1">
  <tr>
    <td width="33%" height="1"><img border="0" src="../images/logo.gif" width="228" height="67"></td>
    <td width="34%" height="1"><img border="0" src="../images/Movie2.gif" width="450" height="67"></td>
    <td width="33%" height="38">
      <table border="0" width="100%" cellspacing="0" cellpadding="0">
        <tr>
          <td width="100%" align="center"><a href="http://www.newsbook.net/chi/"><img border="0" src="../images/logo4.gif" width="70" height="15"></a></td>
        </tr>
        <tr>
          <td width="100%" align="center"><a href="http://www.newsbook.net/gb/"><img border="0" src="../images/logo5.gif" width="70" height="16"></a></td>
        </tr>
        <tr>
          <td width="100%" align="center"><a href="../domain.pl"><img border="0" src="../images/logo6.gif" width="70" height="15"></a></td>
        </tr>
        <tr>
          <td width="100%" align="center"><a href="http://www.newsbook.de/"><img border="0" src="../images/logo7.gif" width="70" height="14"></a></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
      </center></div></td>
    </tr>
    <tr>
      <td width="100%"><div align="center"><center><table border="1" width="100%" bordercolor="#FF9900" cellspacing="0" cellpadding="0" bordercolorlight="#FF9900" bordercolordark="#FF9900" bgcolor="#8EC756" height="20">
  <tr>
    <td width="14%" align="center" height="18" valign="bottom"><font size="2" color="#FFFFFF"><a href="index.htm">公 司 简 介</a></font></td>     
    <td width="14%" align="center" height="18" valign="bottom"><font size="2" color="#FFFFFF"><a href="hosting.htm">网 页 储 存</a></font></td> 
    <td width="14%" align="center" height="18" valign="bottom"><font size="2" color="#FFFFFF"><a href="server_management.htm">服 务 器 管 理</a></font></td> 
    <td width="14%" align="center" height="18" valign="bottom"><font size="2" color="#FFFFFF"><a href="http://www.newsbook.net/tech" target="_blank">技 术 支 援</a></font></td> 
    <td width="14%" align="center" height="18" valign="bottom"><font size="2" color="#FFFFFF"><a href="news.htm">报 
      章 报 道</a></font></td> 
    <td width="15%" align="center" height="18" valign="bottom"><font size="2" color="#FFFFFF"><a href="order.htm">订 
      购 表 格</a></font></td> 
    <td width="15%" align="center" height="18" valign="bottom"><font size="2" color="#FFFFFF"><a href="other2.htm">其 
      他</a></font></td>
  </tr>
</table>
<p><p>
      </center></div></td>
    </tr>
    <tr align="center">
      <td width="100%"><div align="center"><center><table border="0" cellpadding="0"
      cellspacing="0" width="776" height="1">
                      <tr>
              <td width="158" valign="top" bgcolor="#ffffff"><div align="center"><center><table
              border="1" cellpadding="0" cellspacing="0" width="130" bgcolor="#FFFFFF"
              bordercolor="#ffffff">
                <tr>
                  <td width="119" bgcolor="#ffffff"><div align="center"><center><table border="0" width="144" cellspacing="0" cellpadding="0" height="192">
        <tr>
                <td width="6" height="23"></td>
                <td width="134" height="23" align="center"><a href="index.htm"><font color="#FF0080">公 
                  司 简 介</font></a></td>        
        </tr>
        <tr>
                <td width="6" height="23"></td>
                <td width="134" height="23" align="center"><a href="hosting.htm"><font color="#FF0080">网 
                  页 储 存</font></a></td>  
        </tr>
        <tr>
                <td width="6" height="23"></td>
                <td width="134" height="23" align="center"><a href="server_management.htm"><font color="#FF0080">服 
                  务 器 管 理</font></a></td>  
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24" align="center"><a href="../other.htm"><font color="#FF0080">其 
                  他 服 务</font></a></td>   
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24" align="center">域 名 查 询</td>   
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24" align="center"><a href="news.htm"><font color="#FF0080">报 
                  章 报 道</font></a></td>  
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24" align="center"><a href="partner.htm"><font color="#FF0080">合 
                  作 伙 伴</font></a></td>  
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24" align="center"><a href="customers.htm"><font color="#FF0080">顾 
                  客 简 介</font></a></td>  
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24" align="center"><a href="http://www.newsbook.net/tech" target="_blank"><font color="#FF0080">技 
                  术 支 援</font></a></td>  
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24" align="center"><a href="contact.htm"><font color="#FF0080">联 
                  络 我 们</font></a></td>  
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24" align="center"><a href="order.htm"><font color="#FF0080">订 
                  购 表 格</font></a></td>  
        </tr>
      </table>

                  </center></div></td>
                </tr>
              </center>
            <tr>
              <td width="158" valign="top"></td>
            </tr>
            <tr>
              <td width="158" valign="top"></td>
            </tr>
            <tr>
              <td width="158" valign="top"></td>
            </tr>
          </table>
          </center></div></td>
          <td width="884" height="1" valign="Top"><div align="center"><center><table border="0"
          cellpadding="0" cellspacing="0" width="100%">
            <tr>
              <td width="157"></td>
              <td width="443"></td>
            </tr>
            <tr>
              <td width="157"></td>
              <td width="443"></td>
            </tr>
            <tr>
              <td width="157"><font size="3">网址名称</font><font face="Verdana" size="3">:</font></td>
              <td width="443"><input name="intended_domain_name" size="15"><select name="type" size="1">
                <option value="com" selected>.com</option>
                <option value="net">.net</option>
                <option value="org">.org</option>
                <option value="com.hk">.com.hk</option>
                <option value="net.hk">.net.hk</option>
                <option value="org.hk">.org.hk</option>
                <option value="edu.hk">.edu.hk</option>
              </select></td>
            </tr>
            <tr>
              <td width="157"></td>
              <td width="443"><input type="submit" value="Check"></td>
            </tr>
            <tr>
              <td width="600" colspan="2"><div align="center"><center><table border="0" cellpadding="0"
              cellspacing="0" width="533">
                <tr>
                  <td width="533" bgcolor="#FFF7F7">......<p>　</p>
                  <p>　</td>
                </tr>
              </table>
              </center></div></td>
            </tr>
          </table>
          </center></div></td>
        </tr>
        <tr align="center">
          <td width="14" height="1" valign="top"></td>
          <td width="850" height="1"></td>
        </tr>
        <tr align="center">
          <td width="14" height="1" valign="top"></td>
          <td width="850" height="1"><table border="0" cellPadding="0" cellSpacing="0" height="32"
          width="503">
<TBODY>
            <tr>
              <td height="8" width="503"><table border="0" cellPadding="0" cellSpacing="0" width="503">
<TBODY>
                <tr>
                  <td colSpan="3" height="8" width="503"><p align="center"><font face="Verdana" size="1">&copy;1998-2020    
                    </font><font size="1"> 资讯网络有限公司</font></td>
                </tr>
                <tr>
                  <td colSpan="3" height="11" width="503"><p align="center"><font size="1">香港观塘鸿图道</font><font face="Verdana" size="1">37-39</font><font size="1">号鸿泰大厦</font><font face="Verdana" size="1">1</font><font size="1">楼</font><font face="Verdana" size="1">1</font><font size="1">室</font><font face="Verdana" size="1">(</font><font size="1">资讯网络集团物业</font><font face="Verdana" size="1">)</font></td>
                </tr>
                <tr>
                  <td width="4%"><font size="1">电话</font><font face="Verdana" size="1">:(852)27820197</font></td>
                  <td width="3%"><font size="1">传真</font><font face="Verdana" size="1">:(852)23799326</font></td>
                  <td width="3%"><font size="1">电邮</font><font face="Verdana" size="1">: <a    
                  href="mailto:info\@newsbook.net"><font color=#000000>info\@newsbook.net</font></a></font></td>
                </tr>
</TBODY>
              </table>
              </td>
            </tr>
</TBODY>
          </table>
          </td>
        </tr>
      </table>
          </div></td>
    </tr>
    <tr align="center">
      <td width="100%"></td>
    </tr>
  </table>
</form>
</body>
</html>

DOMAIN
exit;


sub check
{
$whois = "/usr/bin/jwhois";
$input{'intended_domain_name'} =~ s/\"/\&quot\;/g;
$input{'intended_domain_name'} =~ tr/A-Z/a-z/;
$input{'intended_domain_name'} =~ s/^www\.//;
$input{'intended_domain_name'} =~ s/,$//g;
$input{'intended_domain_name'} =~ s/\;//g;
$input{'intended_domain_name'} =~ s/,,+/,/g;
$input{'intended_domain_name'} =~ s/^,//g;
$input{'intended_domain_name'} =~ s/\.(net|org|com|com\.hk|org\.hk|net\.hk|edu\.hk)$//g;
$search = "$input{'intended_domain_name'}\.$input{'type'}";

$ishkdnr=0;

if ($input{'type'} eq "com")
{
$who = "$whois $search";
}
if ($input{'type'} eq "net")
{
$who = "$whois $search";
}
if ($input{'type'} eq "org")
{
$who = "$whois $search";
}
if ($input{'type'} eq "com\.hk")
{
$ishkdnr=1;
$who = "$whois $search\@whois.hkdnr.net.hk";
}
if ($input{'type'} eq "org\.hk")
{
$ishkdnr=1;
$who = "$whois $search\@whois.hkdnr.net.hk";
}
if ($input{'type'} eq "net\.hk")
{
$ishkdnr=1;
$who = "$whois $search\@whois.hkdnr.net.hk";
}
if ($input{'type'} eq "edu\.hk")
{
$ishkdnr=1;
$who = "$whois $search\@whois.hkdnr.net.hk";
}

if ($ENV{'REMOTE_USER'} != 0) { 
$newREMOTE_USER = $ENV{'REMOTE_USER'};
} else { 
$newREMOTE_USER = "Turned Off"; 
}
if ($search =~ /@/i) {
	$searched = "mailto:$search";
} else {
	$searched = "http://www.$search";
}
if (defined($input{'domain'})) {
    if ($search =~ /^([-\@\w.]+)$/) {
        $search = $1;
        $result = `$who`;

}
}
if ($input{'intended_domain_name'} eq "")
{
$error = "必须填写你想查询的域名(例如: newsbook).";
&back;
}

sub back
{
if ($input{'type'} eq "com") { $select01=" selected"; }
if ($input{'type'} eq "com\.hk") { $select02=" selected"; }
if ($input{'type'} eq "net") { $select03=" selected"; }
if ($input{'type'} eq "net\.hk") { $select04=" selected"; }
if ($input{'type'} eq "org") { $select05=" selected"; }
if ($input{'type'} eq "org\.hk") { $select06=" selected"; }
if ($input{'type'} eq "edu\.hk") { $selectedu=" selected"; }
print <<"DD";

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>域名查询</title>
<style type="text/css">
<!--
a:link {  text-decoration: none}
a:active {  text-decoration: none}
a:hover {  text-decoration: none; color: #FF0000; font-family: "Verdana", "Arial", "Helvetica", "sans-serif"; font-style: normal}
a:visited {  text-decoration: none}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>域名查询</title>
<style type="text/css">
<!--
a:link {  text-decoration: none}
a:active {  text-decoration: none}
a:hover {  text-decoration: none; color: #FF0000; font-family: "Verdana", "Arial", "Helvetica", "sans-serif"; font-style: normal}
a:visited {  text-decoration: none}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>域名查询</title>
<style type="text/css">
<!--
a:link {  text-decoration: none}
a:active {  text-decoration: none}
a:hover {  text-decoration: none; color: #FF0000; font-family: "Verdana", "Arial", "Helvetica", "sans-serif"; font-style: normal}
a:visited {  text-decoration: none}
-->
</style>
</head>

<body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" link="#FFFFFF" vlink="#FFFFFF">
<form method="GET" action="domain.pl">
  <input type="hidden" name="domain" value="Check"><table border="0" cellpadding="0"
  cellspacing="0" width="778" height="70">
    <tr>
      <td width="100%" bgcolor="#C60000"><div align="center"><center><table border="0" width="100%" marginwidth="0" marginheight="0" cellspacing="0" cellpadding="0" bgcolor="#CC0000" height="1">
  <tr>
    <td width="33%" height="1"><img border="0" src="../images/logo.gif" width="228" height="67"></td>
    <td width="34%" height="1"><img border="0" src="../images/Movie2.gif" width="450" height="67"></td>
    <td width="33%" height="38">
      <table border="0" width="100%" cellspacing="0" cellpadding="0">
        <tr>
          <td width="100%" align="center"><a href="http://www.newsbook.net/chi/"><img border="0" src="../images/logo4.gif" width="70" height="15"></a></td>
        </tr>
        <tr>
          <td width="100%" align="center"><a href="http://www.newsbook.net/gb/"><img border="0" src="../images/logo5.gif" width="70" height="16"></a></td>
        </tr>
        <tr>
          <td width="100%" align="center"><a href="../domain.pl"><img border="0" src="../images/logo6.gif" width="70" height="15"></a></td>
        </tr>
        <tr>
          <td width="100%" align="center"><a href="http://www.newsbook.de/"><img border="0" src="../images/logo7.gif" width="70" height="14"></a></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
      </center></div></td>
    </tr>
    <tr>
      <td width="100%"><div align="center"><center><table border="1" width="100%" bordercolor="#FF9900" cellspacing="0" cellpadding="0" bordercolorlight="#FF9900" bordercolordark="#FF9900" bgcolor="#8EC756" height="20">
  <tr>
    <td width="14%" align="center" height="18" valign="bottom"><font size="2" color="#FFFFFF"><a href="index.htm">公   
      司 简 介</a></font></td>   
    <td width="14%" align="center" height="18" valign="bottom"><font size="2" color="#FFFFFF"><a href="hosting.htm">网 页 储 存</a></font></td> 
    <td width="14%" align="center" height="18" valign="bottom"><font size="2" color="#FFFFFF"><a href="server_management.htm">服 务 器 管 理</a></font></td> 
    <td width="14%" align="center" height="18" valign="bottom"><font size="2" color="#FFFFFF"><a href="http://www.newsbook.net/tech" target="_blank">技 术 支 援</a></font></td> 
    <td width="14%" align="center" height="18" valign="bottom"><font size="2" color="#FFFFFF"><a href="news.htm">报 
      章 报 道</a></font></td> 
    <td width="15%" align="center" height="18" valign="bottom"><font size="2" color="#FFFFFF"><a href="order.htm">订 
      购 表 格</a></font></td> 
    <td width="15%" align="center" height="18" valign="bottom"><font size="2" color="#FFFFFF"><a href="other2.htm">其 
      他</a></font></td>
  </tr>
</table>
<p><p>
      </center></div></td>
    </tr>
    <tr align="center">
      <td width="100%"><div align="center"><center><table border="0" cellpadding="0"
      cellspacing="0" width="776" height="1">
                      <tr>
              <td width="158" valign="top" bgcolor="#ffffff"><div align="center"><center><table
              border="1" cellpadding="0" cellspacing="0" width="130" bgcolor="#FFFFFF"
              bordercolor="#ffffff">
                <tr>
                  <td width="119" bgcolor="#ffffff"><div align="center"><center><table border="0" width="144" cellspacing="0" cellpadding="0" height="192">
        <tr>
                <td width="6" height="23"></td>
                <td width="134" height="23" align="center"><a href="index.htm"><font color="#FF0080">公 
                  司 简 介</font></a></td>        
        </tr>
        <tr>
                <td width="6" height="23"></td>
                <td width="134" height="23" align="center"><a href="hosting.htm"><font color="#FF0080">网 
                  页 储 存</font></a></td>  
        </tr>
        <tr>
                <td width="6" height="23"></td>
                <td width="134" height="23" align="center"><a href="server_management.htm"><font color="#FF0080">服 
                  务 器 管 理</font></a></td>  
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24" align="center"><a href="../other.htm"><font color="#FF0080">其 
                  他 服 务</font></a></td>   
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24" align="center">域 名 查 询</td>    
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24" align="center"><a href="news.htm"><font color="#FF0080">报 
                  章 报 道</font></a></td>  
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24" align="center"><a href="partner.htm"><font color="#FF0080">合 
                  作 伙 伴</font></a></td>  
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24" align="center"><a href="customers.htm"><font color="#FF0080">顾 
                  客 简 介</font></a></td>  
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24" align="center"><a href="http://www.newsbook.net/tech" target="_blank"><font color="#FF0080">技 
                  术 支 援</font></a></td>  
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24" align="center"><a href="contact.htm"><font color="#FF0080">联 
                  络 我 们</font></a></td>  
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24" align="center"><a href="order.htm"><font color="#FF0080">订 
                  购 表 格</font></a></td>  
        </tr>
      </table>

                  </center></div></td>
                </tr>
              </center>
            <tr>
              <td width="158" valign="top"></td>
            </tr>
            <tr>
              <td width="158" valign="top"></td>
            </tr>
            <tr>
              <td width="158" valign="top"></td>
            </tr>
          </table>
          </center></div></td>
          <td width="884" height="1" valign="Top"><div align="center"><center><table border="0"
          cellpadding="0" cellspacing="0" width="100%">
            <tr>
              <td width="157"></td>
              <td width="443"></td>
            </tr>
            <tr>
              <td width="157"></td>
              <td width="443"></td>
            </tr>
            <tr>
              <td width="157"><font size="3">网址名称</font><font face="Verdana" size="3">:</font></td>
              <td width="443"><input name="intended_domain_name" size="15" value="$input{'intended_domain_name'}"><select name="type" size="1">
                <option value="com" $select01>.com</option>
                <option value="net" $select03>.net</option>
                <option value="org" $select05>.org</option>
                <option value="com.hk" $select02>.com.hk</option>
                <option value="net.hk" $select04>.net.hk</option>
                <option value="org.hk" $select06>.org.hk</option>
                <option value="edu.hk" $selectedu>.edu.hk</option>
              </select></td>
            </tr>
            <tr>
              <td width="157"></td>
              <td width="443"><input type="submit" value="Check"></td>
            </tr>
            <tr>
              <td width="600" colspan="2"><div align="center"><center><table border="0" cellpadding="0"
              cellspacing="0" width="533">
                <tr>
                  <td width="533" bgcolor="#FFF7F7">......$error<p>　</p>
                  <p>　</td>
                </tr>
              </table>
              </center></div></td>
            </tr>
          </table>
          </center></div></td>
        </tr>
        <tr align="center">
          <td width="14" height="1" valign="top"></td>
          <td width="884" height="1"></td>
        </tr>
        <tr align="center">
          <td width="14" height="1" valign="top"></td>
          <td width="884" height="1"><table border="0" cellPadding="0" cellSpacing="0" height="32"
          width="503">
<TBODY>
            <tr>
              <td height="8" width="503"><table border="0" cellPadding="0" cellSpacing="0" width="503">
<TBODY>
                <tr>
                  <td colSpan="3" height="8" width="503"><p align="center"><font size="1">&copy;1998-2020 资讯网络有限公司    
                    </font></td>
                </tr>
                <tr>
                  <td colSpan="3" height="11" width="503"><p align="center"><font size="1">香港观塘鸿图道37-39号鸿泰大厦1楼1室(资讯网络集团物业)</font></td>
                </tr>
                <tr>
                  <td width="30%"><font size="1">电话</font><font face="Verdana" size="1">:(852)27820197</font></td>
                  <td width="30%"><font size="1">传真</font><font face="Verdana" size="1">:(852)23799326</font></td>
                  <td width="30%"><font size="1">电邮</font><font face="Verdana" size="1">: <a    
                  href="mailto:info\@newsbook.net"><font color=#000000>info\@newsbook.net</font></a></font></td>
                </tr>
</TBODY>
              </table>
              </td>
            </tr>
</TBODY>
          </table>
          </td>
        </tr>
      </table>
          </div></td>
    </tr>
    <tr align="center">
      <td width="100%"></td>
    </tr>
  </table>
</form>
</body>
</html>


DD
exit;
}

if($ishkdnr==0)
{
$av = "<b>$input{'intended_domain_name'}\.$input{'type'}</b> 已被申请.";
$result =~ s/\[[^>]+\]{1}//g;
foreach ($result)
{
if ($_ =~ /No match for/i)
{
$av = "<b>$input{'intended_domain_name'}\.$input{'type'}</b> 可接受申请.";
}
if ($_ =~ /\% Your search returns no relevent records/i)
{
$av = "<b>$input{'intended_domain_name'}\.$input{'type'}</b> 可接受申请.";
}
}
}

if($ishkdnr==1)
{
$av = "<b>$input{'intended_domain_name'}\.$input{'type'}</b> 已被申请.";
$result =~ s/\[[^>]+\]{1}//g;
foreach ($result)
{
if ($_ =~ /The domain has not been registered/i)
{
$av = "<b>$input{'intended_domain_name'}\.$input{'type'}</b> 可接受申请.";
}
if ($_ =~ /\% Your search returns no relevent records/i)
{
$av = "<b>$input{'intended_domain_name'}\.$input{'type'}</b> 可接受申请.";
}
}
}

if ($input{'type'} eq "com") { $select01=" selected"; }
if ($input{'type'} eq "com\.hk") { $select02=" selected"; }
if ($input{'type'} eq "net") { $select03=" selected"; }
if ($input{'type'} eq "net\.hk") { $select04=" selected"; }
if ($input{'type'} eq "org") { $select05=" selected"; }
if ($input{'type'} eq "org\.hk") { $select06=" selected"; }
if ($input{'type'} eq "edu\.hk") { $selectedu=" selected"; }

print <<"DDD";

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>域名查询</title>
<style type="text/css">
<!--
a:link {  text-decoration: none}
a:active {  text-decoration: none}
a:hover {  text-decoration: none; color: #FF0000; font-family: "Verdana", "Arial", "Helvetica", "sans-serif"; font-style: normal}
a:visited {  text-decoration: none}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>域名查询</title>
<style type="text/css">
<!--
a:link {  text-decoration: none}
a:active {  text-decoration: none}
a:hover {  text-decoration: none; color: #FF0000; font-family: "Verdana", "Arial", "Helvetica", "sans-serif"; font-style: normal}
a:visited {  text-decoration: none}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>域名查询</title>
<style type="text/css">
<!--
a:link {  text-decoration: none}
a:active {  text-decoration: none}
a:hover {  text-decoration: none; color: #FF0000; font-family: "Verdana", "Arial", "Helvetica", "sans-serif"; font-style: normal}
a:visited {  text-decoration: none}
-->
</style>
</head>

<body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" link="#FFFFFF" vlink="#FFFFFF">


<form method="GET" action="domain.pl">
  <input type="hidden" name="domain" value="Check"><table border="0" cellpadding="0"
  cellspacing="0" width="778" height="70">
    <tr>
      <td width="100%" bgcolor="#C60000"><div align="center"><center><table border="0" width="100%" marginwidth="0" marginheight="0" cellspacing="0" cellpadding="0" bgcolor="#CC0000" height="1">
  <tr>
    <td width="33%" height="1"><img border="0" src="../images/logo.gif" width="228" height="67"></td>
    <td width="34%" height="1"><img border="0" src="../images/Movie2.gif" width="450" height="67"></td>
    <td width="33%" height="38">
      <table border="0" width="100%" cellspacing="0" cellpadding="0">
        <tr>
          <td width="100%" align="center"><a href="http://www.newsbook.net/chi/"><img border="0" src="../images/logo4.gif" width="70" height="15"></a></td>
        </tr>
        <tr>
          <td width="100%" align="center"><a href="http://www.newsbook.net/gb/"><img border="0" src="../images/logo5.gif" width="70" height="16"></a></td>
        </tr>
        <tr>
          <td width="100%" align="center"><a href="../domain.pl"><img border="0" src="../images/logo6.gif" width="70" height="15"></a></td>
        </tr>
        <tr>
          <td width="100%" align="center"><a href="http://www.newsbook.de/"><img border="0" src="../images/logo7.gif" width="70" height="14"></a></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
      </center></div></td>
    </tr>
    <tr>
      <td width="100%"><div align="center"><center><table border="1" width="100%" bordercolor="#FF9900" cellspacing="0" cellpadding="0" bordercolorlight="#FF9900" bordercolordark="#FF9900" bgcolor="#8EC756" height="20">
  <tr>
    <td width="14%" align="center" height="18" valign="bottom"><font size="2" color="#FFFFFF"><a href="index.htm">公   
      司 简 介</a></font></td>    
    <td width="14%" align="center" height="18" valign="bottom"><font size="2" color="#FFFFFF"><a href="hosting.htm">网 页 储 存</a></font></td> 
    <td width="14%" align="center" height="18" valign="bottom"><font size="2" color="#FFFFFF"><a href="server_management.htm">服 务 器 管 理</a></font></td> 
    <td width="14%" align="center" height="18" valign="bottom"><font size="2" color="#FFFFFF"><a href="http://www.newsbook.net/tech" target="_blank">技 术 支 援</a></font></td> 
    <td width="14%" align="center" height="18" valign="bottom"><font size="2" color="#FFFFFF"><a href="news.htm">报 
      章 报 道</a></font></td> 
    <td width="15%" align="center" height="18" valign="bottom"><font size="2" color="#FFFFFF"><a href="order.htm">订 
      购 表 格</a></font></td> 
    <td width="15%" align="center" height="18" valign="bottom"><font size="2" color="#FFFFFF"><a href="other2.htm">其 
      他</a></font></td>
  </tr>
</table>
<p><p>
      </center></div></td>
    </tr>
    <tr align="center">
      <td width="100%"><div align="center"><center><table border="0" cellpadding="0"
      cellspacing="0" width="776" height="1">
                      <tr>
              <td width="158" valign="top" bgcolor="#ffffff"><div align="center"><center><table
              border="1" cellpadding="0" cellspacing="0" width="130" bgcolor="#FFFFFF"
              bordercolor="#ffffff">
                <tr>
                  <td width="119" bgcolor="#ffffff"><div align="center"><center><table border="0" width="144" cellspacing="0" cellpadding="0" height="192">
        <tr>
                <td width="6" height="23"></td>
                <td width="134" height="23" align="center"><a href="index.htm"><font color="#FF0080">公 
                  司 简 介</font></a></td>        
        </tr>
        <tr>
                <td width="6" height="23"></td>
                <td width="134" height="23" align="center"><a href="hosting.htm"><font color="#FF0080">网 
                  页 储 存</font></a></td>  
        </tr>
        <tr>
                <td width="6" height="23"></td>
                <td width="134" height="23" align="center"><a href="server_management.htm"><font color="#FF0080">服 
                  务 器 管 理</font></a></td>  
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24" align="center"><a href="../other.htm"><font color="#FF0080">其 
                  他 服 务</font></a></td>   
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24" align="center">域 名 查 询</td>    
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24" align="center"><a href="news.htm"><font color="#FF0080">报 
                  章 报 道</font></a></td>  
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24" align="center"><a href="partner.htm"><font color="#FF0080">合 
                  作 伙 伴</font></a></td>  
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24" align="center"><a href="customers.htm"><font color="#FF0080">顾 
                  客 简 介</font></a></td>  
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24" align="center"><a href="http://www.newsbook.net/tech" target="_blank"><font color="#FF0080">技 
                  术 支 援</font></a></td>  
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24" align="center"><a href="contact.htm"><font color="#FF0080">联 
                  络 我 们</font></a></td>  
        </tr>
        <tr>
                <td width="6" height="24"></td>
                <td width="134" height="24" align="center"><a href="order.htm"><font color="#FF0080">订 
                  购 表 格</font></a></td>  
        </tr>
      </table>

                  </center></div></td>
                </tr>
              </center>
            <tr>
              <td width="158" valign="top"></td>
            </tr>
            <tr>
              <td width="158" valign="top"></td>
            </tr>
            <tr>
              <td width="158" valign="top"></td>
            </tr>
          </table>
          </center></div></td>
          <td width="884" height="1" valign="Top"><div align="center"><center><table border="0"
          cellpadding="0" cellspacing="0" width="100%">
            <tr>
              <td width="157"></td>
              <td width="443"></td>
            </tr>
            <tr>
              <td width="157"></td>
              <td width="443"></td>
            </tr>
            <tr>
              <td width="157"><font size="3">网址名称</font><font face="Verdana" size="3">:</font></td>
              <td width="443"><input name="intended_domain_name" size="15"><select name="type" size="1">
                <option value="com" $select01>.com</option>
                <option value="net" $select03>.net</option>
                <option value="org" $select05>.org</option>
                <option value="com.hk" $select02>.com.hk</option>
                <option value="net.hk" $select04>.net.hk</option>
                <option value="org.hk" $select06>.org.hk</option>
                <option value="edu.hk" $selectedu>.edu.hk</option>
              </select></td>
            </tr>
            <tr>
              <td width="157"></td>
              <td width="443"><input type="submit" value="Check"></td>
            </tr>
            <tr>
              <td width="600" colspan="2"><blockquote>
                <p><font face="Verdana" color="#FF0080"><big><big>$av</big></big></font></p>
              </blockquote>
              </td>
            </tr>
            <tr>
              <td width="600" colspan="2"><div align="center"><center>
               
              </center></div></td>
            </tr>
          </table>
          </center></div></td>
        </tr>
        <tr align="center">
          <td width="14" height="1" valign="top"></td>
          <td width="884" height="1"></td>
        </tr>
        <tr align="center">
          <td width="14" height="1" valign="top"></td>
          <td width="884" height="1"><table border="0" cellPadding="0" cellSpacing="0" height="32"
          width="503">
<TBODY>
            <tr>
              <td height="8" width="503"><table border="0" cellPadding="0" cellSpacing="0" width="503">
<TBODY>
                <tr>
                  <td colSpan="3" height="8" width="503"><p align="center"><span style="letter-spacing: 2pt">&copy;1998-2020<font size="2">资讯网络有限公司</font></span></td>
                </tr>
                <tr>
                  <td colSpan="3" height="11" width="503"><p align="center"><font size="1">香港观塘鸿图道37-39号鸿泰大厦1楼1室(资讯网络集团物业)</font></td>
                </tr>
                <tr>
                  <td width="30%"><font size="1">电话</font><font face="Verdana" size="1">:(852)27820197</font></td>
                  <td width="30%"><font size="1">传真</font><font face="Verdana" size="1">:(852)23799326</font></td>
                  <td width="30%"><font size="1">电邮</font><font face="Verdana" size="1">: <a   
                  href="mailto:info\@newsbook.net"><font color=#000000>info\@newsbook.net</font></a></font></td>
                </tr>
</TBODY>
              </table>
              </td>
            </tr>
</TBODY>
          </table>
          </td>
        </tr>
      </table>
          </div></td>
    </tr>
    <tr align="center">
      <td width="100%"></td>
    </tr>
  </table>
</form>

</body>
</html>



DDD
exit;
}
