<?php
	// Chequeo de existencia de token
	if (isset($_GET['tk']) && strlen($_GET['tk'])>10) {
		$indexing=1;
		include 'configs.php';

		$token = htmlentities($_GET['tk']);

		$token_query = $pdo->query("SELECT id, correo, token_password FROM accounts WHERE token_password='$token'");
		if ($token_query->rowCount() == 0) {
			echo '<h1>Token inválido</h1>Asegúrese de haber copiado el enlace del correo correctamente';
			exit;
		}
	}else {
		exit;
	}
?>
<!doctype html>
<html lang="en" class="no-focus">

<meta http-equiv="content-type" content="text/html;charset=UTF-8" />

<head lang="en">
     <title>L2SoulPlay - Interlude.</title>
     <meta property="og:title" content="Interlude x50 pvp - Sub acumulativas base +3.">
     <meta property="og:site_name" content="L2soulplay.com">
     <meta property="og:type" content="website">
     <meta property="og:url" content="index.php">
     <meta name="description" content="¡Winter is Here! que mejor manera de estar adentro disfrutando de un buen mmorpg! L2SoulPlay te espera para hacer historia juntos!">
     <meta property="og:description" content="¡Winter is Here! que mejor manera de estar adentro disfrutando de un buen mmorpg! L2SoulPlay te espera para hacer historia juntos!">
     <meta property="twitter:description" content="L2SoulPlay Interlude x50 pvp - Sub Acumulativas base +3">
     <meta name="keywords" content="Lineage 2 Interlude, L2 Sub Acumulativas, Servidor PvP, Lineage 2 Sub acumulativas, servidor Argentino">
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
     <meta property="og:image" content="template/panel/assets/media/favicons/favicons/favicon-192x192.html">
     <link rel="shortcut icon" href="template/panel/assets/media/favicons/favicon.ico">
     <link rel="icon" type="image/png" sizes="192x192" href="template/panel/assets/media/favicons/favicon-192x192.png">
     <link rel="icon" type="image/png" sizes="16x16" href="template/panel/assets/media/favicons/favicon-16x16.png">
     <link rel="apple-touch-icon" sizes="32x32" href="template/panel/assets/media/favicons/favicon-32x32.png">
     <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Muli:300,400,400i,600,700">
     <link id="css-main" rel="stylesheet" href="template/panel/assets/css/codebase2d34.css?v=1612297400">
     <link rel="stylesheet" href="template/panel/assets/css/custom3097.css?v=1612297399">

     <!-- Stylesheets -->
     <link rel="stylesheet" href="template/panel/assets/css/custom_styles.css"><!-- END Stylesheets -->
</head>

