<form class="modal fade" id="staticBackdrop" data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="staticBackdropLabel" aria-hidden="true">
	<div class="modal-dialog" role="document">
		<div class="modal-content">
		  <div class="modal-header">
			<h5 class="modal-title" id="staticBackdropLabel">Восстановление пароля</h5>
		  </div>
		  <div class="modal-body">
			<input type="email" id="replace_email_input" maxlength="32" class="form-control" placeholder="awscode@ya.ru">
			
			<div id="result_replace"></div>
		  </div>
		  <div class="modal-footer">
			<button type="button" class="btn btn-secondary" data-dismiss="modal">Отмена</button>
			<button type="submit" class="btn btn-primary">Восстановить</button>
		  </div>
		</div>
	</div>
</form>
<script> send_form('#staticBackdrop', 'replace_password();'); </script>
<div class="central_block">
	<div class="header">
		<a href="../">
			<img src="../templates/admin/img/logo.jpg" alt="{site_name}">
		</a>
		<h3>Админ Центр</h3>
	</div>
	<div class="central_block_body">
		{if($conf->authCheck == '1' && !is_auth())}
			<div class="form-horizontal">
				<center class="h4">
					<a href="/" class="btn2 btn-block">Войти на сайт</a>
					<a href="#" data-toggle="modal" data-target="#staticBackdrop">Забыли пароль?</a>
				</center>
			</div>
		{else}
			<div class="form-horizontal">
				<form id="admin_login">
					<p>
						<input id="password" type="password" maxlength="15" class="form-control" placeholder="Пароль">
					</p>
					{if($conf->captcha != '2')}
						<div style="transform:scale(1.13);-webkit-transform:scale(1.13);transform-origin:0 0;-webkit-transform-origin:0 0;" data-theme="light" class="g-recaptcha mb-15 clearfix" data-sitekey="{{$conf->captcha}}"></div>
						<script src='https://www.google.com/recaptcha/api.js?hl=ru'></script>
					{/if}
					<div id="result"></div>
					<p>
						<input type="submit" value="Войти" class="btn2 btn-block">
						<center class="h5"><a href="#" data-toggle="modal" data-target="#staticBackdrop">Забыли пароль?</a></center>
					</p>
				</form>
				<script> send_form('#admin_login', 'admin_login();'); </script>
			</div>
		{/if}
		<div id="copyright" class="text-center">
			Crack by <a href="https://vk.com/awscode" target="_blank">AWS Code</a> &copy; 2019-<?=date("Y");?>
		</div>
	</div>
</div>