Seite 1 von 1
ip nur sichtbar für admin
Verfasst: 16.05.2004 20:00
von vc09
hallo,
phpbbhacks.com scheint nicht erreichbar zu sein derzeit.
wollte die ips nurfür den damin sichtbar machen.
wie und wo geht das`?
gruß
Verfasst: 16.05.2004 20:35
von D@ve
Also in allen den Foren die ich bisher installiert habe, können normale User die IPs nicht sehen. Wäre mir zumindestens neu.
Gruß, Dave
Verfasst: 16.05.2004 20:49
von vc09
tach auch,
die mods sollen die ip ebenfalls nicht sehen!
habe folgenden code entdeckt in viewtopic.php:
Code: Alles auswählen
if ( $is_auth['auth_mod'] )
{
$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>';
$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
wasmuß ich hier eintragen "if ( $is_auth['auth_mod'] )", damit nur der admin die ip sieht?
mfg
Verfasst: 16.05.2004 21:04
von D@ve
Achso... das obige ist die falsche Stelle. Wenn Du da auth_admin reinsetzt können die mods auch keine Beiträge mehr löschen/editieren.
Musst das Ganze:
Code: Alles auswählen
if ( $is_auth['auth_mod'] )
{
$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>';
$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>';
}
Durch:
Code: Alles auswählen
if ( $is_auth['auth_mod'] )
{
if ( $is_auth['auth_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>';
}
$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>';
}
ersetzen...
Musst Du aber probieren habs nicht getestet.
Gruß, Dave
Verfasst: 17.05.2004 08:06
von Markus Wandel
Moin Moin,
wenn du willst das nur die Admins die IP sehen können, kannst du diesen MOD dafür benutzen:
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
Das läuft auch unter phpBB 2.08 und 2.0.8a.
bye bye
Verfasst: 28.08.2004 13:26
von Konsti
D@ve hat geschrieben:Achso... das obige ist die falsche Stelle. Wenn Du da auth_admin reinsetzt können die mods auch keine Beiträge mehr löschen/editieren.
Musst das Ganze:
Code: Alles auswählen
if ( $is_auth['auth_mod'] )
{
$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>';
$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>';
}
Durch:
Code: Alles auswählen
if ( $is_auth['auth_mod'] )
{
if ( $is_auth['auth_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>';
}
$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>';
}
ersetzen...
Musst Du aber probieren habs nicht getestet.
Gruß, Dave
Habe das mal versucht nur kann der Admin jetzt auch keine IPs mehr sehen!

Verfasst: 28.08.2004 14:51
von Konsti
Weiss denn niemand eine Antwort?

Verfasst: 28.08.2004 17:47
von Mungo
Du musst bei der Änderung von D@ve
mit
ersetzen.
Schau dir mal den phpbb.de-Knigge an. Besonders den Abschnitt Topic-Bumping.