<body>
     <!-- Page Container-->
     <div id="page-container" class="sidebar-inverse side-scroll main-content-boxed enable-page-overlay side-trans-enabled ">
          <header id="page-header" class="no-login">
               <!-- Header Loader -->
               <div id="page-header-loader" class="overlay-header bg-primary">
                    <div class="content-header content-header-fullrow text-center">
                         <div class="content-header-item">
                              <i class="fa fa-sun-o fa-spin text-white"></i>
                         </div>
                    </div>
               </div><!-- END Header Loader -->
          </header>

          <!-- END Header -->
          <div class="custom-header">
               <?php
               $indexing = 1;
               $add_class_head = 'fijo';
               include 'cont/header2.php';
               ?>

               <div class="content-area header-content">
                    <a href="index.html" class="header-content__logo">
                         <img src="template/site/SoulPlay/images/logos/logo.png" alt=""></a>
               </div>
          </div>
          <!-- Main Container -->
          <main id="main-container">
               <div class="content-area small-width">
                    <div class="page-title">RECUPERO DE CUENTA</div>
                    <!-- END Header -->
                   
					<form class="js-validation-signin uns-signup" action="account_save.php" method="post" id="form_signup" onsubmit="return false;">
						<input type="hidden" name="module_form" value="Modules\Globals\SignUp\SignUp">
						<input type="hidden" name="module" value="newpass">
						<input id="type_reg" name="type_reg" type="hidden" value="#r-email">
						<div class="block uns-block-custom block-themed block-rounded ">
							<div class="block-content">
									<div class="form-group row">
										<div class="col-12"><label for="t-signup-password">Escriba su nueva Contraseña</label>
											<div class="input-group">
												<input type="password" class="form-control" id="t-signup-password" name="password" placeholder="********">
												<div class="input-group-append">
														<button type="button" class="btn btn-secondary" id="eye">
															<i class="fa fa-eye"></i>
														</button>
												</div>
											</div>
										</div>
									</div>
									<script src='www.google.com/recaptcha/api.js'></script>
									<div class="g-recaptcha" data-sitekey="6LdPq0AUAAAAAJ7Q6jsquGMG0GhgWK78PO_NU4eU"></div>
									<br>
									<div class="form-group text-center">
										<input type="hidden" name="token" value="<?=$token?>">
										<button type="submit" class="btn btn-alt-primary submit-form"> <i class="fa fa-save mr-2"><div></div></i>Guardar </button>
									</div>
							</div>
						</div>
					</form><!-- END Sign Up Form -->

               </div>
               <script>
                    document.addEventListener("DOMContentLoaded", function(event) {
                         /* function onSubmitReInv(token) {  $('#captcha').val(token); document.getElementById("form_signup").submit(); }*/
                         $('.nav-tabs').on('click', '.nav-link', function() {
                              $('#type_reg').val($(this).attr('href'));
                         });
                         $('.nav-link.active').click();
                         $("#eye").click(function() {
                              const this__ = $(this).find('.fa');
                              const password = $("#t-signup-password");
                              if (password.attr("type") === "password") {
                                   password.attr("type", "text");
                                   this__.removeClass('fa-eye').addClass('fa-eye-slash');
                              } else {
                                   password.attr("type", "password");
                                   this__.removeClass('fa-eye-slash').addClass('fa-eye');
                              }
                         });
                    });
               </script>
          </main><!-- END Main Container -->


          <?php
          include 'cont/footer.php';
          ?>
          <!-- Pop Out Modal -->
          <div class="modal fade" id="modal-ajax" tabindex="-1" role="dialog" aria-labelledby="modal-popout" aria-hidden="true">
               <div class="modal-dialog modal-dialog-popout" role="document">
                    <div class="modal-content">
                         <form class="modal-ajax-form" action="#" method="post" onsubmit="return false;">
                              <div class="block block-themed block-transparent mb-0">
                                   <div class="block-header bg-primary-dark">
                                        <h3 class="block-title modal-ajax-title"></h3>
                                        <div class="block-options">
                                             <button type="button" class="btn-block-option" data-dismiss="modal" aria-label="Close"><i class="si si-close"></i>
                                             </button>
                                        </div>
                                   </div>
                                   <div class="block-content modal-ajax-content"></div>
                              </div>
                              <div class=" modal-ajax-footer block-content block-content-sm block-content-full bg-body-light block-settings-save-fix"></div>
                         </form>
                    </div>
               </div>
          </div><!-- END Pop Out Modal -->
     </div><!-- END Page Container -->
     <!-- Core JS -->
     <script src="template/panel/assets/js/codebase.core.min4d1e.js?v=1612297404">
     </script>
     <script src="template/panel/assets/js/codebase.app.min4d1e.js?v=1612297404"></script>
     <script src="template/panel/assets/js/plugins/bootstrap-notify/bootstrap-notify.min.js"></script>
     <script src="template/panel/assets/js/plugins/bootstrap-history-tabs/bootstrap-history-tabs5e1f.js?v=2"></script>
     <script src="template/panel/assets/js/mmoweb4d1e.js?v=1612297404"></script>
     <script src="mmo24.ru/webstat/watch.js"></script>
     <script>
          $('.nav-tabs a').historyTabs();
     </script>
     <script src="template/panel/assets/js/custom_js.js"></script>

</body>

</html>