<?php
require("inc/site_config.php");
require("inc/bd.php");
session_start();
$sid = $_SESSION['hash'];
$selecter1 = "SELECT * FROM kot_user WHERE hash = '$sid'";
         $result4 = mysql_query($selecter1);
         $row = mysql_fetch_array($result4);
		 if($row)
		{	
          $vk_name = $row['vk_name'];
          $login = $row['login'];
          $pass = $row['pass'];
        }
if($login != '' && $pass != '') {
  header('Location: /');
}
if($_SESSION['login'] != 1 || $_SESSION['hash'] == '') {
  header('Location: /');
}
  ?><!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">
    <title>Purple Admin</title>
    <!-- plugins:css -->
    <link rel="stylesheet" href="../../assets/vendors/mdi/css/materialdesignicons.min.css">
    <link rel="stylesheet" href="../../assets/vendors/css/vendor.bundle.base.css">
     <script src="../ajax/functions.js"></script>
      <script src="../script/jquery-latest.min.js"></script>
    <script src="../script/odometr.js"></script>
    <script src="../script/js.cookie.js"></script>
     <script src="https://d3js.org/d3-path.v1.min.js"></script>
	<script src="https://d3js.org/d3-shape.v1.min.js"></script>  
	
    <script src="https://www.google.com/recaptcha/api.js?onload=renderRecaptchas&render=explicit" async defer></script>
    <script src="../ajax/func.js"></script>
    <!-- endinject -->
    <!-- Plugin css for this page -->
    <!-- End plugin css for this page -->
    <!-- inject:css -->
    <!-- endinject -->
    <!-- Layout styles -->
    <link rel="stylesheet" href="../../assets/css/style.css">
    <!-- End layout styles -->
    <link rel="shortcut icon" href="../../assets/images/favicon.png" />
  </head>
  <body>
    <div class="container-scroller">
      <div class="container-fluid page-body-wrapper full-page-wrapper">
        <div class="content-wrapper d-flex align-items-center auth">
          <div class="row flex-grow">
            <div class="col-lg-4 mx-auto">
              <div class="auth-form-light text-left p-5">
                <div class="brand-logo">
                     <img src="../../assets/images/logo.svg">
                </div>
                <h4>Завершение регистрации</h4>
                
                <form class="pt-3" id="enterBlock">
                    <div class="form-group"><input type="text" id="updatelog" placeholder="Логин" class="form-control form-control-lg"></div>
                                <div class="form-group"><input id="updatepass" type="password" placeholder="Пароль" class="form-control form-control-lg"></div>
                                <div style="transform: scale(0.65);margin-left: -42px;margin-top: -17px;" class="g-recaptcha" data-sitekey="<?=$sitekey?>"></div>
                                <a id="butEnter" class="btn btn-primary btn-block" style="box-shadow: 0 5px 23px 0 rgba(0, 125, 255, 0.3); color:white" onclick="continue_reg()">Войти</a>
                                <a id="loadEnter" class="btn btn-primary btn-block disabled" style="box-shadow: 0 5px 23px 0 rgba(0, 125, 255, 0.3); display:none">
                                    <div class="loader"></div>
                                </a>
                                <div class="btn btn-danger btn-block" id="error_registerc" style="margin-top:15px;display:none;pointer-events:none"></div>
                                   
                     
                  <div class="mt-3">
                                            
                  </div>
                  <div class="my-2 d-flex justify-content-between align-items-center">
                    
                    
                  </div>
           
                              
                  
              </div>
            </div>
          </div>
        </div>
       
        <!-- con
        tent-wrapper ends -->
      </div>
      <!-- page-body-wrapper ends -->
    </div>
    <!-- container-scroller -->
    <!-- plugins:js -->
   
<script src="../script/jquery.bundle.js"></script>
<script src=".../script/datatables.min.js"></script>
    <!-- endinject -->
    <!-- Plugin js for this page -->
    <!-- End plugin js for this page -->
    <!-- inject:js -->
    <script src="../../assets/js/off-canvas.js"></script>
    <script src="../../assets/js/hoverable-collapse.js"></script>
    <script src="../../assets/js/misc.js"></script>
    <!-- endinject -->
  </body>
</html>