• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ Feature Requests (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

Log IP address in logs

This forum is now locked as we will no longer be developing the v1.x branch

Moderators: OldWolf, re*s.t.a.r.s.*2

Topic locked
4 posts • Page 1 of 1

Postby arturm » Fri Mar 16, 2007 9:12 pm

After chat is sometimes necessary to find IP address user.
arturm
New member
 
Posts: 7
Joined: Mon Mar 12, 2007 9:11 pm
Top

Postby HenkBB » Wed May 30, 2007 10:35 pm

This is very easy to do:

find the following fragment in log.class.php (src/proxies)

$log = $recipient."t";
$log .= date("d/m/Y")."t";
$log .= date("H:i:s")."t";
$log .= $sender."t";
$log .= $param."n";

and add the following line:

$log .= $_SERVER['REMOTE_ADDR']."t";

just place it where you want the ip address to appear in your log file for example:

$log = $recipient."t";
$log .= date("d/m/Y")."t";
$log .= date("H:i:s")."t";
$log .= $_SERVER['REMOTE_ADDR']."t";
$log .= $sender."t";
$log .= $param."n";
HenkBB
New member
 
Posts: 3
Joined: Sun Dec 03, 2006 9:13 am
Top

Postby arturm » Sun Jun 03, 2007 7:23 pm

It works :-) Thanks!
arturm
New member
 
Posts: 7
Joined: Mon Mar 12, 2007 9:11 pm
Top

Postby dieq41 » Sat Mar 15, 2008 12:48 pm

thx 4 the script..
i will try...

dieq41
./ dieq41
newbie php
dieq41
New member
 
Posts: 9
Joined: Sat Mar 15, 2008 10:50 am
Location: Jakarta, Indonesia
  • Website
  • YIM
Top


Topic locked
4 posts • Page 1 of 1

Return to Feature Requests (v1.x)

Who is online

Users browsing this forum: No registered users and 3 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
cron
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub