2023-03-31 18:42:06 +00:00
|
|
|
|
<?php
|
2023-06-11 11:45:36 +00:00
|
|
|
|
if (!defined('GAME')) {
|
|
|
|
|
die();
|
2022-06-06 21:30:34 +00:00
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
<style>
|
2023-06-11 11:45:36 +00:00
|
|
|
|
.row {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
2022-06-06 21:30:34 +00:00
|
|
|
|
</style>
|
|
|
|
|
<SCRIPT>
|
2023-06-11 11:45:36 +00:00
|
|
|
|
function w(login, id, align, klan, level, online, city, battle) {
|
|
|
|
|
let nlevel = 0,
|
|
|
|
|
from = Array('+', ' ', '#'),
|
|
|
|
|
to = Array('%2B', '+', '%23'),
|
|
|
|
|
s = '';
|
|
|
|
|
const img = <?= \Core\Config::img() ?>
|
2022-06-06 21:30:34 +00:00
|
|
|
|
|
2023-06-11 11:45:36 +00:00
|
|
|
|
if (online) {
|
|
|
|
|
if (city) {
|
|
|
|
|
s += '<IMG style="filter:gray()" SRC=' + img + '/i/lock.gif WIDTH=20 HEIGHT=15 ALT="В другом городе">';
|
|
|
|
|
} else {
|
|
|
|
|
s += '<a href="javascript:void(0)" onclick="top.chat.addto(\'' + login + '\',\'private\')"><IMG SRC=' + img + '/i/lock.gif WIDTH=20 HEIGHT=15 ALT="Приватно"' + (battle ? ' style="filter: invert()"' : '') + '></a>';
|
|
|
|
|
}
|
|
|
|
|
if (city) {
|
|
|
|
|
s += '<img src="' + img + '/city/' + city + '.gif" width=17 height=15>';
|
|
|
|
|
}
|
|
|
|
|
s += ' <IMG SRC=' + img + '/i/align/align' + align + '.gif WIDTH=12 HEIGHT=15>';
|
|
|
|
|
if (klan) {
|
|
|
|
|
s += '<A HREF="/encicl/klan/' + klan + '.html" target=_blank><IMG SRC="' + img + '/i/clan/' + klan + '.gif" WIDTH=24 HEIGHT=15 ALT=""></A>'
|
|
|
|
|
}
|
|
|
|
|
s += '<a href="javascript:void(0)" onclick="top.chat.addto(\'' + login + '\',\'to\')">' + login + '</a>[' + level + ']<a href=/info/' + id + ' target=_blank><IMG SRC=' + img + '/i/inf.gif WIDTH=12 HEIGHT=11 ALT="Информация о персонаже"></a>';
|
|
|
|
|
s += '</td><td bgcolor=efeded nowrap>';
|
|
|
|
|
if (city) {
|
|
|
|
|
s += "нет в этом городе";
|
|
|
|
|
} else {
|
|
|
|
|
s += online;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
s += '<IMG SRC="' + img + '/i/offline.gif" WIDTH=20 HEIGHT=15 BORDER=0 ALT="Нет в клубе">';
|
|
|
|
|
if (city) {
|
|
|
|
|
s += '<img src="' + img + '/city/' + city + '.gif" width=17 height=15>';
|
|
|
|
|
}
|
|
|
|
|
if (align == "") align = "0";
|
|
|
|
|
s += ' <IMG SRC=' + img + '/i/align/align' + align + '.gif WIDTH=12 HEIGHT=15>';
|
|
|
|
|
if (klan != '') {
|
|
|
|
|
s += '<A HREF="/encicl/klan/' + klan + '.html" target=_blank><IMG SRC="' + img + '/i/clan/' + klan + '.gif" WIDTH=24 HEIGHT=15 ALT=""></A>'
|
|
|
|
|
}
|
|
|
|
|
if (level) {
|
|
|
|
|
if (nlevel == 0) {
|
|
|
|
|
nlevel = 1; //s="<BR>"+s;
|
|
|
|
|
}
|
|
|
|
|
s += '<FONT color=gray><b>' + login + '</b>[' + level + ']<a href=/info/' + id + ' target=_blank><IMG SRC=' + img + '/i/inf.gif WIDTH=12 HEIGHT=11 ALT="Информация о персонаже"></a></td><td bgcolor=efeded nowrap>Нет в клубе';
|
|
|
|
|
} 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]);
|
|
|
|
|
s += '<FONT color=gray><i>' + login + '</i> <a href=/info/' + mlogin + ' target=_blank><IMG SRC=' + img + '/i/inf_dis.gif WIDTH=12 HEIGHT=11 ALT="Информация о персонаже"></a></td><td bgcolor=efeded nowrap>нет в этом городе';
|
|
|
|
|
}
|
|
|
|
|
s += '</FONT>';
|
|
|
|
|
}
|
|
|
|
|
document.write(s + '<BR>');
|
|
|
|
|
}
|
2022-06-06 21:30:34 +00:00
|
|
|
|
</SCRIPT>
|
|
|
|
|
</HEAD>
|
2023-06-11 11:45:36 +00:00
|
|
|
|
<body leftmargin=5 topmargin=5 marginwidth=0 marginheight=0 bgcolor=#e2e0e0>
|
|
|
|
|
<div id=hint4 class=ahint></div>
|
2022-06-06 21:30:34 +00:00
|
|
|
|
<table width=100%>
|
2023-06-11 11:45:36 +00:00
|
|
|
|
<tr>
|
|
|
|
|
<td align=right>
|
|
|
|
|
<INPUT TYPE="button" onClick="location.href='main.php';" value="Вернуться" title="Вернуться">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td valign=top>
|
|
|
|
|
<center>
|
|
|
|
|
<h3>Орден Света</h3>
|
|
|
|
|
<table>
|
|
|
|
|
<?php $data = mysql_query(
|
|
|
|
|
"SELECT `id`,`login`,`level`,`align`,`room`,`online`,`city`, `battle`,
|
2022-06-06 21:30:34 +00:00
|
|
|
|
(select `name` from `room` WHERE `id` = users.`room`) as `room`
|
2023-06-11 11:45:36 +00:00
|
|
|
|
FROM `users` WHERE `align`>1 AND `align`<2 ORDER BY `align` DESC, `online` DESC;"
|
|
|
|
|
);
|
|
|
|
|
while ($us = mysql_fetch_array($data)) {
|
|
|
|
|
if ($u->info['city'] == $us['city']) {
|
|
|
|
|
$us['city'] = '';
|
|
|
|
|
}
|
|
|
|
|
if ($us['online'] > (time() - 120)) {
|
|
|
|
|
$rrm = $us['room'];
|
|
|
|
|
} else {
|
|
|
|
|
$rrm = '';
|
|
|
|
|
}
|
|
|
|
|
echo "<TR valign=\"top\">
|
2022-06-06 21:30:34 +00:00
|
|
|
|
<TD bgcolor=efeded nowrap>
|
2023-06-11 11:45:36 +00:00
|
|
|
|
<SCRIPT>w('" . $us['login'] . "','" . $us['id'] . "','" . $us['align'] . "','','" . $us['level'] . "','" . $rrm . "','" . $us['city'] . "','" . $us['battle'] . "');</SCRIPT></TD></TR>";
|
|
|
|
|
} ?>
|
|
|
|
|
|
2022-06-06 21:30:34 +00:00
|
|
|
|
|
2023-06-11 11:45:36 +00:00
|
|
|
|
</table>
|
|
|
|
|
</center>
|
|
|
|
|
</td>
|
2022-06-06 21:30:34 +00:00
|
|
|
|
|
2023-06-11 11:45:36 +00:00
|
|
|
|
</tr>
|
2022-06-06 21:30:34 +00:00
|
|
|
|
</table>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|