Yandex.Metrica HOSTİNG VE DOMAIN TESCİL

KULLANICI OLUŞTUR

*

*

*

*

*

*

Şifre Hatırlat?

*

İLETİŞİM FORMU (5)

$header_path = "header.php"; $footer_path = "footer.php"; # END SETTING VARIABLES ################# $title = "Domain Search - Search for available and expired domains"; include_once($header_path); if(isset($_REQUEST['keyword'])) { $keyword = htmlspecialchars($_REQUEST['keyword']); } $server_definitions = array( "com" => array("whois.crsnic.net","No match for"), "net" => array("whois.crsnic.net","No match for"), "org" => array("whois.pir.org","NOT FOUND"), ); function printForm() { global $keyword; $action = $_SERVER["PHP_SELF"]; print <<

Keyword

ENDHTM; } function check_keyword($keyword) { global $footer_path; if(strlen($keyword) < 2) { print "

ERROR The keyword \"$keyword\" is too short.

\n"; exit(include_once($footer_path)); } if(strlen($keyword) > 63) { print("

ERROR The keyword is too long. Max 63 characters. You have ".strlen($keyword)." characters.

\n"); exit(include_once($footer_path)); } if(!preg_match("/^[a-zA-Z0-9\-]+$/",$keyword)) { print "

ERROR Keyword cannot contain special characters.

\n"; exit(include_once($footer_path)); } if(preg_match("/^-|-$/", $keyword)) { print "

ERROR Keywords cannot begin or end with a hyphen.

\n"; exit(include_once($footer_path)); } } function check_domain($keyword,$ext) { global $nomatch,$server,$footer_path; $response = ""; if(($sc = @fsockopen($server,43)) ==false) { printForm(); print "

ERROR Could not connect to the whois server at: $server

\n"; exit(include_once($footer_path)); } if($ext == "uk") { fputs($sc,"$keyword.co.$ext\r\n"); } else { fputs($sc,"$keyword.$ext\n"); } while(!feof($sc)) { $response .= fgets($sc,128); } fclose($sc); $display = $ext; if($display == "uk") { $display = "co.uk"; } if(preg_match("/$nomatch/", $response)) { print "

Available $keyword.$display

\n"; } else { print "

Registered http://$keyword.$display

\n"; } } if(isset($keyword)) { printForm(); check_keyword($keyword); } else { printForm(); exit(include_once($footer_path)); } foreach($server_definitions as $key => $value) { $ext = $key; $server = $server_definitions[$ext][0]; $nomatch = $server_definitions[$ext][1]; check_domain($keyword,$ext); } include_once($footer_path);

TOP DMCA.com Protection Status