2023-03-31 18:42:06 +00:00
< ? php
2022-06-06 21:30:34 +00:00
if ( ! defined ( 'GAME' )) {
die ();
}
?>
< script type = " text/javascript " src = " js/jquery.js " ></ script >
< script >
var nlevel = 0 ;
var from = Array ( '+' , ' ' , '#' );
var to = Array ( '%2B' , '+' , '%23' );
function w ( login , id , align , klan , level , online , city , battle ){
var s = '' ;
if ( online != " " ) {
if ( city != " " ) {
2023-03-31 18:30:14 +00:00
s += '<img src=//img.new-combats.tech/1x1.gif width="20" height="15" alt="В другом городе" />' ;
2022-06-06 21:30:34 +00:00
} else {
2023-03-31 18:30:14 +00:00
s += '<a href="javascript:top.chat.addto(\'' + login + '\',\'private\');"><img src=//img.new-combats.tech/i/lock.gif width="20" height="15" alt="Приватно" /></a>' ;
2022-06-06 21:30:34 +00:00
}
if ( city != " " ) {
2023-03-31 18:30:14 +00:00
s += '<img title="' + city + '" src="//img.new-combats.tech/i/city_ico/' + city + '.gif" width="17" height="15" />' ;
2022-06-06 21:30:34 +00:00
}
2023-03-31 18:30:14 +00:00
s += ' <img src="//img.new-combats.tech/i/align/align' + align + '.gif" width="12" height="15" />' ;
2022-06-06 21:30:34 +00:00
2023-03-31 18:30:14 +00:00
if ( klan != '' ) { s += '<a href="/encicl/klan/' + klan + '.html" target="_blank"><img src="//img.new-combats.tech/i/clan/' + klan + '.gif" width="24" height="15" /></a>' }
s += '<a href="javascript:top.chat.addto(\'' + login + '\',\'to\');">' + login + '</a>[' + level + ']<a href="/info/' + id + '" target="_blank"><img src="//img.new-combats.tech/i/inf_capitalcity.gif" width="12" height="11" alt="Информация о персонаже" /></a>' ;
2022-06-06 21:30:34 +00:00
if ( city != " " ) {
2023-01-10 16:29:32 +00:00
s += " - нет в этом городе " ;
2022-06-06 21:30:34 +00:00
} else {
s += ' - ' + online ;
}
} else {
2023-03-31 18:30:14 +00:00
s += '<img src="//img.new-combats.tech/i/offline.gif" width="20" height="15" border="0" alt="Нет в клубе" />' ;
2022-06-06 21:30:34 +00:00
if ( city != " " ) {
2023-03-31 18:30:14 +00:00
s += '<img title="' + city + '" src="//img.new-combats.tech/i/city_ico/' + city + '.gif" width="17" height="15" />' ;
2022-06-06 21:30:34 +00:00
}
if ( align == " " ) align = " 0 " ;
2023-03-31 18:30:14 +00:00
s += ' <img src="//img.new-combats.tech/i/align/align' + align + '.gif" width="12" height="15" />' ;
if ( klan != '' ) { s += '<a href="https://<?= $c[' host ']; ?>/encicl/clan/' + klan + '.html" target="_blank"><img src="//img.new-combats.tech/i/klan/' + klan + '.gif" width="24" height="15" /></a>' }
2022-06-06 21:30:34 +00:00
if ( level ) {
if ( nlevel == 0 ) {
nlevel = 1 ; s = " <br /> " + s ;
}
2023-03-31 18:30:14 +00:00
s += '<font color=gray><b>' + login + '</b>[' + level + ']<a href="/info/' + id + '" target="_blank"><img src="//img.new-combats.tech/i/inf.gif" width="12" height="11" alt="Информация о персонаже" /></a> - Нет в клубе' ;
2022-06-06 21:30:34 +00:00
} else {
if ( nlevel == 1 ) {
nlevel = 2 ; s = " <br /> " + s ;
}
mlogin = login ;
for ( var i = 0 ; i < from . length ; ++ i ) while ( mlogin . indexOf ( from [ i ]) >= 0 ) mlogin = mlogin . replace ( from [ i ], to [ i ]);
2023-03-31 18:30:14 +00:00
s += '<font color=gray><i>' + login + '</i> <a href="/info/' + mlogin + '" target="_blank"><img src="//img.new-combats.tech/i/inf_.gif" width="12" height="11" alt="Информация о персонаже" /></a> - нет в этом городе' ;
2022-06-06 21:30:34 +00:00
}
s += '</font>' ;
}
document . write ( s + '<br />' );
}
</ script >
< div id = hint4 class = ahint ></ div >
< TABLE cellspacing = 0 cellpadding = 2 width = 100 %>
< TR >
< TD style = " width: 40%; vertical-align: top; " >< br />
< TABLE cellspacing = 0 cellpadding = 2 style = " width: 100%; " >
< TR >
2023-01-10 16:29:32 +00:00
< TD align = center >< h4 > Алхимики </ h4 ></ TD >
2022-06-06 21:30:34 +00:00
</ TR >
< TR >
< TD bgcolor = efeded nowrap >< SCRIPT >
2023-03-31 18:42:06 +00:00
< ? php
2022-06-06 21:30:34 +00:00
$data = mysql_query ( " SELECT `id`, `login`, `align`, `level`, `battle`, `online`, `city`, (select `name` from `room` WHERE `id` = users.`room`) as `room` FROM `users` WHERE `align` = '50' order by online DESC, login asc; " );
$i = 0 ;
while ( $a = mysql_fetch_array ( $data ))
{
if ( $a [ 'online' ] > ( time () - 120 ))
{
$online = $a [ 'room' ];
$id = $a [ 'id' ];
$level = $a [ 'level' ];
$battle = $a [ 'battle' ];
} elseif ( $a [ 'online' ] < ( time () - 120 ))
{
$online = '' ;
$id = '' ;
$level = '' ;
$battle = '' ;
}
//w( login, id, align, klan, level, online, city, battle){
$citya = $a [ 'city' ];
if ( $a [ 'city' ] == $u -> info [ 'city' ])
{
$citya = '' ;
}
echo 'w("' . $a [ 'login' ] . '","' . $id . '","' . $a [ 'align' ] . '","","' . $level . '","' . $online . '","' . $citya . '","' . $battle . '");' ;
$i ++ ;
}
$pl = mysql_fetch_array ( mysql_query ( 'SELECT * FROM `bank_table` ORDER BY `time` DESC LIMIT 1' ));
?>
</ SCRIPT >
2023-03-31 18:42:06 +00:00
< ? php
2022-06-06 21:30:34 +00:00
if ( $i == 0 ) {
2023-01-10 16:29:32 +00:00
echo '<center>Нет ни одного назначенного Алхимика</cetner>' ;
2022-06-06 21:30:34 +00:00
}
?>
< TR >
2023-01-10 16:29:32 +00:00
< TD style = " text-align: left; " >< small > К у р с покупки ЕвроКредитов : < b > 1 </ b > eкр . = < b >< ? = round ( $pl [ 'cur' ], 2 ) ?> </b>р у б .<br>
К у р с обмена ЕвроКредитов : < b > 1 </ b > екр = < b >< ? = $c [ 'ecrtocr' ] ?> </b> кр.<br>
2023-03-31 18:42:06 +00:00
< ? php
2022-06-06 21:30:34 +00:00
if ( $c [ 'crtoecr' ] > 0 ) {
?>
2023-01-10 16:29:32 +00:00
К у р с обмена Кредитов : < ? = $c [ 'crtoecr' ] ?> кр = 1 екр.<br>
2023-03-31 18:42:06 +00:00
< ? php
2022-06-06 21:30:34 +00:00
}
2023-01-10 16:29:32 +00:00
?> Продают еврокредиты и прочие платные услуги сервиса<BR>Вы можете отправить им личное сообщение, даже если Вы и Алхимик находитесь в разных городах</small></div></TD>
2022-06-06 21:30:34 +00:00
</ TR >
< TR >
< TD style = " text-align: left; " >& nbsp ; </ TD >
</ TR >
</ TABLE >
< br />
< table >
< tr >
< td valign = " top " >< fieldset >
2023-01-10 16:29:32 +00:00
< legend >< b > К у р с еврокредита к мировой валюте </ b > </ legend >
2022-06-06 21:30:34 +00:00
< table width = " 100% " border = " 0 " cellpadding = " 2 " cellspacing = " 0 " >
2023-03-31 18:42:06 +00:00
< ? php
2022-06-06 21:30:34 +00:00
if ( isset ( $pl [ 'id' ])) {
?>
< tr >
2023-01-10 16:29:32 +00:00
< td >< small > Данные на < b >< ? = date ( 'd.m.y H:i' , $pl [ 'time' ]) ?> </b> без учета комиссий</small></td>
2022-06-06 21:30:34 +00:00
</ tr >
2023-03-31 18:42:06 +00:00
< ? php
2022-06-06 21:30:34 +00:00
$pl [ 'RUB' ] = 40 ;
$i = 0 ;
$true = array (
2023-01-10 16:29:32 +00:00
array ( 'USD' , 'долларов США' ),
array ( 'EUR' , 'Е В Р О ' ),
array ( 'RUB' , 'российских рублей' ),
array ( 'UAH' , 'укр. гривен' ),
array ( 'BYR' , 'белорусских рублей' ),
array ( 'AZN' , 'азербайджанских манат' ),
array ( 'GBP' , 'англ. фунтов стерлингов' )
2022-06-06 21:30:34 +00:00
);
while ( $i < count ( $true )) {
?>
< tr >
2023-01-10 16:29:32 +00:00
< td >< span > 1 екр . = </ span >< span style = " display:inline-block;width:100px " >< b >< ? = round ( ( $pl [ 'cur' ] / $pl [ $true [ $i ][ 0 ]]) , 4 ) ?> </b></span><span><?=$true[$i][1]?></span></td>
2022-06-06 21:30:34 +00:00
</ tr >
2023-03-31 18:42:06 +00:00
< ? php
2022-06-06 21:30:34 +00:00
$i ++ ;
}
} else {
?>
< tr >
2023-01-10 16:29:32 +00:00
< td >< small >< center >< font color = grey > Н е удалось получить информацию </ font ></ center ></ small ></ td >
2022-06-06 21:30:34 +00:00
</ tr >
2023-03-31 16:54:33 +00:00
< ? php } ?>
2022-06-06 21:30:34 +00:00
</ table >
</ fieldset ></ td >
</ tr >
</ table >
</ TD >
< TD style = " width: 5%; vertical-align: top; " >& nbsp ; </ TD >
2023-01-10 16:29:32 +00:00
< TD style = " width: 25%; vertical-align: top; text-align: right; " >< INPUT class = " btn " type = 'button' value = 'Обновить' style = 'width: 100px' onclick = 'location="/main.php?alh&rnd=<?=$code?>"' ; ' >
& nbsp ; < INPUT TYPE = button value = " Вернуться " class = " btn " style = " width: 100px " onclick = 'location="/main.php"' ></ TD >
2022-06-06 21:30:34 +00:00
</ TR >
</ TABLE >
< DIV >
2023-03-31 16:54:33 +00:00
< ? = $c [ 'counters' ]; ?>
2022-06-06 21:30:34 +00:00
</ DIV >