<?php ob_start();  session_start(); include 'xyz.php';
 
?>

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
	
@media screen and (max-width: 485px) and (min-width: 300px){
	.item{height:250px;}
#largeScreenOnly,#largeScreens{ display:none; }
.col3{
	width:200px;float:left;
}
}
@media screen and (max-width: 1600px) and (min-width: 486px){.item{height:350px;}
.hidBig{ display:none; }
#SmallScreenOnly{ display:none; }
}
@media screen and (max-width: 2600px) and (min-width: 1601px){
	.item{height:430px;}
	#SmallScreenOnly{ display:none; }

}
</style>
		<?php  include 'inc/outl_toplinks.php'; ?>
		<link rel="stylesheet" type="text/css" href="css/outl_ulib.css">
</head>
	<body><?php include 'inc/outl_header.php';  include 'inc/outl_nav.php';  include 'process.php';  ?>
	

<div class="section">
	<div class="container">
		<div class="row">
			<div class="col-md-3"></div>
			<div class="col-md-6">
				<div class="card">
					<div class="card-header bg-danger" ><h3>Login Panel</h3></div>
					<div class="card-body">
				<form action="" method="POST"><div class="row">
<?php 
if(isset($_POST['register'])){ $md5 = hash('sha256',$_POST['myPass']); $em = $_POST['eqPhone'];
if(QueryDB("SELECT COUNT(*) FROM customers where  (frm_email ='$em' || frm_phone='$em') and password='$md5' ")->fetchColumn()>0){
	$_SESSION['mycus'] = get_cus_id($em);
if(isset( $_SESSION['directory'])){ header('location:'. $_SESSION['directory'].'.html'); die();}
else{ header('location:home'); die();}
}else{
	print "<script>swal({text:'Invalid Login Credentials',type:'warning',title:'Invalid'},function(){ });</script>";
}


}






?>
<div class="form-group col-md-12"><input type="text" name="eqPhone" class="form-control" required placeholder="email/phone" autocomplete="off"></div>
<div class="form-group col-md-12"><input type="password" name="myPass" class="form-control"  placeholder="password"></div>





<div class="form-group col-md-12">
	<p style="text-align: right;"><a href="">Forgot Password?</a></p>
<input type="submit" name="register" value="Login" class="form-control btn btn-secondary" style="background: black;color:white">
</div>

<p class="text-center">Not Registered? <a href="register"> Register</a></p>
</div></form>

					</div>


				</div>



			</div><div class="col-md-3"></div>
										

		</div>
	</div>

</div>
		
		

		
					
	<?php include 'inc/outl_newsbottom.php'; include 'inc/outl_footer.php';  include 'js/outl_footlinks.php'; ?>

	</body>
</html>
