Location: PHPKode > projects > OpenDomains > admin/domain.php
<?
if(define("opendomains", false)) die("Hacking System");

	if($_POST['txtdomain']) {
		$domain=kiemtra(1,$_POST['txtdomain'],0,1,40,"Please check your domain !",0);
  		$query=mysql_query("select * from cl_exe where exe='$domain';");
  		$ht=mysql_fetch_array($query);
  		if(!$ht[exe]) {
  			$query=mysql_query("INSERT INTO `cl_exe` ( `id` , `exe` , `ads`, `act` )
			VALUES (NULL , '".$domain."', 'yes', 0);");
  			}
		}
	if($_GET['do']) {
		$ltd=$_GET['id'];
 		$query=mysql_query("select * from cl_exe where id='$ltd';");
 		$ht=mysql_fetch_array($query);
		switch ($_GET['do']) {
    	case "emp":
             $query=mysql_query("delete from cl_domains where wexe='$ht[exe]';")or die("Error !");;
             alert("Empty Status: Ok");
     	 break;
  		case "del":
             $query=mysql_query("delete from cl_exe where id='$ht[id]';");
             alert("Delete Status: Ok");
      	break;
  		}
	}
    echo "
  	<form action='?act=domain' method='post'>
   	&raquo;&raquo; Add New Domain:
   	<input type='text' name='txtdomain' value=''>
   	<input type='submit' name='sssubmit' value='Add New Domain'> <br>
    Ex: yourdomain.com , vnn.bz , kickme.to ..[etc]
  	</form>

    <table width='100%' border=1 cellpadding=5 cellspacing=0 style='border-collapse:collapse;'>
    <tr>
    <td align=center >
    <b>Domain Name</b>
    </td>
    <td align=center >
    <b>Already DNS ?</b>
    </td>
    <td align=center >
    <b>Action</b>
    </td>
    </tr>

    ";
    $query=mysql_query("select * from cl_exe where 1 order by 'id' asc");
    $dem=0;
    while($ht=mysql_fetch_array($query)) {
    	$dem++;
    	echo "
    	<tr>
    	<td> &raquo; $ht[exe] </td>
    	<td align=center >
        <input type='text' id='dns".$dem."' name='dns".$dem."' style='text-align:center;border:0;width:90%;color:red;' value='No'>
    	</td>
    	<td align=center>
         <a href='?act=domain&do=emp&id=$ht[id]'>Empty</a>    |
         <a href='?act=domain&do=del&id=$ht[id]'>Delete ( Not Empty )</a>
    	</td>
    	</tr>
    	<script language='Javascript' src='".$web[config][opendns]."dns.php?code=".zip($ht[exe])."&id=$dem&code1=".zip($web[config][dnsuser])."&code2=".zip($web[config][dnspass])."'></script>
    	";
    	}
    echo "</table>
    <p align=left >
<b>How to DNS your domain ?</b> <br>
Please visit http://opendomains.vnn.bz/forum/

    ";
?>
Return current item: OpenDomains