Location: PHPKode > projects > OpenDomains > admin/user.add.php
<?
if(define("opendomains", false)) die("Hacking System");
$step=$_GET['step'];
if(!$step) $step=0;

switch ($step) {
  case 0:
    echo "<form action='?act=user&step=1&do=add' method='post' >
    <center>
    &laquo;&laquo;
    www.<input type='text' name='txtdomain' value=''>.<select name='txtexe'>
    ". exedns() ."
    </select>
    <input type='submit' name='sssubmit' value='Check'>
    &raquo;&raquo;
    </center>
    </form>";
    break;
  case 1:
  	$domain=kiemtra(1,$_POST['txtdomain'],1,3,40,"Please Check Your Domain",0);
  	$exe=kiemtra(1,$_POST['txtexe'],0,1,40,"Hacking System",0);
   	if(($domain)and($exe)) {

	    if(checkdomain($domain,$exe)==false) {
 		   echo "
         	<center>
         	Okay, you can create new domain with name $domain.$exe <br>
         	<a href='?act=user&step=2&do=add&domain=".base64_encode($domain)."&exe=".base64_encode($exe)."'>Click here to continue !</a>
         	</center>
			";
    	}else {
    		echo "
         	<center>
			Sorry, domain name $domain.$exe was registered. <br>
			Click Back and chose new name !
         	</center>
         	";
    	}
    }
    else {
   	die("Hacking System");
   	}
    break;
  case 2:
  	if($_POST['txtdomain']) {
  	 
		$domain=kiemtra(1,$_POST['txtdomain'],1,3,40,"Hacking System",0);
		$exe=kiemtra(1,$_POST['txtexe'],0,2,40,"Hacking System",0);
		
		if(checkdomain($domain,$exe)==false) {
		 
			$name=kiemtra(1,$_POST['txtname'],0,5,40,"Please Check Your Full Name",0);
			$email=kiemtra(1,$_POST['txtemail'],0,5,80,"Please Check Your E-Mail",0);
			
			$pos1=strpos($email,"@");
			$pos2=strpos($email,".");
			
			if(($pos1<3)||($pos2<5)) {
				alert("You must use real E-mail !");
				goto(-1);
			}
			
			$pass=kiemtra(1,$_POST['txtpass'],1,6,40,"Please Check Your Password",0);
			
			$title=kiemtra(1,$_POST['txttitle'],0,0,40,"Please Check Your Website Title",0);
			$des=kiemtra(1,$_POST['txtdes'],0,0,80,"Please check your website description",0);
			$key=kiemtra(1,$_POST['txtkey'],0,0,80,"Please check your website keywords",0);
			
			$url=kiemtra(1,$_POST['txturl'],0,6,250,"Please check your Target URL",0);
			$fav=kiemtra(1,$_POST['txtfav'],0,0,150,"Please check your Favicon URL",0);			
			$cloak=kiemtra(1,$_POST['txtcloak'],0,1,3,"Please check Cloaking Option",0);	
			
			$visit=strval($_POST['txtvisit']);
			$status=$_POST['txtact'];
			$country=$_POST['txtcountry'];
			$date=date("Ymd");
			$online=date("Ymd");
			
			if($country=="xx") {
				alert("Please chose your country !");
				goto(-1);
			}
			
			for($i=1;$i<=4;$i++) {
			 	eval("if(strtolower(\$web[config][cus".$i."require])==\"no\") {
			 	 	\$re[".$i."]=0;
				} else {
					\$re[".$i."]=1;
				}");
			}
			
			$cus1=kiemtra(1,$_POST['txtcus1'],0,$re[1],60,"Please check ".$web[config][cus1]."",0);
			$cus2=kiemtra(1,$_POST['txtcus2'],0,$re[2],60,"Please check ".$web[config][cus2]."",0);
			$cus3=kiemtra(1,$_POST['txtcus3'],0,$re[3],60,"Please check ".$web[config][cus3]."",0);
			$cus4=kiemtra(1,$_POST['txtcus4'],0,$re[4],60,"Please check ".$web[config][cus4]."",0);
			
			include("../include/src_signup.php");
			$ok=adddomain($domain, $exe, $url, $email, $pass, $name, $title, $des, $key, $cloak, $fav , $visit, $date, $online, $status, $country, $cus1, $cus2, $cus3, $cus4);
			if($ok==true) {
				alert("Okay, Added New Account !");
			}else {
				alert("Hacking System !");
			}			
			goto("?");
		}
		
		else {
			alert("Hacking System");
			goto("?");
		}
	}
  	$domain=kiemtra(1,base64_decode($_GET['domain']),1,3,40,"Hacking System",0);
  	$exe=kiemtra(1,base64_decode($_GET['exe']),0,1,40,"Hacking System",0);
   	echo "
	<form action='?act=user&step=2&do=add' method='post' >
   	<input type='hidden' name='txtdomain' value='$domain'>
   	<input type='hidden' name='txtexe' value='$exe' >
   	<table width=100% cellspacing=0 cellpadding=10 >
   	<tr><td>
    &raquo; Sign Up: $domain.$exe   <br>
    &raquo; Full Name: <br>
    <input type='text' name='txtname' value=''> <br>
    &raquo; E-Mail: <br>
    <input type='text' name='txtemail' value=''> <br>
    &raquo; Password: <br>
    <input type='text' name='txtpass' value=''> <br>
    &raquo; Website Title: <br>
    <input type='text' name='txttitle' value=''> <br>
    &raquo; Website Description: <br>
    <input type='text' name='txtdes' value=''> <br>
    &raquo; Website Keywords: <br>
    <input type='text' name='txtkey' value=''> <br>
    &raquo; URL Target: <br>
    <input type='text' name='txturl' value='http://'> <br>
    &raquo; Stats Counter: <br>
    <input type='text' name='txtvisit' value='0'> <br>
    </td><td>
    &raquo; Cloaking: <br>
    <select name='txtcloak' >
	<option value='1'>Yes</option>
	<option value='0'>No</option>
	</select> <br>
    &raquo; Favicon: <br>	
    <input type='text' name='txtfav' value='http://'> <br>
    &raquo; Date Reg:
    <input type='hidden' name='txtdate' value='".date("Ymd")."'>".date("d-m-Y")." <br>
    <input type='hidden' name='txtonline' value='".date("Ymd")."'>".date("d-m-Y")." <br>
    &raquo; Status: <br>
    <select name='txtact'>
    <option value='0'>Waiting</option>
    <option value='1' selected >Active</option>
    <option value='2'>Suppend</option>
    </select> <br>
   &raquo; Country: <br>";
    include("../include/country.php");
    echo $country;
    echo "
    <br>
    &raquo; Custom 1: &raquo;  ".$web[config][cus1]." [ Require: ".$web[config][cus1require]." ]<br>
    <input type='text' name='txtcus1' value=''> <br>
    &raquo; Custom 2: &raquo;  ".$web[config][cus2]." [ Require: ".$web[config][cus2require]." ]<br>
    <input type='text' name='txtcus2' value=''> <br>
    &raquo; Custom 3: &raquo;  ".$web[config][cus3]." [ Require: ".$web[config][cus3require]." ]<br>
    <input type='text' name='txtcus3' value=''> <br>
    &raquo; Custom 4: &raquo;  ".$web[config][cus4]." [ Require: ".$web[config][cus4require]." ]<br>
    <input type='text' name='txtcus4' value=''> <br> <br>
    <input type='submit' name='txtsubmit' value='Create Account'>
    </td>
    </tr>
    </table>
    </form>
    
	";
    break;
}

?>
Return current item: OpenDomains