Area51 @ 4seven.de

Mod Base and Testarea
It is currently 23 Feb 2025, 15:07

All times are UTC + 1 hour




Post new topic TOPIC_LOCKED  [ 1 post ] 
Author Message
PostPosted: 02 May 2012, 18:24 
Offline
Tiptop
Tiptop
User avatar

Joined: 11 Feb 2008, 11:49
Posts: 241
[Snippet] IP-Logging ausschalten (de)

öffne

includes/session.php

finde

Code:
$this->ip = (!empty($_SERVER['REMOTE_ADDR'])) ? htmlspecialchars($_SERVER['REMOTE_ADDR']) : '';


ersetze mit

Code:
$this->ip = '127.0.0.1';


finde (thx @ Napoli)

Code:
'session_ip' => (string) $this->ip,


ersetze mit

Code:
'session_ip' => '127.0.0.1',


------

oder ausschalten nur für einen bestimmten user

Code:
if(($this->data['user_id'] == "xxx") !== $this->ip = "127.0.0.1")
{$this->ip = "127.0.0.1";}   


oder

Code:
if(($this->data['user_id'] == "xxx") != $this->ip = "127.0.0.1")
{$this->ip = "127.0.0.1";} 


---------------------

ergebnis: http://www.loaditup.de/files/389129.png

damit erreichst du allerdings nur das ab jetzt nichts mehr geloggt wird.
um ganz sicher auch alle alten logs zu löschen, solltest du das hier im phpmyadmin oder mysqldumper ausführen.

wichtig: ein komplettes sql- und datenbackup vorab

..und den tabellen-präfix anpassen (phpbb_)

Code:
update phpbb_users set user_ip='127.0.0.1' where user_ip!='127.0.0.1';
update phpbb_log set log_ip='127.0.0.1' where log_ip!='127.0.0.1';
update phpbb_poll_votes set vote_user_ip='127.0.0.1' where vote_user_ip!='127.0.0.1';
update phpbb_posts set poster_ip='127.0.0.1' where poster_ip!='127.0.0.1';
update phpbb_privmsgs set author_ip='127.0.0.1' where author_ip!='127.0.0.1';
update phpbb_sessions set session_ip='127.0.0.1' where session_ip!='127.0.0.1';


-----------------------------------------------------------------

_________________
Mod-Bot / Service-Team


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic TOPIC_LOCKED  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
[ Time : 0.020s | 21 Queries | GZIP : Off ]