Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
##############################################################
## MOD Title: Host and IP on index
## MOD Author: LuTzKiLLeR < lutzkiller@gmail.com > (N/A) http://support.premodz.info
## MOD Description: Add the member's host and ip on the index page.
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: 2 Minutes
## Files To Edit: 3
## index.php
## language/lang_english/lang_main.php
## templates/subSilver/index_body.tpl
## Included Files: n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
##############################################################
## MOD History:
##
## 2005-12-24 - Version 1.0.0
## - first release of the mod
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------------
#
index.php
#
#-----[ FIND ]------------------------------------------------
#
// Generate the page
//
#
#-----[ AFTER, ADD ]------------------------------------------
#
$ip = ( !empty($_SERVER['REMOTE_ADDR']) ) ? $_SERVER['REMOTE_ADDR'] : ( ( !empty($_ENV['REMOTE_ADDR']) ) ? $_ENV['REMOTE_ADDR'] : $REMOTE_ADDR );
ob_start();
echo $host=gethostbyaddr($ip);
$disp_host = ob_get_contents();
ob_end_clean();
$template->assign_vars(array(
'HOST' => $disp_host,
'IP' => $ip,
'L_HOST' => $lang['host'],
'L_IP' => $lang['ip'])
);
#
#-----[ OPEN ]------------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
$lang['host'] = 'Your host is:';
$lang['ip'] = 'Your IP is:';
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/index_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
{LAST_VISIT_DATE}<br />
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
{L_HOST} {HOST}<br />
{L_IP} {IP}<br />
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM