Bestellen'); // Register link text define('STATUS_BAR_REGISTER_TEXT', '
Bestellen
'); // Status bar register message - when hovered over the "Register" link define('STATUS_BAR_DETAILS', 'Details'); // Status bar "Details of" - when hovered over "Details" link define('LINK_TAKEN_DETAILS', 'Details'); // "Details" text define('LINK_TAKEN_GOTO', 'Ga Naar'); // "Goto" text define('BUTTON_NEXT', 'Volgende >>'); // "Next" button - used with FORM/POST submitting. Used with PROCESSING_TYPE = "2" in "mrwhois_config.php" define('CLOSE_BUTTON_TEXT', 'Sluit window'); // "Close" button text in a details window define('AVAILABLE_TEXT', '
Registreer
'); // Text displayed if the domain is available define('NOT_AVAILABLE_TEXT', 'Bezet'); // Text displayed if the domain is not available define('CANONICAL_TEXT', '(canonical)'); // Displayed when domain name is a canonical name, but may still be available define('RESTRICTION_TEXT', 'If there are any restrictions at whois server, you may not be able to view any details about this domain.'); // ====================================================================================== // ERROR MESSAGES LANGUAGE SETTINGS // ====================================================================================== define('ERROR_TOO_SHORT', 'Domeinnaam te kort - Min 3'); // Error message if the domain name is too short define('ERROR_TOO_LONG', 'Domeinnaam te lang - Max 63'); // Error message if the domain name is too long define('ERROR_HYPHEN', 'Domain names cannot begin or end with a hyphen or contain double hyphens'); // Error message if the domain starts with hyphen or contains double hyphen define('ERROR_CHARACTERS', 'Domeinnamen mogen alleen cijfers en letters bevatten.'); // Error message if the domain contains other characters than letters, digits or hyphens // This is the message displayed when someone performs a search for 'all' tld's, including ".name". // There are different rules for .name domains, they have to include "." (a dot) within the name // while other domains must not include ".". Your visitor is warned to perform a separate search. define('NAME_WARNING', '.name tld has not been checked, please perform a separate search'); // and potential errors: define('ERROR_NAME_DOT', '.name tld must include . (a dot) in its name, eg. john.smith'); define('ERROR_NAME_LEN', 'A second part of .name tld (after dot) must be at least 3 characters long'); ?> <? echo PAGE_TITLE_META; ?> 38 ) { $what= substr($what,0,20)." ".substr($what,13,13)." ".substr($what,26,100); } else { if ( strlen($what) > 21 ) { $what= substr($what,0,21)." ".substr($what,21,100); } } echo ''.$what.''; if ($iscname=="1") echo 'a '.CANONICAL_TEXT; echo ' '; $denaam = str_replace(".nl","",$whatorg); echo ''.AVAILABLE_TEXT.''; # if (PROCESSING_TYPE=="2") // further processing using FORM/POST # { echo ''; } # else if (PROCESSING_TYPE=="3") // further processing using link/GET # { echo ''.LINK_REGISTER_TEXT.''; } # else // just affiliate link # { # if ($reglink!="" and REG_LINK) # { echo ''.LINK_REGISTER_TEXT.''; } # else if ($reglink=="" and REG_LINK) # { echo ''.LINK_REGISTER_TEXT.''; } # else # { echo ' '; } # } echo ''; } function dispun($what,$where) { if ( strlen($what) > 27 ) { $what= substr($what,0,13)." ".substr($what,13,13)." ".substr($what,26,100); } else { if ( strlen($what) > 21 ) { $what= substr($what,0,21)." ".substr($what,21,100); } } echo ' '.$what.' '.NOT_AVAILABLE_TEXT.' '; } function disperror($text) { echo '
'; echo '
'.$text.'
'; echo '
'; } if (WAIT_LAYER_ENABLED) { ?> hidelayer("waitlayer");'; if (DISPLAY_RESULT_FOOTER) include_once(FILE_NAME_FOOTER); exit; } if(TYPE!="name" and strlen(DDOMAIN) > 63) { disperror(ERROR_TOO_LONG); if (REPEAT_SEARCH_WINDOW) include_once(FILE_NAME); if (WAIT_LAYER_ENABLED) echo ''; if (DISPLAY_RESULT_FOOTER) include_once(FILE_NAME_FOOTER); exit; } if(TYPE!="name" and ereg("^-|-$",DDOMAIN)) { disperror(ERROR_HYPHEN); if (REPEAT_SEARCH_WINDOW) include_once(FILE_NAME); if (WAIT_LAYER_ENABLED) echo ''; if (DISPLAY_RESULT_FOOTER) include_once(FILE_NAME_FOOTER); exit; } if(TYPE!="name" and !ereg("([a-z]|[A-Z]|[0-9]|-){".strlen(DDOMAIN)."}",DDOMAIN)) { disperror(ERROR_CHARACTERS); if (REPEAT_SEARCH_WINDOW) include_once(FILE_NAME); if (WAIT_LAYER_ENABLED) echo ''; if (DISPLAY_RESULT_FOOTER) include_once(FILE_NAME_FOOTER); exit; } if(TYPE=="name") { if (!eregi("\.",DDOMAIN)) { disperror(ERROR_NAME_DOT); if (REPEAT_SEARCH_WINDOW) include_once(FILE_NAME); if (WAIT_LAYER_ENABLED) echo ''; if (DISPLAY_RESULT_FOOTER) include_once(FILE_NAME_FOOTER); exit; } else { list($leftpart, $rightpart) = explode(".",DDOMAIN); if (strlen($rightpart)<3) { disperror(ERROR_NAME_LEN); if (REPEAT_SEARCH_WINDOW) include_once(FILE_NAME); if (WAIT_LAYER_ENABLED) echo ''; if (DISPLAY_RESULT_FOOTER) include_once(FILE_NAME_FOOTER); exit; } } } if (PROCESSING_TYPE=="2") { echo '
'; echo ''; } echo '
'; $avno=0; if (USE_ENGINE=="1") { if (TYPE == 'all') { $fp = fopen(FILE_NAME_SERVERS,"r"); while (!feof ($fp)) { $data = fgets($fp, 4096); if (!eregi('##',$data)) { list($tld, $include, $server, $nomatch, $link) = explode("|",$data); if ($include=="1" and $tld!="name") { ## Domein zonder streepjes $ddomain = eregi_replace(" ","",DDOMAIN); $domname = $ddomain.".".$tld; $domname = str_replace("-","",$domname); if (USE_ESC) { $domname2 = escapeshellcmd ($domname)."."; } else { $domname2 = $domname."."; } if (checkdnsrr($domname2.".","ANY")==false) // check if there is a nameserver assigned to a domain { if(USE_EXTRACHECK) { $extrano = extracheck($domname,$server,$nomatch); if ($extrano=="1") { dispav($domname,$link,$ddomain,$tld,0); $avno=1; } else { dispun($domname,$server); } } else { dispav($domname,$link,$ddomain,$tld,0); $avno=1; } } else { if(USE_CNAMECHECK) { // check if the domain is a canonical name if (checkdnsrr($domname2.".","CNAME")==true) { dispav($domname,$link,$ddomain,$tld,1); $avno=1; } else { dispun($domname,$server); } } else { dispun($domname,$server); } } ## Domein zonder streepjes if (substr_count ($ddomain,"-") == 1) { list($voor, $achter) = explode("-", $ddomain); $ddomain = "$achter".""."$voor"; # $ddomain = eregi_replace(" ","",DDOMAIN); $domname = $ddomain.".".$tld; if (USE_ESC) { $domname2 = escapeshellcmd ($domname)."."; } else { $domname2 = $domname."."; } if (checkdnsrr($domname2.".","ANY")==false) // check if there is a nameserver assigned to a domain { if(USE_EXTRACHECK) { $extrano = extracheck($domname,$server,$nomatch); if ($extrano=="1") { dispav($domname,$link,$ddomain,$tld,0); $avno=1; } else { dispun($domname,$server); } } else { dispav($domname,$link,$ddomain,$tld,0); $avno=1; } } else { if(USE_CNAMECHECK) { // check if the domain is a canonical name if (checkdnsrr($domname2.".","CNAME")==true) { dispav($domname,$link,$ddomain,$tld,1); $avno=1; } else { dispun($domname,$server); } } else { dispun($domname,$server); } } } ## Domein met streepjes $ddomain = eregi_replace(" ","",DDOMAIN); if (strpos($ddomain,"-")>0) { $ddomain = eregi_replace(" ","",DDOMAIN); $domname = $ddomain.".".$tld; if (USE_ESC) { $domname2 = escapeshellcmd ($domname)."."; } else { $domname2 = $domname."."; } if (checkdnsrr($domname2.".","ANY")==false) // check if there is a nameserver assigned to a domain { if(USE_EXTRACHECK) { $extrano = extracheck($domname,$server,$nomatch); if ($extrano=="1") { dispav($domname,$link,$ddomain,$tld,0); $avno=1; } else { dispun($domname,$server); } } else { dispav($domname,$link,$ddomain,$tld,0); $avno=1; } } else { if(USE_CNAMECHECK) { // check if the domain is a canonical name if (checkdnsrr($domname2.".","CNAME")==true) { dispav($domname,$link,$ddomain,$tld,1); $avno=1; } else { dispun($domname,$server); } } else { dispun($domname,$server); } } } ## Domein met streepjes if (substr_count ($ddomain,"-") == 1) { list($voor, $achter) = explode("-", $ddomain); $ddomain = "$achter"."-"."$voor"; # $ddomain = eregi_replace(" ","",DDOMAIN); $domname = $ddomain.".".$tld; if (USE_ESC) { $domname2 = escapeshellcmd ($domname)."."; } else { $domname2 = $domname."."; } if (checkdnsrr($domname2.".","ANY")==false) // check if there is a nameserver assigned to a domain { if(USE_EXTRACHECK) { $extrano = extracheck($domname,$server,$nomatch); if ($extrano=="1") { dispav($domname,$link,$ddomain,$tld,0); $avno=1; } else { dispun($domname,$server); } } else { dispav($domname,$link,$ddomain,$tld,0); $avno=1; } } else { if(USE_CNAMECHECK) { // check if the domain is a canonical name if (checkdnsrr($domname2.".","CNAME")==true) { dispav($domname,$link,$ddomain,$tld,1); $avno=1; } else { dispun($domname,$server); } } else { dispun($domname,$server); } } } } else if ($include=="1" and $tld=="name") { echo ""; } } } fclose($fp); } else { $fp = fopen(FILE_NAME_SERVERS,"r"); while (!feof ($fp)) { $data = fgets($fp, 4096); if (!eregi('##',$data)) { list($tld, $include, $server, $nomatch, $link) = explode("|",$data); if ($tld==TYPE) { $ddomain = eregi_replace(" ","",DDOMAIN); $domname = $ddomain.".".$tld; if (USE_ESC) { $domname2 = escapeshellcmd ($domname)."."; } else { $domname2 = $domname."."; } if (checkdnsrr($domname2.".","ANY")==false) { if (USE_EXTRACHECK) { $extrano = extracheck($domname,$server,$nomatch); if ($extrano=="1") { dispav($domname,$link,$ddomain,$tld,0); $avno=1; } else { dispun($domname,$server); } } else { dispav($domname,$link,$ddomain,$tld,0); $avno=1; } } else { if (USE_CNAMECHECK) { // check if the domain is a canonical name if (checkdnsrr($domname2.".","CNAME")==true) { dispav($domname,$link,$ddomain,$tld,1); $avno=1; } else { dispun($domname,$server); } } else { dispun($domname,$server); } } } } } fclose($fp); } // using nslookup command } else if (USE_ENGINE=="2") { if (TYPE == 'all') { $fp = fopen(FILE_NAME_SERVERS,"r"); while (!feof ($fp)) { $data = fgets($fp, 4096); if (!eregi('##',$data)) { list($tld, $include, $server, $nomatch, $link) = explode("|",$data); if ($include=="1" and $tld!="name") { $ddomain = eregi_replace(" ","",DDOMAIN); $domname = $ddomain.".".$tld; if (USE_ESC) { $domname2 = escapeshellcmd ($domname); } else { $domname2 = $domname; } $result = ""; $outputstring = ""; $command2 = "nslookup -type=ns $domname2"; exec ($command2,$result); $outputno = count($result); for ($ino=0;$ino<=$outputno;$ino++) { $outputstring .= $result[$ino]; } if (!eregi("nameserver",$outputstring)) { if (USE_EXTRACHECK) { $extrano = extracheck($domname,$server,$nomatch); if ($extrano==1) { dispav($domname,$link,$ddomain,$tld,0); $avno=1; } else { dispun($domname,$server); } } else { dispav($domname,$link,$ddomain,$tld,0); $avno=1; } } else { if (USE_CNAMECHECK) { // check if the domain is a canonical name $command3 = "nslookup -type=cname $domname2"; exec ($command3,$result3); $outputno3 = count($result3); for ($ino3=0;$ino3<=$outputno3;$ino3++) { $outputstring3 .= $result3[$ino3]; } if (!eregi("canonical",$outputstring3)) { dispun($domname,$server); } else { dispav($domname,$link,$ddomain,$tld,1); $avno=1; } } else { dispun($domname,$server); } } } else if ($include=="1" and $tld=="name") { echo ""; } } } fclose($fp); } else { $fp = fopen(FILE_NAME_SERVERS,"r"); while (!feof ($fp)) { $data = fgets($fp, 4096); if (!eregi('##',$data)) { list($tld, $include, $server, $nomatch, $link) = explode("|",$data); if ($tld==TYPE) { $ddomain = eregi_replace(" ","",DDOMAIN); $domname = $ddomain.".".$tld; if (USE_ESC) { $domname2 = escapeshellcmd ($domname); } else { $domname2 = $domname; } $result = ""; $outputstring = ""; $command2 = "nslookup -type=ns $domname2"; exec ($command2,$result); $outputno = count($result); for ($ino=0;$ino<=$outputno;$ino++) { $outputstring .= $result[$ino]; } if (!eregi("nameserver",$outputstring)) { if (USE_EXTRACHECK) { $extrano = extracheck($domname,$server,$nomatch); if ($extrano==1) { dispav($domname,$link,$ddomain,$tld,0); $avno=1; } else { dispun($domname,$server); } } else { dispav($domname,$link,$ddomain,$tld,0); $avno=1; } } else { if (USE_CNAMECHECK) { // check if the domain is a canonical name $command3 = "nslookup -type=cname $domname2"; exec ($command3,$result3); $outputno3 = count($result3); for ($ino3=0;$ino3<=$outputno3;$ino3++) { $outputstring3 .= $result3[$ino3]; } if (!eregi("canonical",$outputstring3)) { dispun($domname,$server); } else { dispav($domname,$link,$ddomain,$tld,1); $avno=1; } } else { dispun($domname,$server); } } } } } fclose($fp); } } else { // using engine "3" - fsockopen() function - slowest but most reliable if (TYPE == 'all') { $fp = fopen(FILE_NAME_SERVERS,"r"); while (!feof ($fp)) { $data = fgets($fp, 4096); if (!eregi('##',$data)) { list($tld, $include, $server, $nomatch, $link) = explode("|",$data); if ($include=="1" and $tld!="name") { $ddomain = eregi_replace(" ","",DDOMAIN); $domname = $ddomain.".".$tld; $result = ""; $ns = fsockopen($server,43); fputs($ns,"$domname\r\n"); while(!feof($ns)) $result .= fgets($ns,128); fclose($ns); if (eregi($nomatch,$result)) { $avno=1; dispav($domname,$link,$ddomain,$tld,0); } else dispun($domname,$server); } else if ($include=="1" and $tld=="name") { echo ""; } } } fclose($fp); } else { $fp = fopen(FILE_NAME_SERVERS,"r"); while (!feof ($fp)) { $data = fgets($fp, 4096); if (!eregi('##',$data)) { list($tld, $include, $server, $nomatch, $link) = explode("|",$data); if ($tld==TYPE) { $ddomain = eregi_replace(" ","",DDOMAIN); $domname = $ddomain.".".$tld; $result = ""; $ns = fsockopen($server,43); fputs($ns,"$domname\r\n"); while(!feof($ns)) $result .= fgets($ns,128); fclose($ns); if (eregi($nomatch,$result)) { $avno=1; dispav($domname,$link,$ddomain,$tld,0); } else { dispun($domname,$server); } } } } fclose($fp); } } if (PROCESSING_TYPE=="2" and $avno==1) { echo ''; } echo '
Domein Status
".NAME_WARNING."
".NAME_WARNING."
".NAME_WARNING."
'; echo '
'; if (PROCESSING_TYPE=="2") { echo '
'; } if (WAIT_LAYER_ENABLED) { echo ''; } // if logging enabled write info to the file if(WANTLOG) { $remote_addr = $REMOTE_ADDR; $today = date("d-m-y H:i", time()); if (file_exists(FILE_NAME_LOG) and is_writeable(FILE_NAME_LOG)) { $fp = fopen(FILE_NAME_LOG,"a+"); $infolog = "Date: $today | IP: $remote_addr | ".DDOMAIN."\n"; fputs($fp, $infolog); fclose($fp); } } if (REPEAT_SEARCH_WINDOW) { include_once(FILE_NAME); } if (DISPLAY_RESULT_FOOTER) include_once(FILE_NAME_FOOTER); ?>