<?php
require_once ('system/func.php');
require_once ('system/header.php');
noauth(); // Закроем от авторизованных
/* СЧЕТЧИКИ */
$registr = mysql_num_rows(mysql_query("SELECT * FROM `users`"));
$on = mysql_num_rows(mysql_query("SELECT * FROM `online`"));
?><style>
body {
background: #303030;
max-width: 400px;
font-family:Verdana,Arial,sans-serif;
font-size:14px;
color:#FFF;
text-shadow: #384b26 0 -1px 1px;
margin:0 auto;
}
.block-in-border {
top: -75px;
position: relative;
text-align: center;
border-radius: 50%;
background: linear-gradient(to left, #743ad5 0%, #d53a9d 100%);
width: 107px;
height: 107px;
webkit-box-shadow: 0px 3px 5px #743ad5;
-moz-box-shadow: 0px 3px 5px #743ad5;
box-shadow: 0px 0px 17px #743ad5;
}
.block-in-border-2 {
position: relative;
top: -75px;
text-align: center;
border-radius: 50%;
background: linear-gradient(to left, #e78a23 0%, #ffe925 100%);
width: 107px;
height: 107px;
box-shadow: 0px 0px 17px #e78a23;
}
.block-in-border-3 {
position: relative;
top: -75px;
text-align: center;
border-radius: 50%;
background: linear-gradient(to left, #71b313 0%, #e9ff21 100%);
width: 107px;
height: 107px;
box-shadow: 0px 0px 17px #71b313;
}
.block-in {
position: absolute;
bottom: 50%;
left: 50%;
margin-right: -50%;
transform: translate(-50%, 50%);
background: #13181b;
width: 90px;
height: 90px;
color: #FFFFFF;
border-radius: 50%;
z-index: 1;
}
.block-in-t {
position: absolute;
bottom: 50%;
left: 50%;
margin-right: -50%;
transform: translate(-50%, 50%);
z-index: 2;
}
.block-in-text {
position: absolute;
bottom: 60%;
left: 50%;
margin-right: -50%;
transform: translate(-50%, 60%);
font-weight: bold;
font-size: 25px;
z-index: 2;
}
.block-in-text-2 {
position: absolute;
bottom: 30%;
left: 50%;
margin-right: -50%;
transform: translate(-50%, 30%);
font-size: 10px;
z-index: 2;
}
.line-t {
border-top: 1px solid #080b0c;
border-bottom: 1px solid #1e252a;
margin-bottom: 15px;
}
.start {
background: url(startgame.png) no-repeat;
background-size: cover;
width: 220px;
height: 65px;
}
.aut {
background: url(autgame.png) no-repeat;
background-size: cover;
width: 220px;
height: 65px;
}
.grey {
color: grey;
}
</style>
<center><img src="/logo.png" style="width:100%"></center>
<div class="block"><center>
</br></br>
<div style="position:relative;top: -40px;">
<div style="font-size:18px;font-weight:bold;">
ПРИСОЕДИНЯЙТЕСЬ И ВЫ!
</div>
<div style=" margin: 10px;">
Когда воюют люди, гибнут многие невинные души. Но когда в битву между собой вступают империи, в этом случае жертвами их противостояния могут стать целые народы
</br> </br>
<div class="line-t"></div>
<a href="/registration"><div class="start"></div></a> </div>
<?
if(isset($_REQUEST['success'])){
$name = text($_POST['nickname']);
$pass = text($_POST['password']);
$sql = mysql_fetch_array(mysql_query("SELECT `login`,`password`,`bot` FROM `users` WHERE `login` = '".$name."' and `password`='".md5(md5($pass))."' AND `bot` = '0' LIMIT 1"));
if(empty($name)) msg('Введите логин');
elseif(empty($pass)) msg('Введите пароль');
elseif($sql == 0) msg('Такой пользователь не найден');
else {
setcookie('login', $name, time()+86400*365, '/');
setcookie('password', md5(md5($pass)), time()+86400*365, '/');
header('location: /');
}
}
echo '<center><div style="font-size:18px;font-weight:bold;">
АВТОРИЗАЦИЯ
</div></center></br><form action="" method="post">
<input placeholder="Введите логин..." type="text" name="nickname" maxlength="50" value="" /><br/>
<input placeholder="Введите пароль..."" type="password" name="password" maxlength="50" value="" /><br/>
<center><input type="submit" name="success"value="Войти в игру"></center>
</form>
';
echo '</div>';
?><div class=" center grey">Война империй 2019</div></br></center>