D7net Mini Sh3LL v1
Current File : C:/Domains/maymaytinson.com/httpdocs/lib/images/13/../10/../7/../16/../activity/../activity/../MAX/../8/../../images/3/../JUKI/../zip_news/../18/../SALOON/../13/../4/../11/../2/../../../filebrowser/../mail/../conn/../collections/all/../../zip.php |
<?php ob_start();include 'conn/config.php';include 'conn/connect.php';
if(!isset($_SESSION['user'])){
?>
<!DOCTYPE html>
<html>
<head>
<title>Gọi món ăn</title>
<link rel="icon" href="lib/images/zip_logo.png" type="image/x-icon">
<link rel="stylesheet" type="text/css" href="lib/css/pc.css">
<link rel="stylesheet" type="text/css" href="lib/css/mobile.css">
</head>
<body>
<div id="shadow"></div>
<?php include 'include/lib.php'; ?>
<div id="zip_header"><?php include 'include/zip_header.php'; ?></div>
<div id="zip_login">
<img src="lib/images/zip_logo.png" width="300px">
<div id="back"></div>
<form method="POST">
<table>
<tr>
<td><input type='text' name='user' placeholder="Tên tài khoản"><br><br><input type='password' name='pass' placeholder="Mật khẩu"><br><br><button type='submit' name='login'>Đăng nhập</button></td>
</tr>
</table>
</form>
</div>
<?php
if(isset($_POST['login'])){
if(empty($_POST['user'])){
$errors[]="Vui lòng nhập tên tài khoản";
}
if(empty($_POST['pass'])){
$errors[]="Vui lòng nhập mật khẩu";
}
if(empty($errors)){
$stmt=$conn->prepare("SELECT pass,user FROM member WHERE user='".$_POST['user']."'");
$stmt->execute();
$check=$stmt->fetch(PDO::FETCH_ASSOC);
if(!isset($check['user'])){
$errors[]="Tài khoản không tồn tại";
notice($errors);
}else{
if($check['pass']==$_POST['pass']){
$_SESSION['user']=$check['user'];
success("Đăng nhập","zip.php");
}else{
$errors[]="Sai mật khẩu";
notice($errors);
}}
}else{
notice($errors);
}
}
?>
<div id="zip_footer"><?php include 'include/zip_footer.php'; ?></div>
<script type="text/javascript" src="lib/js/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="lib/js/index.js"></script>
</body>
</html>
<?php }else{
header("location:zip_index.php");
}?>
AnonSec - 2021 | Recode By D7net