Файл: sys/info/foot.php
Строк: 108
<?php
if ($user['level'] > 0) {
if ($user['level'] > $ank['level']) {
echo "<div class='list-group-item'>";
if ($ank['ip'] != NULL) {
if (user_access('user_show_ip') && $ank['ip'] != 0) {
echo "<span class='fa fa-laptop fa-fw'></span> IP: <span style='color:grey;'>" . long2ip($ank['ip']) . "</span>";
if (user_access('adm_ban_ip')) {
echo " <a href='" . APANEL . "/ban_ip.php?min=$ank[ip]'><span class='label label-default'>" . lang('Забанить') . "</span></a>";
}
echo "<br />n";
}
}
if ($ank['ip_cl'] != NULL) {
if (user_access('user_show_ip') && $ank['ip_cl'] != 0) {
echo "<span class='fa fa-laptop fa-fw'></span> IP (CLIENT): <span style='color:grey;'>" . long2ip($ank['ip_cl']) . "</span>";
if (user_access('adm_ban_ip')) {
echo " <a href='" . APANEL . "/ban_ip.php?min=$ank[ip_cl]'><span class='label label-default'>" . lang('Забанить') . "</span></a>";
}
echo "<br />n";
}
}
if ($ank['ip_xff'] != NULL) {
if (user_access('user_show_ip') && $ank['ip_xff'] != 0) {
echo "<span class='fa fa-laptop fa-fw'></span> IP (XFF): <span style='color:grey;'>" . long2ip($ank['ip_xff']) . "</span>";
if (user_access('adm_ban_ip')) {
echo " <a href='" . APANEL . "/ban_ip.php?min=$ank[ip_xff]'><span class='label label-default'>" . lang('Забанить') . "</span></a>";
}
echo "<br />n";
}
}
if (user_access('user_show_ua') && $ank['ua'] != NULL) {
echo "<span class='fa fa-globe fa-fw'></span> UA: <span style='color:grey;'>$ank[ua]</span><br />n";
}
if (user_access('user_show_ip') && opsos($ank['ip'])) {
echo "<span class='fa fa-object-ungroup fa-fw'></span> Пров: <span style='color:grey;'>" . opsos($ank['ip']) . "</span><br />n";
}
if (user_access('user_show_ip') && opsos($ank['ip_cl'])) {
echo "<span class='fa fa-object-ungroup fa-fw'></span> Пров (CL): <span style='color:grey;'>" . opsos($ank['ip_cl']) . "</span><br />n";
}
if (user_access('user_show_ip') && opsos($ank['ip_xff'])) {
echo "<span class='fa fa-object-ungroup fa-fw'></span> Пров (XFF): <span style='color:grey;'>" . opsos($ank['ip_xff']) . "</span><br />n";
}
echo "</div>";
}
if (user_access('adm_ref') && ($ank['level'] < $user['level'] ) && mysql_result(query("SELECT COUNT(*) FROM `user_ref` WHERE `id_user` = '$ank[id]'"), 0)) {
echo "<div class='list-group-item'>";
$q = query("SELECT * FROM `user_ref` WHERE `id_user` = '$ank[id]' ORDER BY `time` DESC LIMIT $set[p_str]");
echo "<span class='fa fa-location-arrow fa-fw'></span> " . lang('Посещаемые сайты') . ":<br />";
while ($url = mysql_fetch_assoc($q)) {
$site = htmlentities($url['url'], ENT_QUOTES, 'UTF-8');
echo "<a " . ( $set['web'] ? " target='_blank'" : null) . " href='/linkGo?go=" . base64_encode("http://$site") . "'>$site</a> (" . vremja($url['time']) . ")<br />n";
}
echo "</div>n";
}
}
if ($user['level'] > $ank['level']) {
echo "<div class='list-group-item'>";
if ($user['id'] != $ank['id']) {
if (user_access('user_delete')) {
echo "<a href='" . APANEL . "/delete_user.php?id=$ank[id]'><span class='fa fa-trash-o fa-fw'></span> " . lang('Удалить пользователя') . "</a>";
}
}
if (user_access('adm_log_read') && $ank['level'] != 0 && ($ank['id'] == $user['id'] || $ank['level'] < $user['level'])) {
echo "<a href='" . APANEL . "/adm_log.php?id=$ank[id]'><span class='fa fa-list-alt fa-fw'></span> " . lang('Отчет по администрированию') . "</a>";
}
echo "</div>";
}