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

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)==true) {
		 
			$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");
			
			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_manager.php");
			
			$ok=updatedomain($domain, $exe, $url, $email, $pass, $name, $title, $des, $key, $cloak, $fav, $visit, $status, $country, $cus1, $cus2, $cus3, $cus4 ,"admin");
			
			if($ok==true) {
				alert("Okay, Updated Account !");
			}else {
				alert("Hacking System ! www.opendns.vnn.bz");
			}		
				
			goto("?");
		}
		
		else {
			alert("Hacking System www.opendns.vnn.bz");
			goto("?");
		}
	}
	$id=kiemtra(1,$_GET['id'],1,0,40,"Hacking System",0);
	$query=mysql_query("select * from cl_domains where id='$id'");
	$ht=mysql_fetch_array($query);
	$domain=$ht[wdomain];
	$exe=$ht[wexe];
  	$ka=$ht[wcloak];
	$ck[$ka]="selected";
	
   	echo "
	<form action='?act=user&step=2&do=edit&id=$id' 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='$ht[wname]'> <br>
    &raquo; E-Mail: <br>
    <input type='text' name='txtemail' value='$ht[wemail]'> <br>
    &raquo; Password: <br>
    <input type='text' name='txtpass' value='$ht[wpass]'> <br>
    &raquo; Website Title: <br>
    <input type='text' name='txttitle' value='$ht[wtitle]'> <br>
    &raquo; Website Description: <br>
    <input type='text' name='txtdes' value='$ht[wdes]'> <br>
    &raquo; Website Keywords: <br>
    <input type='text' name='txtkey' value='$ht[wkey]'> <br>
    &raquo; URL Target: <br>
    <input type='text' name='txturl' value='$ht[wurl]'> <br>
    &raquo; Stats Counter: <br>
    <input type='text' name='txtvisit' value='$ht[wvisit]'> <br>
    </td><td>
  	&raquo; Cloaking: <br>
    <select name='txtcloak' >
	<option value='1' $ck[1] >Yes</option>
	<option value='0' $ck[0] >No</option>
	</select> <br>
    &raquo; Favicon: <br>	
    <input type='text' name='txtfav' value='$ht[wfav]'> <br>
		
    &raquo; Date Reg:
    $ht[wdate] <br>
    &raquo; Last Online:
    $ht[wonline] <br>
    &raquo; Status: ";
    echo status($ht[wact]);
    $p=$ht[wact];
    $op[$p]="selected";
	echo "<br>
    <select name='txtact'>
    <option value='0' $op[0] >Waiting</option>
    <option value='1' $op[1] >Active</option>
    <option value='2' $op[2] >Suppend</option>
    </select> <br>
    ";
    $query=mysql_query("select * from cl_country where ma='$ht[wcountry]';");
    $ct=mysql_fetch_array($query);
	echo "
   &raquo; Country: ( $ct[ten] )<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='$ht[wcus1]'> <br>
    &raquo; Custom 2: &raquo;  ".$web[config][cus2]." [ Require: ".$web[config][cus2require]." ]<br>
    <input type='text' name='txtcus2' value='$ht[wcus2]'> <br>
    &raquo; Custom 3: &raquo;  ".$web[config][cus3]." [ Require: ".$web[config][cus3require]." ]<br>
    <input type='text' name='txtcus3' value='$ht[wcus3]'> <br>
    &raquo; Custom 4: &raquo;  ".$web[config][cus4]." [ Require: ".$web[config][cus4require]." ]<br>
    <input type='text' name='txtcus4' value='$ht[wcus4]'> <br> <br>
    <input type='submit' name='txtsubmit' value='Update Account'>
    </td>
    </tr>
    </table>
    </form>
    
	";
?>
Return current item: OpenDomains