Вход Регистрация
Файл: public_html/modules/tutorial/4.php
Строк: 71
<?php
$root 
$_SERVER['DOCUMENT_ROOT'];
include_once (
$root.'/core/base.php');
falseauth();
$header "Начало";
include_once (
$root.'/core/head.php');
if(
$u['tutorial'] != 4redirect('/tutorial/'.$u['tutorial']);
if(
$u['tutorial'] >= 15redirect('/');
if(
$u['save'] == 1redirect('/');
if(isset(
$_GET['attack']))
{
    
$_SESSION['tutorial_hp'] -= 20;
    
redirect('/tutorial/4''<center>Вы нанесли 20 урона</center>');
}
if(
$_SESSION['tutorial_hp'] <= 0)
{
    
setTutorialNum(5);
    
redirect('/tutorial/5');
}
echo 
'<div class = "b"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td width="38%" align="right" valign="top">'
echo 
" <center><big><font color = 'lime'>Вы</font></big>
                                              <div style='height: 10px; border: 1px solid #000; background: #171410; position:relative; border-radius: 2px'>
                                        <div style='height: 10px;background: #ee9200; width:10%; max-width:100%; 
                                        position: absolute; left: 0px; top: 0px; border-radius: 2px; border-bottom-right-radius: 1px;border-top-right-radius: 1px;'>
                                            <div style='height: 3px;background: #fba41b; width:98%; max-width:100%; position: absolute; left: 1%; top: 2px; border-radius: 2px; '>

                                            </div>
                                        </div>
                                    </div></br>
</center></a><br><img src='/images/battleground/0.png' width='100' height='100' style='margin-right:3px;margin-top:-25px;'></a> 
<td width='50%'>
<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'><font color = 'white'> 100</font></td> 
<td> <img src='/images/str.png' width='30px'></td> 
<td width='33%' class='text-left'><font color = 'white'>100</font></td></tr> 
<tr align='center'><td width='33%' class='text-right'><font color = 'white'>100</font></td> 
<td width='15'> <img src='/images/def.png' width='30px'></td> 
<td width='33%' class='text-left'><font color = 'white'>50</font></td></tr> 
<tr align='center'> 
<td width='33%'><font color = 'white'>100</td> 
<td><img src='/images/health.png' width='30px'></td> 
<td width='33%' class='text-left'><font color = 'white'>100</font></td>
</tr>
</font>
</tbody>
</table>
</div></td> 
<td width='38%' align='left' valign='top'> 
<center> <big><font color = 'red'>Противник</font></big>
                                                 <div style='height: 10px; border: 1px solid #000; background: #171410; position:relative; border-radius: 2px'>
                                        <div style='height: 10px;background: #ee9200; width:"
.$_SESSION['tutorial_hp']."%; max-width:100%; position: absolute; left: 0px; top: 0px; border-radius: 2px; border-bottom-right-radius: 1px;border-top-right-radius: 1px;'>
                                            <div style='height: 3px;background: #fba41b; width:98%; max-width:100%; position: absolute; left: 1%; top: 2px; border-radius: 2px; '>

                                            </div>
                                        </div>
                                    </div></br>
</center></a><br><img src='/images/vs.png' width='100' height='100' style='margin-right:3px;margin-top:-25px;'></td></tr></table>
<center><a href='?attack'><input type='submit' value='Атаковать'></a></center>
</div>"
;
/*
echo '<div class="b">
    HP: '.$_SESSION['tutorial_hp'].'/100<br>
    <a href="?attack"><input type="submit" value="Атаковать"></a>
</div>';
*/
include_once ($root.'/core/foot.php');
Онлайн: 2
Реклама