hjkhhrtertererrrrrerrtertertertertertertert
bnmbnerterterterterterdfgdfgdfgdfgdfgdfgdfgdfgdfg
/
home4
/
digil8bw
/
arrowaim.in
/
Upload FileeE
HOME
<?php ob_start(); include("configuration/function-include.php"); $email=addslashes(trim($_POST['email'])); $password=addslashes(trim($_POST['password'])); $Remember_Me=$_POST['Remember_Me']; $sql="select * from user where email='".$email."' and password='".$password."'"; $result=mysqli_query($conn, $sql); $line=mysqli_fetch_array($result); $num=mysqli_num_rows($result); if($num>0){ if($Remember_Me==1) { setcookie("email",trim(stripslashes($_POST['email'])),time()+60*60*24*30); setcookie("password",trim(stripslashes($_POST['password'])),time()+60*60*24*30); } else { setcookie("email",""); setcookie("password",""); } $_SESSION["email"]=$line['email']; $_SESSION["ID"]=$line['id']; $_SESSION["TYPE"] = $line['type']; $t=time(); $login_time= date("D, M d,Y g:i a",$t); $sql1="UPDATE user SET user='".$login_time."' where email='$email' and password='$password'"; mysqli_query($conn, $sql1); header("Location:about.php"); exit(); }else{ $_SESSION['sess_msg']="Enter valid email and password"; header("Location:index.php"); exit(); } ?>