D7net Mini Sh3LL v1

 
ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF
Directory (0777) :  C:/Domains/maymaytinson.com/httpdocs/lib/images/11/../../../lib/../include/

 Home   ☍ Command   ☍ Upload File   ☍Info Server   ☍ Buat File   ☍ Mass deface   ☍ Jumping   ☍ Config   ☍ Symlink   ☍ About 

Current File : C:/Domains/maymaytinson.com/httpdocs/lib/images/11/../../../lib/../include/register.php
<div id="direct"><a href="index.php">Trang chủ</a> <span>></span> Đăng ký tài khoản</div>
<div id="register">
	<h1 align="center">Đăng ký tài khoản</h1>
	<form method="POST">
		<table>
			<tr>
				<td><input type="text" name="name" placeholder="Họ & tên"></td>
			</tr>
			<tr>
				<td><input type="text" name="phone" placeholder="Số điện thoại"></td>
			</tr>
			<tr>
				<td><input type="text" name="mail" placeholder="E-mail"></td>
			</tr>
			<tr>
				<td><input type="password" name="pass" placeholder="Mật khẩu"></td>
			</tr>
			<tr>
				<td><button type="submit" name="register">ĐĂNG KÝ</button></td>
			</tr>
		</table>
	</form>
<?php
if(isset($_POST['register'])){
	$stmt=$conn->prepare("SELECT COUNT(email) as count FROM member WHERE email='".$_POST['mail']."'");
	$stmt->execute();
	$check=$stmt->fetch(PDO::FETCH_ASSOC);
	if(empty($_POST['name'])){
		$errors[]="Vui lòng nhập họ tên";
	}
	if(empty($_POST['phone'])){
		$errors[]="Vui lòng nhập số điện thoại";
	}
	if(empty($_POST['mail'])){
		$errors[]="Vui lòng nhập E-mail";
	}else{
		if($check['count']>0){
			$errors[]="E-mail này đã được sử dụng";
		}
	}
	if(empty($_POST['pass'])){
		$errors[]="Vui lòng nhập mật khẩu";
	}
	if(empty($errors)){
		$stmt=$conn->prepare("INSERT INTO member(name,phone,email,pass,user) VALUES(:name,:phone,:email,:pass,:user)");
		$stmt->bindParam(":name",$_POST['name'],PDO::PARAM_STR);
		$stmt->bindParam(":phone",$_POST['phone'],PDO::PARAM_STR);
		$stmt->bindParam(":email",$_POST['mail'],PDO::PARAM_STR);
		$stmt->bindParam(":pass",$_POST['pass'],PDO::PARAM_STR);
		$stmt->bindParam(":user",$_POST['mail'],PDO::PARAM_STR);
		$stmt->execute();
		success("Đăng ký","login.php");
	}else{
		notice($errors);
	}
}
?>	
</div>

AnonSec - 2021 | Recode By D7net