Код: Выделить всё
##############################################################
## MOD Title: User Host On ACP Index
## MOD Author: Vladson < dkflbk@nm.ru > (n/a) http://dkflbk.nm.ru/
## MOD Description: some_description_goes_here
## MOD Version: 0.0.2
##
## Installation Level: (Easy)
## Installation Time: 4 Minutes
## Files To Edit (2) :
## admin/index.php
## templates/subSilver/admin/index_body.tpl
## Included Files: (n/a)
##############################################################
## Author Notes:
##
##############################################################
## MOD History:
##
## 2004-11-24 - Version 0.0.2a
## - 2nd Beta...
##
## 2004-11-23 - Version 0.0.1
## - 1st Beta...
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
admin/index.php
#
#-----[ FIND ]------------------------------------------
#
$reg_ip = decode_ip($onlinerow_reg[$i]['session_ip']);
#
#-----[ AFTER, ADD ]------------------------------------------
#
$reg_host = gethostbyaddr($reg_ip);
#
#-----[ FIND ]------------------------------------------
#
$template->assign_block_vars("reg_user_row", array(
"ROW_COLOR" => "#" . $row_color,
"ROW_CLASS" => $row_class,
"USERNAME" => $username,
#
#-----[ AFTER, ADD ]------------------------------------------
#
"HOST" => ($reg_ip != $reg_host) ? $reg_host : $lang['IP_Address'],
#
#-----[ FIND ]------------------------------------------
#
$guest_ip = decode_ip($onlinerow_guest[$i]['session_ip']);
#
#-----[ AFTER, ADD ]------------------------------------------
#
$guest_host = gethostbyaddr($guest_ip);
#
#-----[ FIND ]------------------------------------------
#
$template->assign_block_vars("guest_user_row", array(
"ROW_COLOR" => "#" . $row_color,
"ROW_CLASS" => $row_class,
"USERNAME" => $lang['Guest'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
"HOST" => ($guest_ip != $guest_host) ? $guest_host : $lang['IP_Address'],
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/index_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<td width="20%" class="{reg_user_row.ROW_CLASS}"> <span class="gen"><a href="{reg_user_row.U_WHOIS_IP}" class="gen" target="_phpbbwhois">{reg_user_row.IP_ADDRESS}</a></span> </td>
#
#-----[ IN-LINE FIND ]------------------------------------------
#
target="_phpbbwhois"
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
title="{reg_user_row.HOST}"
#
#-----[ FIND ]------------------------------------------
#
<td width="20%" class="{guest_user_row.ROW_CLASS}"> <span class="gen"><a href="{guest_user_row.U_WHOIS_IP}" target="_phpbbwhois">{guest_user_row.IP_ADDRESS}</a></span> </td>
#
#-----[ IN-LINE FIND ]------------------------------------------
#
target="_phpbbwhois"
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
title="{guest_user_row.HOST}"
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM