Location: PHPKode > projects > OpenDomains > active.php
<?
// Security
	  define("opendomains", true);
	  session_start();
// include
	  include('include/config.php');
      include('include/function.php');
      include('include/mysql.php');	  
	  include("lang/".$config[lang]."/active.php");	    	  
function no($text) {
	echo "<script language='Javascript'>
			alert(\"".$text."\");
			</script>";
}	  
// security

	$d=kiemtra(1,$_GET['d'],0,3,250,$lang["active_error"],0);
	$e=kiemtra(1,$_GET['e'],0,3,250,$lang["active_error"],0);	

	$query=mysql_query("select * from `cl_domains` where md5(wdomain)='$d' and md5(wexe)='$e' and wact='0';");
	$ht=mysql_fetch_array($query);
	if($ht[id]) {
		$query=mysql_query("update `cl_domains` set wact='1' where md5(wdomain)='$d' and md5(wexe)='$e'")or die("Error Database ! PLease contact Admin $config[admin][email]");
		no($lang["active_yes"]);
	} else {
		no($lang["active_error"]);
	}	

?>
<script  language="javascript">
	top.location='index.php';
</script>
Return current item: OpenDomains