BBCodeBox3

prosilver | subsilver2

Willkommen und Guten Morgen, Guest  Beim nächsten Piep ist es zwischen 9:00 und 10:00 Uhr

It is currently Sun 26. Oct 2025, 10:26

All times are UTC + 1 hour [ DST ]




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
PostPosted: Sat 12. Sep 2009, 19:08 
Administrator
User avatar

Posts: 427

Last 3 Topics:
Tabmenu Test
[Snippet] Avatar Ev...
[DEV] Zero and X-P...

Joined:
Sun 13. Jan 2008, 23:44

ö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';


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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 0 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:
cron
POWERED_BY
[ Time : 0.010s | 15 Queries | GZIP : Off | Board-Version: 3.0.7 PL1 ]