|
{$lang['ip_found_users']} |
|
|
|
|
{$lang['ip_found_comments']} |
{$lang['user_name']} |
IP |
{$lang['user_reg']} |
{$lang['user_last']} |
{$lang['user_news']} |
{$lang['user_coms']} |
{$lang['user_acc']} |
|
HTML;
$db->query( "SELECT " . PREFIX . "_comments.user_id, " . PREFIX . "_comments.ip, " . USERPREFIX . "_users.comm_num, banned, user_group, reg_date, lastdate, " . USERPREFIX . "_users.name, " . USERPREFIX . "_users.news_num FROM " . PREFIX . "_comments LEFT JOIN " . USERPREFIX . "_users ON " . PREFIX . "_comments.user_id=" . USERPREFIX . "_users.user_id WHERE " . PREFIX . "_comments.ip LIKE '{$ip}%' AND " . PREFIX . "_comments.is_register = '1' AND " . USERPREFIX . "_users.name != '' GROUP BY " . PREFIX . "_comments.user_id" );
$i = 0;
while ( $row = $db->get_array() ) {
$i ++;
if( $row[news_num] == 0 ) {
$news_link = "$row[news_num]";
} else {
$news_link = "[" . $row[news_num] . "]";
}
if( $row[comm_num] == 0 ) {
$comms_link = $row['comm_num'];
} else {
$comms_link = "[" . $row[comm_num] . "]";
}
if( $row['banned'] == 'yes' ) $group = "" . $lang['user_ban'] . "";
else $group = $user_group[$row['user_group']]['group_name'];
echo "
{$row['name']}
|
" . $row['ip'] . " |
" . langdate( "d/m/Y - H:i", $row['reg_date'] ) . " |
" . langdate( 'd/m/Y - H:i', $row['lastdate'] ) . " |
" . $news_link . " |
" . $comms_link . " |
" . $group . " |
|
";
}
if( $i == 0 ) {
echo "
$lang[ip_empty]
| ";
}
echo <<
|
|
|
|
HTML;
}
if( $name != "" ) {
echo <<
HTML;
}
echofooter();
?> | |