Location: PHPKode > projects > OpenDomains > whois.php
<?
// Security
	  define("opendomains", true);
	  session_start();
// include
	  include('include/config.php');
      include('include/function.php');
      include('include/mysql.php');	  
	  include("lang/".$config[lang]."/register.php");	  
// security
if(!$_SERVER['HTTP_REFERER']) {
	header("location: http://opendomains.vnn.bz");
}
function no($text) {
	echo "<script language='Javascript'>
			alert(\"".$text."\");
			</script>";
}

?>
<script language="JavaScript"><!--
if (parent == self)
    top.location.href = 'http://opendomains.vnn.bz';
	
function set(div,html) {
	eval("var dv = top.document.getElementById('" + div + "');");
	eval("dv.innerHTML = html;");	
}		
//--></script>
<?
	$domain=$_POST['txt1'];
	$exe=$_POST['txt2'];	
	if((!ereg("^[a-zA-Z0-9\-]+$",$domain))||(!ereg("^[a-zA-Z0-9\-\.]+$",$domain))||(strlen($domain)<4)) {
			die("<script language='Javascript'>
			var p = top.document.getElementById('dv');
			p.style.visibility='hidden';
			top.document.frm.txt1.value='';
			top.document.frm.txt2.value='';	
			top.document.frm.txtreg.value='';			
			alert('".$lang["please_check_your_account"]."');
					
			</script>");
	}
	
	$reg=checkdomain($domain,$exe);

	if($reg==false) {
		no($lang["whois_not"]);
		stopme();
	}	
	 else {
	 	no($lang["whois_show"]);
		$query=mysql_query("select * from `cl_domains` where wdomain='$domain' and wexe='$exe'");
		$ht=mysql_fetch_array($query);
		$html="<b>Whois:</b><br>";
		$html.="Domain Name: $domain.$exe <br>	Title: $ht[wtitle] <br>		Keywords: $ht[wkey] <br>		Description: $ht[wdes] <br>----------------------<br>				Favicon URL: $ht[wfav] <br>		Target URL: $ht[wurl] <br>		E-Mail: $ht[wemail] <br>----------------------<br>Total Visitors: $ht[wvisit] <br>Last Online: ".tdate($ht[wonline])." <br>Domain Register Date: ".tdate($ht[wdate])." <br>		----------------------<br>Powered By OpenDomains 2.0		";
		?>
			<script  language="javascript">	
			var p = top.document.getElementById("dlog");	
			set("dlog1","<?=$html?>");
			set("dlog2","");								
			p.style.visibility='visible';
			</script>
		<?
	}
@mysql_close($sqlserver);
?>
Return current item: OpenDomains