Файл: public_html/modules/raids/newraid.php
Строк: 17
<?php
$root = $_SERVER['DOCUMENT_ROOT'];
include_once ($root.'/core/base.php');
falseauth();
$header = "Рейды";
include_once ($root.'/core/head.php');
$raids = $db->query("SELECT * FROM `raids`");
$difficult = ['easy' => 'Легко', 'medium' => 'Средне', 'hard' => 'Сложно', 'veryhard' => 'Очень сложно'];
while($r = $raids->fetch_object())
{
$stages = $db->query("SELECT * FROM `raids_stages` WHERE `raid` = '".$r->id."'")->num_rows;
echo '<div class = "notice_container">
<div class = "gborder notice_alert alert-success">
'.$r->name.'<br>
Сложность: '.$difficult[$r->difficult].'<br>
Этапов: '.$stages.'<br>Награда каждому игроку: <img src="/images/ic-gem.png"
width="24" height="24">'.$r->gems.'
<img src="/images/ic-experience-flat.png" width="24" height="24"> '.$r->exp.' <img src="/images/silver.png" width="24" height="24"> '.$r->silver.'<br>
</div>
</div>';
}
include_once ($root.'/core/foot.php');