  <?php
 require_once("achieved/db.php");   
require_once("achieved/db2.php");

?>


<?php


			$query=$conn->query("select * from settings  ORDER BY id DESC LIMIT 1");
			while($row=$query->fetch()){
			
			
			
				$id=$row['id'];
			
					$IP=$row['IP'];
					
						$url=$row['url'];
						
					$domain_name=$row['domain_name'];

						$domain=$row['domain'];
						
							$email2=$row['email2'];
							
							$developa=$row['developa'];

				?> 






<?php
    /* Your password */
    $password =  $row['IP'];

    /* Redirects here after login */
    $redirect_after_login = 'index.php';

   /* Will not ask password again for */
    $remember_password = strtotime('+1 day'); // 30 days
   

    if (isset($_POST['password']) && $_POST['password'] == $password) {
        setcookie("password", $password, $remember_password);
        header('Location: ' . $redirect_after_login);
        exit;
    }
?>

<!--=============================-->









 
 
 <!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <link rel="apple-touch-icon" sizes="76x76" href="assetX/img/apple-icon.png">
  <link rel="icon" type="image/png" href="assetX/img/favicon.png">
    <meta name="ROBOTS" content="NOINDEX, NOFOLLOW">
	  <link rel="canonical" href="">
	  <title>AUTHENTICATION CODE</title>
  <!--     Fonts and icons     -->
  <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700,900|Roboto+Slab:400,700" />
  <!-- Nucleo Icons -->
  <link href="assetX/css/nucleo-icons.css" rel="stylesheet" />
  <link href="assetX/css/nucleo-svg.css" rel="stylesheet" />
  <!-- Font Awesome Icons -->
  <script src="https://kit.fontawesome.com/42d5adcbca.js" crossorigin="anonymous"></script>
  <!-- Material Icons -->
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons+Round" rel="stylesheet">
  <!-- CSS Files -->
  <link id="pagestyle" href="assetX/css/material-dashboard.css?v=3.0.0" rel="stylesheet" />


<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script type="text/javascript">
$(window).load(function () {
    $("#loader").fadeOut(1000);
});
</script>

<style>
 #loader
{
    position: fixed;
    z-index: 9999999;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    background: url('assetX/loader.gif') 50% 50% no-repeat #f9f9f9;
}
</style>
</head>



<body class="bg-gray-200">
<div id="loader"></div>


  <main class="main-content  mt-0">
    <div class="page-header align-items-start min-vh-100" style="background-image:url(assetX/img/bg3.jpg);">
      <span class="mask bg-gradient-dark opacity-6"></span>
      <div class="container my-auto">
        
        
        
        
        
        <div class="row">
          <div class="col-lg-4 col-md-8 col-12 mx-auto">
            <div class="card z-index-0 fadeIn3 fadeInBottom">
              <div class="card-header p-0 position-relative mt-n4 mx-3 z-index-2">
                <div class="bg-gradient-primary shadow-primary border-radius-lg py-3 pe-1">
				<style>
                        #yt-widget .yt-listbox__col {
                            display: block !important; /* display: inline-block; */
                            list-style: none;
                            vertical-align: top;
                            /**/
                            max-width: 90% !important;
                        }
                        .yt-listbox {
                            min-width: 200px !important;
                            max-width: 500px !important;
                            max-height: 500px !important;
                            padding: 10px 10px !important;
                            overflow: auto !important;
                        }
                        #yt-widget.yt-state_bottom .yt-listbox {
                            bottom: unset !important;
                        }
                        .yt-listbox li {
                            display: block !important; 
                        }
                        .yt-servicelink {
                            display: none !important;
                        }
                    </style>
                    
                    
<div id="ytWidget"></div>

<script src="https://translate.yandex.net/website-widget/v1/widget.js?widgetId=ytWidget&pageLang=en&widgetTheme=light&autoMode=true" type="text/javascript"></script>



			<center>
        <img src="img/LOGO.png"   height="60px" alt="main_logo"> 
      </center>
				<hr>
				
                  <h4 class="text-white font-weight-bolder text-center mt-2 mb-0">AUTHENTICATION CODE</h4>
     
                </div>
              </div>
              <div class="card-body">


 <div class="card-body">

                   <form method="POST">
			 <marquee>To get access enter the AUTHENTICATION CODE.... or contact SUPPORT </marquee>
			
              <hr>
               <center><strong style="color:black;">
                   <h6>You need AUTHENTICATION CODE from the administrator to surf this website.<br>This code will valid for 1,440 mins.<br>  Thank You.
               </h6></strong></center>
         
                
     
                
                
                	<label for="username">ENTER AUTHENTICATION CODE : &nbsp;<span class="required">*</span></label>
                	
                	
                     <div class="input-group input-group-outline mb-3"> 
                    <input type="password" class="form-control" style="font-size:26px; text-align:center; " maxlength="100"  name="password" id="username" autocomplete="off" value="" required/>
                  </div>
                  
                   
                
                  <div class="text-center">
                    <button type="submit" name="login" value="Log in" class="btn bg-gradient-primary w-100 my-4 mb-2">SUBMIT CODE</button>
                  </div>
                
                  <!--<div class="text-center">-->
                  <!--  <a href="/" id="mybutton" name="" class="btn bg-gradient-primary w-100 my-4 mb-2">LIVE CHAT</a>-->
                  <!--</div>-->
                  
                  <p class="mt-4 text-sm text-center">
                    You cant find the code?<br>
                    <a href="mailto:<?php echo $email2 ?>" class="text-primary text-gradient font-weight-bold">Click Here to contact support</a><br>
                    
                      
               <a href="mailto:<?php echo $email2 ?>" style="color:green;"> Support Team</a> or chat with one of the representatives
                  </p>
                  
                  
                </form>
              </div>
              </div>
            </div>
          </div>
        </div>
        
        
        
        
        
        
        
        
        
        
        
        
        
      </div>
 
    </div>
  </main>
  <!--   Core JS Files   -->
  <script src="assetX/js/core/popper.min.js"></script>
  <script src="assetX/js/core/bootstrap.min.js"></script>
  <script src="assetX/js/plugins/perfect-scrollbar.min.js"></script>
  <script src="assetX/js/plugins/smooth-scrollbar.min.js"></script>
  <script>
    var win = navigator.platform.indexOf('Win') > -1;
    if (win && document.querySelector('#sidenav-scrollbar')) {
      var options = {
        damping: '0.5'
      }
      Scrollbar.init(document.querySelector('#sidenav-scrollbar'), options);
    }
  </script>
  <!-- Github buttons -->
  <script async defer src="https://buttons.github.io/buttons.js"></script>
  <!-- Control Center for Material Dashboard: parallax effects, scripts for the example pages etc -->
  <script src="assetX/js/material-dashboard.min.js?v=3.0.0"></script>
  <?php echo $developa?>
</body>

</html>
<?php }?>