echo row text br div if member dead div class line div div class list

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
{
echo $row['text'].'<br/>';
}
}
}
}
?>
</div>
<?
}
if($member['dead'] == 0) {
?>
<div class='line'></div>
<div class='list'>
<center>
<a class='no_b'><a href='/coliseum/?exit=true'> Покинуть бой</a> </center>
</div>
<?
}
}
else
{
if($member['exit'] == 0 && $battle['start'] == 1 && $battle['end'] == 1) {
$q = mysql_query('SELECT * FROM `coliseum_member` WHERE `battle` = "'.$battle['id'].'" ORDER BY `kills` DESC LIMIT '.mysql_result(mysql_query('SELECT COUNT(*) FROM `coliseum_member` WHERE `battle` = "'.$battle['id'].'"'),0).'');
while($row = mysql_fetch_array($q)) {
$i++;
if($i == 1) {
$best = mysql_query('SELECT * FROM `users` WHERE `id` = "'.$row['user'].'"');
$best = mysql_fetch_array($best);
}
if($row['user'] == $user['id']) {
$place = $user;
}
}
$_s = round(rand(1,100) + (100 / $place) + (100* $member['kills']));
$_exp = round(rand(1,100) + (100 / $place) + (25 * $member['kills']));
if($clan_memb && $clan_memb['v'] > 0) {
$_exp += round($_exp/100) * $_clan_memb['v'];
}
if($premium) {
$_exp+= round($_exp/ 100) * 25;
}
mysql_query('UPDATE `users` SET `s` = `s` + '.$_s.',
`exp` = `exp` + '.$_exp.' WHERE `id` = "'.$user['id'].'"');
if($clan) {
mysql_query('UPDATE `clans` SET `exp` = `exp` + '.$_exp.' WHERE `id` = "'.$clan['id'].'"');
mysql_query('UPDATE `clan_memb` SET `exp` = `exp` + '.$_exp.' WHERE `clan` = "'.$clan['id'].'" AND `user` = "'.$user['id'].'"');
}
// Place
// 6 - Колизей
// Type
// 0 - Провести бой
// 1 - Убить n-е кол-во противников
$q = mysql_query ('select * from `user_q` WHERE (`user`="' . $user['id'] . '") AND (`complete`="0")');
if (mysql_num_rows ($q) != 0) {
while ($user_q = mysql_fetch_array ($q)) {
//
$q_ = mysql_query ('SELECT * FROM `quest` WHERE (`id`="' . $user_q['q'] . '")');
$quest = mysql_fetch_array ($q_);