
							<div class="cl-left">

<style>
.regsadasdasdf {
color: #F9F3EB !important;
font-size: 22px;
font-family: "arian_amu_serifbold",sans-serif;
text-decoration: none !important;
text-align: center;

    border-top: 1px solid #70A71A;
height: 35px;
line-height: 35px;
width: 300px;
display: block;
background: #3C9231;
margin: 0px;
}

.regsadasdasdf:hover {
background: #8ED244;
}

#error {
border-color: #EE2327;
}
.alert {
color: #191A18;
margin: 5px 0;
padding: 8px 35px 8px 14px;
text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.5);
background-color: #FCF8E3;
border: 2px solid #3Aa73D;
border-radius: 2px;
}
</style>




<div class="autoriz" style="padding: 0px 0px 0px;">
	<form action="" method="post">
	<div class="h-titleleft">Авторизация</div>	

<?PHP

	if(isset($_POST["log_email"])){
	
	$lmail = $func->IsMail($_POST["log_email"]);
	
		if($lmail !== false){
		
			$db->Query("SELECT id, user, pass, referer_id, banned FROM db_users_a WHERE email = '$lmail'");
			if($db->NumRows() == 1){
			
			$log_data = $db->FetchArray();
			
				if(strtolower($log_data["pass"]) == strtolower($_POST["pass"])){
				
					if($log_data["banned"] == 0){
						
						# Считаем рефералов
						$db->Query("SELECT COUNT(*) FROM db_users_a WHERE referer_id = '".$log_data["id"]."'");
						$refs = $db->FetchRow();
						
						$db->Query("UPDATE db_users_a SET referals = '$refs', date_login = '".time()."', ip = INET_ATON('".$func->UserIP."') WHERE id = '".$log_data["id"]."'");
						
						$_SESSION["user_id"] = $log_data["id"];
						$_SESSION["user"] = $log_data["user"];
						$_SESSION["referer_id"] = $log_data["referer_id"];
						Header("Location: /account");
						
					}else echo "<center><font color = 'red'><b>Аккаунт заблокирован</b></font></center><BR />";
				
				}else echo "<center><font color = 'red'><b>Email и/или Пароль указан неверно</b></font></center><BR />";
			
			}else echo "<center><font color = 'red'> <b>Указанный Email не зарегистрирован в системе</b></font></center><BR />";
			
		}else echo "<center><font color = 'red'><b>Email указан неверно</b></font></center><BR />";
	
	}

?>



   <center> <input name="log_email" id="log_1" type="email" style="padding: 7px 14px 7px 34px;width: 264px;height: 40px;background-color: rgba(255, 255, 255, 0.3);" required size="23" maxlength="35" onfocus="if (this.value == 'Email') this.value = '';" onblur="if (this.value == '') this.value = 'Email';" value="Email" class="lg"/></center>
 
  
  
  <center><input name="pass" id="log_2" type="password" style="padding: 7px 14px 7px 34px;width: 264px;height: 40px;background-color: rgba(255, 255, 255, 0.3);" required size="23" maxlength="35" onfocus="if (this.value == 'Пароль') this.value = '';" onblur="if (this.value == '') this.value = 'Пароль';" value="Пароль" class="ps"/></center>

  



  <center><br></center>
 
 <center>  <input type="submit" value="Войти" style="width: 76%;" class="btn_in"/></center>
<center><a href="/recovery"><font style="color:#23201F;">Забыли пароль?</font></a></center>
  
 </form>


 




<a class="regsadasdasdf" href="/signup">Регистрация</a>
</div>	
<div style="margin-top: -10px;padding-left: 3px;background: #8DE470;width: 297px;">
<div class="h-titleleft">Статистика</div>
	<table width="295px"> 
<tbody><tr><td class="stats"><img style="color: #fef9f4;background: #154405;border-radius: 8em;padding: 5px;margin: 2px;height: 32px;float: left;margin-right: 10px;" src="/img/user.png"><div><h2 style="margin: 0; padding: 0;text-decoration: underline;color: #3d241d;"><a href="/users"><?=$stats_data["all_users"]+0; ?> чел.</a></h2><span>Пользователей:</span></div></td></tr>
<tr><td class="stats"><img style="color: #fef9f4;background: #154405;border-radius: 8em;padding: 5px;margin: 2px;height: 32px;float: left;margin-right: 10px;" src="/img/usere.png"><div><h2 style="margin: 0; padding: 0;"><?=$stats_data["new_users"]+0; ?> чел.</h2><span>Новых за сутки:</span></div></td></tr>
<tr><td class="stats"><img style="color: #fef9f4;background: #154405;border-radius: 8em;padding: 5px;margin: 2px;height: 32px;float: left;margin-right: 10px;" src="/img/online.png"><div><h2 style="margin: 0; padding: 0;text-decoration: underline;color: #3d241d;"><a href="/online"><?=$stats_data["online_users"]; ?>  чел.</a></h2><span>Сейчас Online:</span></div></td></tr>
<!--tr><td class="stats"><img style="color: #fef9f4;background: #3d241d;border-radius: 8em;padding: 5px;margin: 2px;height: 32px;float: left;margin-right: 10px;" src="/img/shop.png"><div><h2 style="margin: 0; padding: 0;"><-?=sprintf("%.2f",$stats_data["all_insert"]); ?> <-?=$config->VAL; ?></h2><span>Всего вкладов:</span></div></td></tr-->
<tr><td class="stats"><img style="color: #fef9f4;background: #154405;border-radius: 8em;padding: 5px;margin: 2px;height: 32px;float: left;margin-right: 10px;" src="/img/money.png"><div><h2 style="margin: 0; padding: 0;"><?=sprintf("%.2f",$stats_data["all_insert"]); ?> руб.</h2><span>Всего пополнено:</span></div></td></tr>
<tr><td class="stats"><img style="color: #fef9f4;background: #154405;border-radius: 8em;padding: 5px;margin: 2px;height: 32px;float: left;margin-right: 10px;" src="/img/sell.png"><div><h2 style="margin: 0; padding: 0;text-decoration: underline;color: #3d241d;"><a href="/payments"><?=sprintf("%.2f",$stats_data["all_payment"]); ?> руб.</a></h2><span>Всего выплачено:</span></div></td></tr>
</tbody></table></div>
	<div style="color: rgba(0, 0, 0, 0.72);width: 300px;    background: rgb(111, 173, 90);margin-top: 0px;height: 30px;border-radius: 0 0 10px 10px;border-bottom: 4px solid #49713B;"><center><h3 style="margin: 0; padding-top: 3px;">Нам уже: <?=intval(((time() - $config->SYSTEM_START_TIME) / 86400 ) +1); ?> день</h3></center></div>
	<p> </p>
<center><div id="banners">
	<!--LiveInternet counter--><script type="text/javascript"><!--
document.write("<a href='//www.liveinternet.ru/click' "+
"target=_blank><img src='//counter.yadro.ru/hit?t17.15;r"+
escape(document.referrer)+((typeof(screen)=="undefined")?"":
";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?
screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+
";"+Math.random()+
"' alt='' title='LiveInternet: показано число просмотров за 24"+
" часа, посетителей за 24 часа и за сегодня' "+
"border='0' width='88' height='31'><\/a>")
//--></script><!--/LiveInternet-->
<a href="//www.free-kassa.ru/"><img src="//free-kassa.ru/img/fk_btn/14.png"></a>
<a href="//payeer.com/?partner=513064" target="_blank"><img src="/style/img/payeerbanner.png"></a>
</div>
</center>
<br>

</div>