IP nur für Admins anzeigen
Verfasst: 19.02.2005 12:37
Es gab hier mal einen Mod, der die IP nur den Admins angezeigt hat, ich finden den leider nicht mehr. Könnt Ihr mir helfen? Hat den noch jemand?
phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
Er wird es wohl nicht absichtlich gemacht haben...Cervantes hat geschrieben:bitte keine doppelposts
Code: Alles auswählen
if ( $is_auth['auth_mod'] )
{
if ( $userdata['user_level'] == ADMIN ) {
$temp_url = "modcp.$phpEx?mode=ip&" . POST_POST_URL . "=" . $postrow[$i]['post_id'] . "&" . POST_TOPIC_URL . "=" . $topic_id . "&sid=" . $userdata['session_id'];
$ip_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_ip'] . '" alt="' . $lang['View_IP'] . '" title="' . $lang['View_IP'] . '" border="0" /></a>';
$ip = '<a href="' . $temp_url . '">' . $lang['View_IP'] . '</a>';
} else {
$ip_img = '';
$ip = '';
}
$temp_url = "posting.$phpEx?mode=delete&" . POST_POST_URL . "=" . $postrow[$i]['post_id'] . "&sid=" . $userdata['session_id'];
$delpost_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_delpost'] . '" alt="' . $lang['Delete_post'] . '" title="' . $lang['Delete_post'] . '" border="0" /></a>';
$delpost = '<a href="' . $temp_url . '">' . $lang['Delete_post'] . '</a>';
}
else
{
$ip_img = '';
$ip = '';
if ( $userdata['user_id'] == $poster_id && $is_auth['auth_delete'] && $forum_topic_data['topic_last_post_id'] == $postrow[$i]['post_id'] )
{
$temp_url = "posting.$phpEx?mode=delete&" . POST_POST_URL . "=" . $postrow[$i]['post_id'] . "&sid=" . $userdata['session_id'];
$delpost_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_delpost'] . '" alt="' . $lang['Delete_post'] . '" title="' . $lang['Delete_post'] . '" border="0" /></a>';
$delpost = '<a href="' . $temp_url . '">' . $lang['Delete_post'] . '</a>';
}
else
{
$delpost_img = '';
$delpost = '';
}
}
Code: Alles auswählen
#################################################################
## Mod Title: IP Only Viewable By Admin
## Mod Version: 1.0.0
## Author: Acyd Burn < acyd.burn@gmx.de > - Meik Sievertsen - http://www.opentools.de/
##
## Description:
## This little mod allows only admins to view the ip of Users.
##
## Installation Level: easy
## Installation Time: 5 Minutes
## Files To Edit: modcp.php, viewtopic.php
## Included Files: 0
##
##############################################################
## This MOD is released under the GPL License.
## Intellectual Property is retained by the MOD Author(s) listed above
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ 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/downloads/
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
#################################################################
#
#-----[ OPEN ]---------------------------------------------
#
/phpBB2/modcp.php
#
#-----[ FIND ]---------------------------------------------
#
//
// End Auth Check
//
#
#-----[ AFTER, ADD ]---------------------------------------
#
if ( ($mode == 'ip') && ($userdata['user_level'] != ADMIN) )
{
$mode = '';
}
#
#-----[ OPEN ]---------------------------------------------
#
/phpBB2/viewtopic.php
#
#-----[ FIND ]---------------------------------------------
#
$delpost_img = '';
$delpost = '';
}
}
#
#-----[ AFTER, ADD ]---------------------------------------
#
if ( ($is_auth['auth_mod']) && ($userdata['user_level'] != ADMIN) )
{
$ip_img = '';
$ip = '';
}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM