无数据库的详细域名查询程序PHP版_php基础_脚本之家

文件一:index.php –>\n”; /*
#########################################################################################
##
#本域名询问系统由mydowns搜聚收拾汉化,汉化归把握时间网址有着(
#该程序是2004年5月四日发表的摩登版本,本站将对此程序继续开展改革完善,敬请关切本站!#
#该程序能够查询域名全部者的详细资料新闻,现提供9个品种的域名以供查询!#
#身体力行地址:
#源程序打包下载:
#握住时间网址提供PHP、ASP、CGI、HTML、JSP等源程序、电子教材、作品资料#
#把握时间网址
#请保留此新闻,感激!# ##
#########################################################################################
MWhois – a Whois lookup script written in PHP and Perl Copyright 2000
Matt Wilson This program is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of the
License, or any later version. This program is distributed in the hope
that it will be useful, but WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.See the GNU General Public License for more details. You should
have received a copy of the GNU General Public License along with this
program; if not, write to the Free Software Foundation, Inc., 59 Temple
Place, Suite 330, Boston, MA02111-1307USA */
if(!isset($use_global_templates)) $use_global_templates = 1;//
whether to use the global templates $template_header =
“gheader.tml”;// the global header template $template_footer =
“gfooter.tml”;// the global footer template /* Template information
stuff —————————- The following strings in your
templates are replaced with the description;
[>DOMAINRAWOUTPUTWHOIS_SERVERAVAIL_LISTUNAVAIL_LISTERROR_MSGEXTEXT_HTML_LISTEXT_LIST\n”;
$whois_server = $whois_servers[$ext]; } else { echo “\n”;
fputs($co, $domain.”.”.$ext.”\n”); while $output .= fgets;
$he = strpos($output, $whois_si_servers[$ext]) +
strlen($whois_si_servers[$ext]); $le = strpos($output, www.6766.com,”\n”,
$he); $whois_server = substr($output, $he, $le-$he); echo “\n”;
} } else { $whois_server = $whois_info_servers[$ext]; }
$whois_server = trim; } // make all the changes function make_changes
{ global $domain; global $errormsg; global $titlebar; global $rawoutput;
global $avail; global $unavail; global $ext; global $whois_exts; global
$whois_servers; global $script_name; $f = implode(“”,file; $f =
str_replace(“[>WHOIS_SERVERTITLE_BARDOMAINERROR_MSGRAWOUTPUT”.$avail[$l].”
“; } for($l=0; $l”.$unavail[$l].”
“; } $f =
str_replace(“[>AVAIL_LISTUNAVAIL_LISTSCRIPT_NAMEEXTEXT_LIST”,$whois_exts),$f);
$f =
str_replace(“[>EXT_HTML_LIST\n”.implode(“\n”,$whois_exts).”\n”,$f);
return $f; } // show the error page function do_error() { global
$use_global_templates; global $template_header; global
$template_footer; global $template_error; global $domain; global
$titlebar; global $error_title; global $errormsg; $titlebar =
$error_title; if($use_global_templates) echo make_changes; echo
make_changes; if($use_global_templates) echo make_changes; exit(); }
// checks the domain is legal function check_domain() { global
$errormsg; global $domain; global $ext; global $whois_exts; if{ if{
$errormsg = “未有采取域名后缀”; return 0; } if(!my_in_array{
$errormsg = “不扶持此域名后缀”; return 0; } } if{ if < 2 ||
strlen{ $errormsg = “域名太长或太短”; return 0; } if == 2 &&
!ereg{2}”,$domain)){ $errormsg =
“在2个字节的域名中无法包罗有字母”; return 0; }
if(ereg(“^-|-$”,$domain)){ $errormsg =
“域名前和域名后不可能应用-,也不得以连续不断使用-“; return 0; }
if(!ereg(“{“.strlen.”}”,$domain)){ $errormsg =
“域名只可以够包括字母数字组合和-“; return 0; } } return 1; } //
perform_whois function returns 0 if domain is available otherwise
returns either the raw info or 1 function
perform_whois($domainname,$ext,$raw) { global $errormsg; global
$whois_servers; global $rawoutput; global $whois_avail_strings;
$rawoutput = “”; if return do_raw; if(($ns =
fsockopen($whois_servers[$ext],43)) == false){ $errormsg =
“不能够连接到域名查询服务器 “.$whois_servers[$ext].”“;
return -1; } fputs($ns,”$domainname.$ext\n”); while $rawoutput .=
fgets; echo “\n”;
if(!ereg($whois_avail_strings[$whois_servers[$ext]], $rawoutput))
return 0; return 1; } // this performs the whois lookup and then shows
the data returned function do_raw { global $titlebar; global
$template_raw_output; global $use_global_templates; global
$template_header; global $template_footer; global $raw_output_title;
global $whois_info_servers; global $whois_servers; global $rawoutput;
global $errormsg; global $whois_info_servers_backup; global
$whois_avail_strings; global $whois_server; choose_info_server;
if(($ns = fsockopen == false){ if(($ns =
fsockopen($whois_info_servers[$ext],43)) == false){ if(($ns =
fsockopen($whois_info_servers_backup[$ext], 43)) == false){ return
-1; } else { $whois_server = $whois_info_servers_backup[$ext]; } }
else { $whois_server = $whois_info_servers[$ext]; } } print
“\n”; fputs($ns,无数据库的详细域名查询程序PHP版_php基础_脚本之家。”$domainname.$ext\n”); while $rawoutput =
$rawoutput.fgets; echo “”; //$pos =
@strpos($rawoutput,$whois_avail_strings[$server]); //if && !$pos){}
//else{ //if || $pos){ //if(($ns =
fsockopen($whois_info_servers_backup[$ext],43)) == false) //return
-1; //else{ //$rawoutput = “”;
//fputs($ns,”$domainname.$ext\n”); //while //$rawoutput =
$rawoutput.fgets; //$pos =
@strpos($rawoutput,$whois_avail_strings[$whois_info_servers_backup[$ext]]);
//if || $pos){} //else //return -1; //} //} $titlebar =
$raw_output_title; if($use_global_templates) echo make_changes;
echo make_changes; if($use_global_templates) echo make_changes;
exit(); } function do_getsearch_mini() { global
$template_search_mini; echo make_changes($template_search_mini);
exit(); } function do_getsearch() { global $template_footer; global
$template_header; global $use_global_templates; global $titlebar;
global $template_search; global $search_title; $titlebar =
$search_title; if($use_global_templates) echo make_changes; echo
make_changes; if($use_global_templates) echo make_changes; exit();}
function do_avail() { global $template_footer; global
$template_header; global $use_global_templates; global $titlebar;
global $template_available; global $available_title; $titlebar =
$available_title; if($use_global_templates) echo make_changes; echo
make_changes; if($use_global_templates) echo make_changes; exit(); }
function do_taken() { global $template_footer; global
$template_header; global $use_global_templates; global
$template_taken; global $titlebar; global $taken_title; $titlebar =
$taken_title; if($use_global_templates) echo make_changes; echo
make_changes; if($use_global_templates) echo make_changes; exit(); }
function do_exts() { global $template_footer; global
$template_header; global $use_global_templates; global
$template_exts_list; global $titlebar; global $exts_list_title;
$titlebar = $exts_list_title; if($use_global_templates) echo
make_changes; echo make_changes; if($use_global_templates) echo
make_changes; exit(); } function do_glob() { global $domain; global
$whois_exts; global $avail; global $unavail; global $template_header;
global $template_footer; global $use_global_templates; global
$titlebar; global $global_title; $titlebar = $global_title;
if($use_global_templates) echo make_changes; if{ global
$template_global; echo make_changes; } else{ global
$template_global_results; for($l=0; $l

发表评论

电子邮件地址不会被公开。 必填项已用*标注

网站地图xml地图