D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
epksuofuukz9
/
www
/
admin
/
php
/
Filename :
authentication.php
back
Copy
<?php session_start(); include("../includes/functions.php"); $email=$_POST['email']; $password=$_POST['password']; $check_user="SELECT * FROM `users` WHERE user_email='$email' AND user_password='$password'"; $run_user=query($check_user); confirm($run_user); $count_user=row_count($run_user); if($count_user==1) { $_SESSION['email']=$email; echo "<script>alert('Welcome to Admin Panel');</script>"; echo "<script>window.open('../dashboard.php','_self');</script>"; } else { echo "<script>alert('The email and password do not match');</script>"; echo "<script>window.open('../','_self');</script>"; } ?>