2023-03-31 18:42:06 +00:00
< ? php
2022-06-06 21:30:34 +00:00
if ( ! defined ( 'GAME' )) { die (); }
if ( $u -> room [ 'file' ] == 'bsenter' ) {
$r = 2 ;
if ( isset ( $_GET [ 'r' ])) {
$_GET [ 'r' ] = ( int ) $_GET [ 'r' ];
if ( $_GET [ 'r' ] == 7 || $_GET [ 'r' ] == 8 || $_GET [ 'r' ] == 9 || $_GET [ 'r' ] == 10 || $_GET [ 'r' ] == 11 ) { $r = round ( $_GET [ 'r' ] - 6 ); }
if ( $u -> info [ 'level' ] < $r + 6 ) { $r = 1 ; }
}
function changeSleep ( $uid , $sleep_action ){
global $u ;
if ( $sleep_action == 1 ){
//
mysql_query ( 'INSERT INTO `sleep` (`uid`,`time`,`sleep`) VALUES ("' . $uid . '","' . time () . '","1")' );
//
mysql_query ( " UPDATE `eff_users` SET `sleeptime`= " . time () . " ,`deactiveLast` = ( `deactiveTime` - " . time () . " ) WHERE `uid`=' " . mysql_real_escape_string ( $uid ) . " ' AND `no_Ace` = 0 AND `delete` = 0 " );
mysql_query ( 'UPDATE `items_users` SET `time_sleep` = "' . time () . '" WHERE `uid` = "' . $uid . '" AND `delete` < 1001 AND `data` LIKE "%|sleep_moroz=1%"' );
$u -> addAction ( time (), 'sleep' , $u -> info [ 'city' ]);
//
} elseif ( $sleep_action == 2 ){
//
mysql_query ( 'INSERT INTO `sleep` (`uid`,`time`,`sleep`) VALUES ("' . $uid . '","' . time () . '","2")' );
//
$sp = mysql_query ( 'SELECT * FROM `items_users` WHERE `time_sleep` > 0 AND `uid` = "' . $uid . '" AND `delete` < 1001 AND `data` LIKE "%|sleep_moroz=1%"' );
while ( $pl = mysql_fetch_array ( $sp ) ) {
$tm_add = time () - $pl [ 'time_sleep' ];
mysql_query ( 'UPDATE `items_users` SET `time_sleep` = "0",`time_create` = "' . ( $pl [ 'time_create' ] + $tm_add ) . '" WHERE `id` = "' . $pl [ 'id' ] . '" LIMIT 1' );
}
$sp = mysql_query ( 'SELECT `id`,`deactiveTime`,`deactiveLast` FROM `eff_users` WHERE `v1` LIKE "pgb%" AND `delete` = "0" AND `deactiveTime` > 0 AND `uid` = "' . $uid . '" ORDER BY `timeUse` DESC' );
while ( $pl = mysql_fetch_array ( $sp )) {
mysql_query ( " UPDATE `eff_users` SET `deactiveTime` = " . ( time () + $pl [ 'deactiveLast' ]) . " WHERE `id`=' " . $pl [ 'id' ] . " ' " );
}
$sp = mysql_query ( 'SELECT `id`,`sleeptime`,`timeUse` FROM `eff_users` WHERE `uid`="' . mysql_real_escape_string ( $uid ) . '" AND `no_Ace` = 0 AND `sleeptime` > 0 AND `delete` = 0' );
while ( $pl = mysql_fetch_array ( $sp )) {
$timeUsen = time () - ( $pl [ 'sleeptime' ] - $pl [ 'timeUse' ]);
mysql_query ( " UPDATE `eff_users` SET `timeUse`=' " . $timeUsen . " ',`sleeptime`='0' WHERE `id`=' " . $pl [ 'id' ] . " ' " );
}
mysql_query ( 'UPDATE `actions` SET `vars` = "unsleep",`val` = "' . time () . '" WHERE `id` = "' . $sleep [ 'id' ] . '" LIMIT 1' );
}
}
$t = mysql_fetch_array ( mysql_query ( 'SELECT * FROM `bs_turnirs` WHERE `city` = "' . $u -> info [ 'city' ] . '" AND `level` = "' . (( int )( $r + 6 )) . '" LIMIT 1' ));
if ( isset ( $t [ 'id' ])) {
if ( $t [ 'time_start' ] > time ()) {
$tz = mysql_fetch_array ( mysql_query ( 'SELECT * FROM `bs_zv` WHERE `bsid` = "' . $t [ 'id' ] . '" AND `time` = "' . $t [ 'time_start' ] . '" AND `uid` = "' . $u -> info [ 'id' ] . '" AND `finish` = 0 LIMIT 1' ));
$tz_all = mysql_fetch_array ( mysql_query ( 'SELECT SUM(`money`) FROM `bs_zv` WHERE `bsid` = "' . $t [ 'id' ] . '" AND `time` = "' . $t [ 'time_start' ] . '" AND `uid` = "' . $u -> info [ 'id' ] . '" AND `finish` <= "' . $t [ 'time_start' ] . '" LIMIT 1' ));
}
if ( isset ( $_POST [ 'coin' ]) && $t [ 'time_start' ] > time () ) {
$_POST [ 'coin' ] = round (( int ) $_POST [ 'coin' ], 2 );
if (( round (( int ) $tz [ 'money' ], 2 ) + $_POST [ 'coin' ]) > 3 * $u -> info [ 'level' ] || $tz_all [ 0 ] > 3 * $u -> info [ 'level' ]) {
2023-01-10 16:29:32 +00:00
$error = 'Вам нельзя делать ставку выше ' . ( 3 * $u -> info [ 'level' ]) . ' кр.' ;
2022-06-06 21:30:34 +00:00
} elseif (( $_POST [ 'coin' ] >= $t [ 'min_money' ] || ( isset ( $tz [ 'id' ]) && $_POST [ 'coin' ] >= 1 )) && $u -> info [ 'money' ] >= $_POST [ 'coin' ]) {
$t [ 'money' ] += $_POST [ 'coin' ];
$u -> info [ 'money' ] -= $_POST [ 'coin' ];
if ( isset ( $tz [ 'id' ])) {
$tz [ 'money' ] += $_POST [ 'coin' ];
mysql_query ( 'UPDATE `bs_zv` SET `money` = "' . $tz [ 'money' ] . '" WHERE `id` = "' . $tz [ 'id' ] . '" LIMIT 1' );
} else {
2023-01-10 16:29:32 +00:00
//создаем
2022-06-06 21:30:34 +00:00
$tz_all = mysql_fetch_array ( mysql_query ( 'SELECT SUM(`money`) FROM `bs_zv` WHERE `bsid` = "' . $t [ 'id' ] . '" AND `time` = "' . $t [ 'time_start' ] . '" AND `uid` = "' . $u -> info [ 'id' ] . '" AND `finish` = "0" LIMIT 1' ));
$ins = mysql_query ( 'INSERT INTO `bs_zv` (`bsid`,`money`,`time`,`uid`) VALUES ("' . $t [ 'id' ] . '","' . mysql_real_escape_string ( $_POST [ 'coin' ]) . '","' . $t [ 'time_start' ] . '","' . $u -> info [ 'id' ] . '")' );
if ( $ins ) {
$tz_all = mysql_fetch_array ( mysql_query ( 'SELECT SUM(`money`) FROM `bs_zv` WHERE `bsid` = "' . $t [ 'id' ] . '" AND `time` = "' . $t [ 'time_start' ] . '" AND `uid` = "' . $u -> info [ 'id' ] . '" AND `finish` = "0" LIMIT 1' ));
if ( $tz_all [ 0 ] > 0 ) {
$_POST [ 'coin' ] = $tz_all [ 0 ];
2023-01-10 16:29:32 +00:00
$error = 'Ваша ставка была возвращена. (' . round ( $_POST [ 'coin' ], 2 ) . ' кр.)' ;
2022-06-06 21:30:34 +00:00
}
$t [ 'users' ] ++ ;
$tz = array ( 'id' => 1 , 'bsid' => $t [ 'id' ], 'money' => $_POST [ 'coin' ], 'time' => $t [ 'time_start' ], 'finish' => 0 );
}
}
mysql_query ( 'UPDATE `bs_turnirs` SET `money` = "' . $t [ 'money' ] . '", `users` = "' . $t [ 'users' ] . '" WHERE `id` = "' . $t [ 'id' ] . '" LIMIT 1' );
mysql_query ( 'UPDATE `users` SET `money` = "' . $u -> info [ 'money' ] . '" WHERE `id` = "' . $u -> info [ 'id' ] . '" LIMIT 1' );
}
}
}
if ( $u -> info [ 'id' ] != 7 ) {
?>
< style >
body {
background - color : #dfdfdf;
2023-03-31 18:30:14 +00:00
background - image : url ( //img.new-combats.tech/i/misc/showitems/dungeon.jpg);
2022-06-06 21:30:34 +00:00
background - repeat : no - repeat ; background - position : top right ;
}
</ style >
2023-03-31 18:42:06 +00:00
< ? php
2022-06-06 21:30:34 +00:00
if ( $re != '' ) {
echo '<div style="float:right"><font color=red><b>' . $re . '</b></font></div>' ;
}
?>
< table width = " 100% " border = " 0 " cellspacing = " 0 " cellpadding = " 0 " >
< tr >
< td >< div style = " padding-left:0px; " align = " center " >
2023-03-31 16:54:33 +00:00
< h3 >< ? = $u -> room [ 'name' ]; ?> </h3>
2022-06-06 21:30:34 +00:00
</ div ></ td >
< td width = " 200 " >< div align = " right " >
< table cellspacing = " 0 " cellpadding = " 0 " >
< tr >
< td width = " 100% " >& nbsp ; </ td >
< td >< table border = " 0 " cellpadding = " 0 " cellspacing = " 0 " >
< tr align = " right " valign = " top " >
< td ><!-- -->
2023-03-31 16:54:33 +00:00
< ? = $goLis ; ?>
2022-06-06 21:30:34 +00:00
<!-- -->
< table border = " 0 " cellspacing = " 0 " cellpadding = " 0 " >
< tr >
< td nowrap = " nowrap " >< table width = " 100% " border = " 0 " cellpadding = " 0 " cellspacing = " 1 " bgcolor = " #DEDEDE " >
< tr >
2023-03-31 18:30:14 +00:00
< td bgcolor = " #D3D3D3 " >< img src = " //img.new-combats.tech/i/move/links.gif " width = " 9 " height = " 7 " /></ td >
2023-03-31 16:54:33 +00:00
< td bgcolor = " #D3D3D3 " nowrap = " nowrap " >< a href = " # " id = " greyText " class = " menutop " onClick = " location='main.php?loc=1.180.0.11&rnd=<?= $code ; ?>'; " title = " <?php thisInfRm('1.180.0.11',1); ?> " > Страшилкина ул .</ a ></ td >
2022-06-06 21:30:34 +00:00
</ tr >
</ table ></ td >
</ tr >
</ table ></ td >
</ tr >
</ table ></ td >
</ tr >
</ table >
</ div ></ td >
</ tr >
</ table >
2023-01-10 16:29:32 +00:00
< center >< h4 >< font color = green > Поздравляем ! Вы успешно допускаетесь к турниру !</ font ></ h4 ></ center >< br >
< P align = right >< INPUT class = " btn " onclick = " window.open('/forum/', 'help', 'height=500,width=1024,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes') " value = " Подсказка " style = " color:red; " type = " button " >< INPUT TYPE = " button " class = " btn " onClick = " location = 'main.php?rnd=<?= $code ;?>'; " value = " Обновить " > & nbsp ; </ P >
2022-06-06 21:30:34 +00:00
< form method = " post " action = " main.php?rnd=<?= $code ;?> " >
< fieldset style = " padding: 5px; border:1px solid #CCC; " >
2023-03-31 16:54:33 +00:00
< legend style = 'font-weight:bold; color:#8F0000;' >< h4 >< ? php if ( $t [ 'status' ] == 0 ) { ?> Прием заявок на следующий турнир <?php } else { ?>Текущий турнир<?php } ?></h4></legend>
2022-06-06 21:30:34 +00:00
2023-03-31 16:54:33 +00:00
< ? php if ( ! isset ( $t [ 'id' ])) { echo '<br><center>К сожалению турниры данного типа не проводятся в этом городе</center><br>' ; } else {
2022-06-06 21:30:34 +00:00
if ( $t [ 'status' ] == 0 ) {
?>
2023-01-10 16:29:32 +00:00
Начало турнира в Башне Смерти : < span class = date >< ? = date ( 'd.m.Y H:i:' , $t [ 'time_start' ]); ?> 59</span><BR>
Призовой фонд на текущий момент : < B >< ? = round (( $t [ 'money' ] - ( $t [ 'money' ] / 100 * 15 )), 2 ); ?> </B> кр. и <B>1</B> екр.<BR>
В с е г о подано заявок : < B >< ? = $t [ 'users' ]; ?> </B><BR>
2023-03-31 18:42:06 +00:00
< ? php
2022-06-06 21:30:34 +00:00
if ( $error != '' ) {
echo '<font color=red><b>' . $error . '</b></font><Br>' ;
}
?>
2023-03-31 16:54:33 +00:00
< ? php if ( ! isset ( $tz [ 'id' ])) { ?>
< ? php if ( $u -> info [ 'exp' ] >= 250000 ) { ?>
2022-06-06 21:30:34 +00:00
2023-03-31 16:54:33 +00:00
Сколько ставите кредитов ? ( минимальная ставка < b >< ? = $t [ 'min_money' ]; ?> .00 кр.</B> у вас в наличии <b><?= floor($u->info['money']); ?> кр.</b>)<BR><input type="text" name="coin" value="20.00" size="8">
2023-01-10 16:29:32 +00:00
< input type = " submit " value = " Подать заявку " name = " docoin " >< BR >
Чем выше ваша ставка , тем больше шансов принять участие в турнире .< BR >
2022-06-06 21:30:34 +00:00
2023-03-31 16:54:33 +00:00
< ? php } elseif ( $u -> info [ 'exp' ] < 250000 ){ ?>
2022-06-06 21:30:34 +00:00
2023-03-31 16:54:33 +00:00
Для регистрации в турнире нужно : < span style = " color:green; " >< b > 250000 </ b ></ span > опыта у вас : < span style = " color:red; " >< b >< ? = $u -> info [ 'exp' ]; ?> </b></span> опыта<BR>
2023-01-10 16:29:32 +00:00
Вам нужно набраться опыта .< BR >
2022-06-06 21:30:34 +00:00
2023-03-31 16:54:33 +00:00
< ? php }} else { ?>
2022-06-06 21:30:34 +00:00
2023-03-31 16:54:33 +00:00
Вы уже сделали ставку < b >< ? = floor ( $tz [ 'money' ]); ?> кр.</b> (У вас в наличии <b><?= floor($u->info['money']); ?> кр.</b>) Сделать повторную ставку?<br />
2023-01-10 16:29:32 +00:00
< small >< b >< font color = red > Внимание ! Покинув помещение Башни Смерти все Ваши ставки будут потеряны !</ font ></ b ></ small >< br >
2022-06-06 21:30:34 +00:00
< input type = " text " name = " coin " value = " 1.00 " size = " 8 " id = " coin " />
2023-01-10 16:29:32 +00:00
< input type = " submit " value = " Увеличить ставку " name = " docoin2 " />
2023-03-31 16:54:33 +00:00
< ? php } } elseif ( $t [ 'status' ] == 1 ) { ?>
2023-03-31 18:42:06 +00:00
< ? php
2022-06-06 21:30:34 +00:00
$r = '' ; $p = '' ; $b = ' < table width = " 100% " cellpadding = " 0 " cellspacing = " 0 " border = " 0 " >
< tbody >
< tr valign = " top " >
2023-01-10 16:29:32 +00:00
< td valign = " bottom " nowrap = " " title = " " >< input onClick = " location=location; " style = " padding:5px; " type = " submit " name = " analiz2 " value = " Обновить " ></ td >
2022-06-06 21:30:34 +00:00
</ tr >
</ tbody >
</ table > ' ;
$notowerlog = false ;
$log = mysql_fetch_array ( mysql_query ( 'SELECT `id`,`count_bs`,`m` FROM `bs_logs` WHERE `count_bs` = "' . mysql_real_escape_string ( $t [ 'count' ]) . '" ORDER BY `id` ASC LIMIT 1' ));
if ( ! isset ( $log [ 'id' ])) {
$notowerlog = true ;
2023-01-10 16:29:32 +00:00
$r = '<div>Скорее всего Архивариус снова потерял пергамент с хрониками турниров ...</div>' ;
2022-06-06 21:30:34 +00:00
} 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 .= '<br><span class="date' . $datesb . '">' . date ( 'd.m.y H:i' , $pl [ 'time' ]) . '</span> ' . $pl [ 'text' ] . '' ;
}
$liveusers = '' ;
$sp = mysql_query ( 'SELECT `id` FROM `users` WHERE `inTurnir` = "' . $t [ 'id' ] . '"' );
while ( $plu = mysql_fetch_array ( $sp ) ) {
$pl = mysql_fetch_array ( mysql_query ( 'SELECT `id`,`login`,`align`,`clan`,`level` FROM `users` WHERE `inUser` = "' . $plu [ 'id' ] . '"' ));
if ( isset ( $pl [ 'id' ]) ) {
$alc = '' ;
if ( $pl [ 'align' ] > 0 ) {
2023-03-31 18:30:14 +00:00
$alc .= '<img width=12 height=15 src=//img.new-combats.tech/i/align/align' . $pl [ 'align' ] . '.gif >' ;
2022-06-06 21:30:34 +00:00
}
if ( $pl [ 'clan' ] > 0 ) {
2023-03-31 18:30:14 +00:00
$alc .= '<img width=24 height=15 src=//img.new-combats.tech/i/clan/' . $pl [ 'clan' ] . '.gif >' ;
2022-06-06 21:30:34 +00:00
}
2023-03-31 18:30:14 +00:00
$liveusers .= ', <b>' . $alc . $pl [ 'login' ] . '</b> [' . $pl [ 'level' ] . ']<a href=/info/' . $plu [ 'id' ] . ' target=_blank><img src=//img.new-combats.tech/i/inf_capitalcity.gif width=12 height=11 ></a>' ;
2022-06-06 21:30:34 +00:00
}
}
2023-01-10 16:29:32 +00:00
$r .= '<br><br>В с е г о живых участников на данный момент: <b>' . $t [ 'users' ] . '</b> (' . ltrim ( $liveusers , ', ' ) . ')' ;
2022-06-06 21:30:34 +00:00
unset ( $liveusers , $alc );
}
if ( $notowerlog == false ) { ?>
2023-01-10 16:29:32 +00:00
Призовой фонд : < b >< ? = $log [ 'm' ] ?> кр.</b>
2023-03-31 16:54:33 +00:00
< ? php } echo $r ; ?>
< ? php } } ?>
2022-06-06 21:30:34 +00:00
< BR >
</ fieldset >
</ form >
2023-01-10 16:29:32 +00:00
< h4 > Топ 10 игроков ( новая статистиика ) турнир 5 < ? //=$t['level']?> уровней</h4>
2023-03-31 18:42:06 +00:00
< ? php
2022-06-06 21:30:34 +00:00
$sp = mysql_query ( 'SELECT * FROM `users` WHERE `win_bs`>0 ORDER BY `win_bs` DESC LIMIT 10' );
$i = 1 ;
while ( $pl = mysql_fetch_array ( $sp )) {
2023-03-31 18:30:14 +00:00
$wuser = '<b>' . $pl [ 'login' ] . '</b> [' . $pl [ 'level' ] . ']<a href=/info/' . $pl [ 'id' ] . ' target=_blank ><img width=12 height=11 src=//img.new-combats.tech/i/inf_capitalcity.gif ></a>' ;
2022-06-06 21:30:34 +00:00
if ( $pl [ 'clan' ] > 0 ) {
2023-03-31 18:30:14 +00:00
$wuser = '<img width=24 height=15 src=//img.new-combats.tech/i/clan/' . $pl [ 'clan' ] . '.gif>' . $wuser ;
2022-06-06 21:30:34 +00:00
}
if ( $pl [ 'align' ] > 0 ) {
2023-03-31 18:30:14 +00:00
$wuser = '<img width=12 height=15 src=//img.new-combats.tech/i/align/align' . $pl [ 'align' ] . '.gif>' . $wuser ;
2022-06-06 21:30:34 +00:00
}
2023-01-10 16:29:32 +00:00
echo '<b>' . $i . '.</b> Место: ' . $wuser . ' побед: <b>' . $pl [ 'win_bs' ] . '</b><br>' ;
2022-06-06 21:30:34 +00:00
$i ++ ;
}
?>
2023-01-10 16:29:32 +00:00
< h4 > Победители 10 - ти предыдущих турниров для 5 < ? //=$t['level']?> уровней</h4>
2023-03-31 18:42:06 +00:00
< ? php
2022-06-06 21:30:34 +00:00
$sp = mysql_query ( 'SELECT * FROM `bs_statistic` WHERE `wuid` > 0 ORDER BY `id` DESC LIMIT 10' );
$i = 1 ;
while ( $pl = mysql_fetch_array ( $sp )) {
2023-03-31 18:30:14 +00:00
$wuser = '<b>' . $pl [ 'wlogin' ] . '</b> [' . $pl [ 'wlevel' ] . ']<a href=/info/' . $pl [ 'wuid' ] . ' target=_blank ><img width=12 height=11 src=//img.new-combats.tech/i/inf_capitalcity.gif ></a>' ;
2022-06-06 21:30:34 +00:00
if ( $pl [ 'wclan' ] > 0 ) {
2023-03-31 18:30:14 +00:00
$wuser = '<img width=24 height=15 src=//img.new-combats.tech/i/clan/' . $pl [ 'wclan' ] . '.gif>' . $wuser ;
2022-06-06 21:30:34 +00:00
}
if ( $pl [ 'walign' ] > 0 ) {
2023-03-31 18:30:14 +00:00
$wuser = '<img width=12 height=15 src=//img.new-combats.tech/i/align/align' . $pl [ 'walign' ] . '.gif>' . $wuser ;
2022-06-06 21:30:34 +00:00
}
2023-01-10 16:29:32 +00:00
echo $i . '. Победитель: ' . $wuser . ' Начало турнира <span class=date>' . date ( 'd.m.Y H:i' ,( $pl [ 'time_start' ] + 60 )) . '</span> продолжительность <span class=date>' . $u -> timeOut ( $pl [ 'time_sf' ] ) . '</span> приз: <b>' . $pl [ 'money' ] . '</b> <a target=_blank href=/towerlog.php?towerid=' . $pl [ 'bsid' ] . '&id=' . $pl [ 'count' ] . ' >История турнира »»</a><br>' ;
2022-06-06 21:30:34 +00:00
$i ++ ;
}
?>
2023-01-10 16:29:32 +00:00
< h4 > Максимальный выигрыш для 5 < ? //=$t['level']?> уровней</h4>
2023-03-31 18:42:06 +00:00
< ? php
2022-06-06 21:30:34 +00:00
$sp = mysql_query ( 'SELECT * FROM `bs_statistic` WHERE `wuid` > 0 ORDER BY `money` DESC LIMIT 1' );
$i = 1 ;
while ( $pl = mysql_fetch_array ( $sp )) {
2023-03-31 18:30:14 +00:00
$wuser = '<b>' . $pl [ 'wlogin' ] . '</b> [' . $pl [ 'wlevel' ] . ']<a href=/info/' . $pl [ 'wuid' ] . ' target=_blank ><img width=12 height=11 src=//img.new-combats.tech/i/inf_capitalcity.gif ></a>' ;
2022-06-06 21:30:34 +00:00
if ( $pl [ 'wclan' ] > 0 ) {
2023-03-31 18:30:14 +00:00
$wuser = '<img width=24 height=15 src=//img.new-combats.tech/i/clan/' . $pl [ 'wclan' ] . '.gif>' . $wuser ;
2022-06-06 21:30:34 +00:00
}
if ( $pl [ 'walign' ] > 0 ) {
2023-03-31 18:30:14 +00:00
$wuser = '<img width=12 height=15 src=//img.new-combats.tech/i/align/align' . $pl [ 'walign' ] . '.gif>' . $wuser ;
2022-06-06 21:30:34 +00:00
}
2023-01-10 16:29:32 +00:00
echo 'Победитель: ' . $wuser . ' Начало турнира <span class=date>' . date ( 'd.m.Y H:i' ,( $pl [ 'time_start' ] + 60 )) . '</span> продолжительность <span class=date>' . $u -> timeOut ( $pl [ 'time_sf' ] ) . '</span> приз: <b>' . $pl [ 'money' ] . '</b> <a target=_blank href=/towerlog.php?towerid=' . $pl [ 'bsid' ] . '&id=' . $pl [ 'count' ] . ' >История турнира »»</a><br>' ;
2022-06-06 21:30:34 +00:00
$i ++ ;
}
?>
2023-01-10 16:29:32 +00:00
< h4 > Самый продолжительный турнир для 5 < ? //=$t['level']?> уровней</h4>
2023-03-31 18:42:06 +00:00
< ? php
2022-06-06 21:30:34 +00:00
$sp = mysql_query ( 'SELECT * FROM `bs_statistic` WHERE `wuid` > 0 ORDER BY `time_sf` DESC LIMIT 1' );
$i = 1 ;
while ( $pl = mysql_fetch_array ( $sp )) {
2023-03-31 18:30:14 +00:00
$wuser = '<b>' . $pl [ 'wlogin' ] . '</b> [' . $pl [ 'wlevel' ] . ']<a href=/info/' . $pl [ 'wuid' ] . ' target=_blank ><img width=12 height=11 src=//img.new-combats.tech/i/inf_capitalcity.gif ></a>' ;
2022-06-06 21:30:34 +00:00
if ( $pl [ 'wclan' ] > 0 ) {
2023-03-31 18:30:14 +00:00
$wuser = '<img width=24 height=15 src=//img.new-combats.tech/i/clan/' . $pl [ 'wclan' ] . '.gif>' . $wuser ;
2022-06-06 21:30:34 +00:00
}
if ( $pl [ 'walign' ] > 0 ) {
2023-03-31 18:30:14 +00:00
$wuser = '<img width=12 height=15 src=//img.new-combats.tech/i/align/align' . $pl [ 'walign' ] . '.gif>' . $wuser ;
2022-06-06 21:30:34 +00:00
}
2023-01-10 16:29:32 +00:00
echo 'Победитель: ' . $wuser . ' Начало турнира<span class=date>' . date ( 'd.m.Y H:i' ,( $pl [ 'time_start' ] + 60 )) . '</span> продолжительность <span class=date>' . $u -> timeOut ( $pl [ 'time_sf' ] ) . '</span> приз: <b>' . $pl [ 'money' ] . '</b> <a target=_blank href=/towerlog.php?towerid=' . $pl [ 'bsid' ] . '&id=' . $pl [ 'count' ] . ' >История турнира »»</a><br>' ;
2022-06-06 21:30:34 +00:00
$i ++ ;
}
?>
< br />< br />
2023-03-31 16:54:33 +00:00
< ? php } } ?>