Вызов логина персонажа по единому стандарту.

This commit is contained in:
2023-12-01 00:51:17 +02:00
parent 774bc82556
commit 5f25fcd7e5
34 changed files with 104 additions and 147 deletions

View File

@@ -1068,11 +1068,10 @@ if (isset($p['id']) || $u->info['align'] == 1 || $u->info['align'] == 3) {
while ($plbip = mysql_fetch_array($spbip)) {
$plbipl .= '<span class="date1">' . date(
'd.m.Y H:i', $plbip['time']
) . '</span> - ' . $plbip['ip'] . ' (' . $u->microLogin(
$plbip['uid'], 1
) . ') <input onclick="location.href=\'main.php?' . $zv . '&unblock_ip=' . htmlspecialchars(
$plbip['ip']
) . '&blockip_list=1\'" type="button" value="&nbsp; - &nbsp;"><br>';
) . '</span> - ' . $plbip['ip'] . ' (' . $u->getLogin($plbip['uid']) .
') <input onclick="location.href=\'main.php?' . $zv . '&unblock_ip=' .
htmlspecialchars($plbip['ip']) .
'&blockip_list=1\'" type="button" value="&nbsp; - &nbsp;"><br>';
}
if ($plbipl != '') {
echo '<b>Список заблокированных IP:</b><br>' . $plbipl;
@@ -1354,7 +1353,7 @@ if (isset($p['id']) || $u->info['align'] == 1 || $u->info['align'] == 3) {
);
if (isset($tst['id']) && $tst['admin'] == 0 && ($tst['no_ip'] == 0 || $tst['no_ip'] == '')) {
if (!isset($ursz[$pl['uid']])) {
$ursz[$pl['uid']] = $u->microLogin($pl['uid'], 1);
$ursz[$pl['uid']] = $u->getLogin($pl['uid']);
}
$de = mysql_fetch_array(
mysql_query(
@@ -1572,9 +1571,10 @@ if (isset($p['id']) || $u->info['align'] == 1 || $u->info['align'] == 3) {
$rt .= '<div style="border-top:1px solid grey;padding:5px;">' . $i . '. <span class="date1">' . date(
'd.m.y H:i', $pl['time']
) . '</span> <b>' . $u->microLogin(
$pl['uid'], 1
) . '</b> , &quot;' . $types[$pl['type']][0] . '&quot; , Анимация: <b>' . $va[$pl['animation']] . '</b> , Изображение для клана: <b>' . $va[$plcln] . '</b> , <img onclick="imresize(this,' . $types[$pl['type']][2] . ',' . $types[$pl['type']][1] . ');" style="border:1px solid blue;cursor:pointer;" src="/clan_prw/' . $pl['src'] . '" height="20">';
) . '</span> <b>' . $u->getLogin($pl['uid']) . '</b> , &quot;' .
$types[$pl['type']][0] . '&quot; , Анимация: <b>' . $va[$pl['animation']] .
'</b> , Изображение для клана: <b>' . $va[$plcln] .
'</b> , <img onclick="imresize(this,' . $types[$pl['type']][2] . ',' . $types[$pl['type']][1] . ');" style="border:1px solid blue;cursor:pointer;" src="/clan_prw/' . $pl['src'] . '" height="20">';
$rt .= ' <input onclick="location.href=\'main.php?admin=1&grood_img=' . $pl['id'] . '\'" type="button" value="Принять" style="background:#E2EDD8"> <input type="button" onclick="location.href=\'main.php?admin=1&bad_img=' . $pl['id'] . '\'" style="background:#FCC9CA" value="Отказать"> <br>';
@@ -2073,9 +2073,7 @@ if (isset($p['id']) || $u->info['align'] == 1 || $u->info['align'] == 3) {
);
$html = '';
while ($pl = mysql_fetch_array($sp)) {
$html .= $u->microLogin(
$pl['id'], 1
) . ' -> <b>' . $pl['login'] . '</b> (id ' . $pl['id'] . ')<br>';
$html .= $u->getLogin($pl['id']) . ' -> <b>' . $pl['login'] . '</b> (id ' . $pl['id'] . ')<br>';
}
if ($html == '') {
$html = '<b style="color:red">Нет персонажей-невидимок</b>';
@@ -2163,7 +2161,7 @@ if (isset($p['id']) || $u->info['align'] == 1 || $u->info['align'] == 3) {
$i = 1;
echo '<br><b><font color=red>Персонажи зарегистрированные ' . $pld520 . '</font></b>';
while ($pl = mysql_fetch_array($sp)) {
$urt5202 = '<br>' . $i . '. ' . $u->microLogin($pl['id'], 1) . '';
$urt5202 = '<br>' . $i . '. ' . $u->getLogin($pl['id']);
if ($pl['banned'] > 0) {
$urt5202 = '<font color=red>' . $urt5202 . '</font>';
@@ -2177,9 +2175,7 @@ if (isset($p['id']) || $u->info['align'] == 1 || $u->info['align'] == 3) {
$urt5202 .= ' <a href="/logs.php?log=' . $pl['battle'] . '" target="_blank"><img src=//img.new-combats.tech/i/fighttype0.gif title="Персонаж в поединке"></a>';
}
if ($pl['host_reg'] > 0) {
$urt5202 .= ' &nbsp; <small>(Реферал персонажа ' . $u->microLogin(
$pl['host_reg'], 1
) . ')</small>';
$urt5202 .= ' &nbsp; <small>(Реферал персонажа ' . $u->getLogin($pl['host_reg']) . ')</small>';
}
$urt520 .= $urt5202;
$i++;
@@ -2221,7 +2217,7 @@ if (isset($p['id']) || $u->info['align'] == 1 || $u->info['align'] == 3) {
);
if (isset($tst['id']) && $tst['admin'] == 0 && ($tst['no_ip'] == '' && $tst['no_ip'] == 0)) {
if (!isset($ursz[$pl['uid']])) {
$ursz[$pl['uid']] = $u->microLogin($pl['uid'], 1);
$ursz[$pl['uid']] = $u->getLogin($pl['uid']);
}
$r .= '<div style="padding:0 10px 5px 10px; margin:5px; border-bottom:1px solid #cac9c7;">';
$r .= '<span style="display:inline-block;width:30px">' . $i . '.</span> <span style="display:inline-block;width:250px">' . $ursz[$pl['uid']] . '</span>';
@@ -2281,7 +2277,7 @@ if (isset($p['id']) || $u->info['align'] == 1 || $u->info['align'] == 3) {
$rdl .= '<div style="display:inline-block;width:150px;color:green">' . date(
'd.m.Y H:i:s', $pl['time']
) . '</div>';
$rdl .= $pl['text'] . ' персонажу ' . $u->microLogin($pl['uid'], 1);
$rdl .= $pl['text'] . ' персонажу ' . $u->getLogin($pl['uid']);
$rdl .= '</div>';
}
if ($rdl == '') {