I am grateful for any guidance to develop this:
http://www.phpfreechat.net/forum/viewtopic.php?id=1086
kerphi wrote:Yes you can modify the existing src/proxies/log.class.php to write the data in mysql instead of in a file.
Another way is to write a new proxy that you can call src/proxies/logmysql.class.php and to append this proxy in the "post_proxies" parameter.
ex: $params['post_proxies'] = array('logmysql');
I think the way to go is a separate table that keys with the mysql.class.php table for a given chat, and log UserMeta ip as set by connect. class.php
on connect, joins, and changes nicks.
Then we could have a /whowas command.
Also, please tell me if I am wrong:
This doesn't appear to me that it will work ...?
feric wrote:nishil wrote:Can the data log record the IP (Source) too.
Solution just with V1.0-beta7 (I guess)
- Code: Select all
Open file
/src/proxys/log.class.php
Find Line 37
{
After the bracket insert:
$ip_address = $_SERVER['REMOTE_ADDR'];
Then Replace line
$log = $recipient."t";
With this line:
$log = "$ip_address - $recipient"."t";
Save file back to your Webspace...
Are you aware, that this will slightly decrease performance and will need more space for Logfile(s)?
http://www.phpfreechat.net/forum/viewtopic.php?id=631
http://www.phpfreechat.net/forum/viewtopic.php?id=618