define('GAME',true);
include('_incl_data/__config.php');
include('_incl_data/class/__db_connect.php');
include('_incl_data/class/__user.php');
$r = ''; $p = ''; $b = '
';
if( !isset($_GET['towerid'])) {
$_GET['towerid'] = 1;
}
$_GET['towerid'] = round((int)$_GET['towerid']);
$notowerlog = false;
$log = mysql_fetch_array(mysql_query('SELECT `id`,`count_bs`,`m` FROM `bs_logs` WHERE `count_bs` = "'.mysql_real_escape_string((int)$_GET['id']).'" AND `id_bs` = "'.mysql_real_escape_string($_GET['towerid']).'" ORDER BY `id` ASC LIMIT 1'));
if(!isset($log['id']))
{
$notowerlog = true;
$r = '
Скорее всего Архивариус снова потерял пергамент с хрониками турниров ...';
}else{
$sp = mysql_query('SELECT * FROM `bs_logs` WHERE `count_bs` = "'.$log['count_bs'].'" ORDER BY `id` ASC');
while( $pl = mysql_fetch_array($sp) ) {
$datesb = '';
if( $pl['type'] == 2 ) {
$datesb = '2';
}
$r .= '
'.date('d.m.y H:i',$pl['time']).' '.$pl['text'].'';
}
}
?>
Архив: Турнир в Башне Смерти
if( $notowerlog == false ) { ?>
Призовой фонд: =$log['m']?> кр.
}
echo $r; ?>