Файл: public_html/modules/start.php
Строк: 58
<?php
include_once ('../core/base.php');
$header = 'Выбор города';
include_once ('../core/head.php');
trueauth();
if(isset($_GET['side']) == 1 || isset($_GET['side']) == 2){
/* Игрок выбрал сторону */
$side = fl($_GET['side']);
if($side == '1') $s = 'light';
else $s = 'dark'; // Для записи в BASE
$base -> query("INSERT INTO `users` SET
`password` = ' ',
`side` = '".$s."',
`silver` = '5000',
`gold` = '50',
`date_registr` = '".time()."',
`date_online` = '".time()."'
");
$id = mysqli_insert_id($base);
$login = 'Новичок'.$id.'';
$base -> query("UPDATE `users` SET `login` = '".$login."' WHERE `id` = '".$id."'");
session_unset();
setcookie('login', $login, time()+86400*365, '/');
setcookie('password', ' ', time()+86400*365, '/');
header('location: /tutorial/1');
}
echo '<div class = "index-starting"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td width="36%" align="right" valign="top">';
echo '<center><a href="/start/1/" title="Выбрать"><div class="title"><font color = "white"> <big> Фариас</big></font> <br><span class="txt">Выбрать</span> </div></a></big>';
echo"
</center></a><br><a href='/start/1/' title='Выбрать'><img src='/images/side-one-min.png' width='85' height='85'></a> </br>
<td width='30%'>
<table width='80%' height='80%' border='0' cellpadding='0' cellspacing='0' align='center'><br> </br>
<tbody><tr align='center'>
<td width='33%' class='text-right'></td>
<td></td>
<td width='33%' class='text-left'></td></tr>
<tr align='center'><td width='33%' class='text-right'></td>
<td width='15'></td>
<td width='33%' class='text-left'></td></tr>
<tr align='center'>
<td width='33%'></td>
<td></td>
<td width='33%' class='text-left'></td>
</tr>
</font>
</tbody>
</table>
</div></td>
<td width='35%' align='left' valign='top'> ";
echo'<center> <a href="/start/2/" title="Выбрать"><div class="title"><font color = "white"> <big> Тирион</big></font> <br><span class="txt">Выбрать</span> </div></a></big>';
echo"</center></a><br><a href='/start/2/' title='Выбрать'><img src='/images/side-two-min.png' width='85' height='85'> </a></br></br></td></tr></table>
</div>
</div>";
echo '<div class="line"></div>';
echo '<center><a class="link bradius" href="/"> Назад </a></center>';
include_once ('../core/foot.php');
?>