<?php


session_start();
include 'includes/config.php';


$DID = $_GET['DID'];
$user_ID = $_GET['user_ID'];



   
   
   
   $query1 = mysqli_query($dbConn,"select * from users where Device_ID='$DID' AND Login_Status='True'"); 
   $query2 = mysqli_query($dbConn,"update users set U_ID='$user_ID' where Device_ID='$DID'"); 

   

if (mysqli_num_rows($query1)>0){

   

$row=mysqli_fetch_array($query1);
$U_ID=$row['ID'];
$_SESSION['U_Log'] = $U_ID;


echo '<script language="JavaScript">
            document.location="EN/Users/index.php";
        </script>';   
}


?>





<!doctype html>
<html lang="en">
<head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <!-- FontAwesome -->
    <link rel="stylesheet" href="css/fontawesome.css">
    <link rel="stylesheet" href="css/styles.css">
    <link rel="shortcut icon" href="images/icon.ico"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,user-scalable=0"/>

    <title>Choose langauge | اختر اللغة</title>
	
	
		<style>
@font-face {
   font-family: myFirstFont;
   src: url(fonts/Arial-Rounded-MT-Regular.ttf);
   font-size:8px;
}


@font-face {
   font-family: myFirstFont2;
   src: url(fonts/GE-SS-Two-Bold.otf);
   font-size:8px;
}



body {
   font-family: myFirstFont !important;
   text-align: right !important;
       overflow: hidden; 

   


}

a, span, input{
	
	   font-family: myFirstFont !important;

	
}



</style>



</head>
<body>

<!--Loading Container Start-->
<div id="load" class="loading-overlay display-flex flex-column justify-content-center align-items-center">
    <div class="primary-color font-28 fas fa-spinner fa-spin"></div>
</div>
<!--Loading Container End-->
<br>
<!-- Choose Appropriate Application To View Start-->
<div class="all-wide-container w-100 h-100" style="margin-top:-80px">
    <div class="d-flex justify-content-center align-items-center flex-column margin-bottom-up" style="height: 100vh;">
        <img src="images/logo.png" width="100%"  class="margin-bottom" alt="Main Logo">
<br>
<center><p style="font-size:18px; color:#231F20">Welcome To Our <strong>SHEELD</strong> Community</p>
<center><p style="font-size:16px; color:#535353">Choose Your Preferred Langauge</p>
        <a href="EN/Users-Sign-Up.php?DID=<?php echo $DID; ?>&user_ID=<?php echo $user_ID; ?>" style="height:50px; font-size: 16px; width:311px !important; border-radius: 12px; color:#fff; border:none; background-image: linear-gradient(to right, #39B54A 0%, #B3E207 100%);" class="btn  w-100 mb-3"><strong>English</strong></a>
        <a href="AR/Users-Sign-Up.php?DID=<?php echo $DID; ?>&user_ID=<?php echo $user_ID; ?>" style="font-family: myFirstFont2 !important; height:50px; font-size: 16px; width:311px !important; border-radius: 12px; color:#fff; border:none; background-image: linear-gradient(to right, #00A79D 0%, #3ADBDB 100%);" class="btn  w-100 mb-3"><strong>العربية</strong></a>
   

   </div>
	

	
<div class="footer" style="margin-top:-200px">
</div>

</div>


<style>
  .footer {
    background-image: url('images/footer.png');
    background-size: cover;
    background-repeat: no-repeat;
    height: 280px; 
    bottom: 0;
    width: 120%;
	
  }
</style>




    


<!-- Choose Appropriate Application To View Start-->

<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="js/jquery-3.4.1.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/main.js"></script>

</body>
</html>
