Показать сообщение отдельно
Старый 22.10.2008, 10:06   #16
AlexeySF вне форума
AlexeySF
Пользователь
 
Регистрация: 18.10.2008
Сообщения: 10
Репутация:10

9079138




По умолчанию Ответ: Еще вопросы новичков

Два варианта из двух разных скриптов для зон COM и NET, но функции работают одинакова.
Вариант 1:
if (($d_com != '') || ($d_all != '') ) showDomainResult($domainbase.".com",'whois.crsnic. net','No match for');
if (($d_net != '') || ($d_all != '') ) showDomainResult($domainbase.".net",'whois.crsnic. net','No match for');
if (($d_org != '') || ($d_all != '') ) showDomainResult($domainbase.".org",'whois.publici nterestregistry.net','NOT FOUND');
Вариант 2:
function maxWhois(){
$this->serverList[0]['top'] = 'com';
$this->serverList[0]['server'] = 'whois.crsnic.net';
$this->serverList[0]['response'] = 'No match for';
$this->serverList[0]['check'] = false;

$this->serverList[1]['top'] = 'net';
$this->serverList[1]['server'] = 'whois.crsnic.net';
$this->serverList[1]['response'] = 'No match for';
$this->serverList[1]['check'] = false;

$this->serverList[2]['top'] = 'org';
$this->serverList[2]['server'] = 'whois.publicinterestregistry.net';
$this->serverList[2]['response'] = 'NOT FOUND';
$this->serverList[2]['check'] = false;
(Для зоны CA) $this->serverList[7]['top'] = 'ca';
$this->serverList[7]['server'] = 'whois.cira.ca';
$this->serverList[7]['response'] = 'AVAIL';
$this->serverList[7]['check'] = false;
 
Ответить с цитированием