| <html> |
| <head><title>Check domain- Ronny's Blogu'</title><style type="text/css"> |
| img { |
| border: 0px; |
| } |
| #verificadomeniu { |
| background: #ffffff; |
| border: 1px solid #E8E8E8; |
| text-align: center; |
| margin: 0px auto; padding: 0px; |
| width: 50%; |
| height: 50%; |
| font-family: Verdana; |
| font-size: 15px;} |
| input { |
| border: 1px solid #E8E8E8; |
| } </style></head><center><a href="http://ronny.blog-u.net"><img src="logo.gif"></a></center><br /> |
| <div id="verificadomeniu"> |
| <form method="post" action="<?php echo htmlentities($_SERVER['PHP_SELF']);?>"><br /> <br /> |
| <p>How does it work? Enter the domain name and press the "Check" button!</p> |
| <input type="text" name="domeniu"><input type="submit" name="buton" value="Check"></form> |
| |
| <?php |
| $domeniu = file_get_contents('http://www.whois.net/whois_new.cgi?d='. $_POST['domeniu']); |
| if(isset($_POST['buton'])) { |
| if(eregi('no match found', $domeniu)) { |
| echo "<b>Domain free. Hurry up</b>"; |
| } else { |
| echo "<b>The domain is taken. Search for another</b>"; |
| } |
| } |
| |
| ?> |
| </div></body></html> |