Roundcube Community Forum

 

extra logs added...

Started by astrosmf, August 23, 2008, 01:30:11 AM

Previous topic - Next topic

astrosmf

hey crew... i would LOVE it if one of you could create a script for me that would add the following logs in the existing /logs folder

LOGIN - a seperate file that logs when someone logs in... in the following example
[20-Aug-2008 15:55:46 -0600] [email protected] LOGIN SUCCESSFUL

PASSWORD - a seperate file that logs when a user changes password... in the following example
[20-Aug-2008 15:55:46 -0600] [email protected] PW SUCCESSFUL

This would be a huge help... would greatly appreciate it...

JohnDoh

#1
Hi. look for log_logins in your config file, this option was added before the 0.2a release. Loging changes to passwords would have to be done as part of your change password patch but it should be easy to add. Something like this should do it:


write_log('password', $_SESSION['username'].' PW SUCCESSFUL');
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

astrosmf

Quote from: JohnDoh;13458Hi. look for log_logins in your config file, this option was added before the 0.2a release. Loging changes to passwords would have to be done as part of your change password patch but it should be easy to add. Something like this should do it:


write_log('password', $_SESSION['username'].' PW SUCCESSFUL');

the log_logins worked perfectly...

where would you throw the PW code in?

JohnDoh

Put it in the file that does the actual changeing of the password, right after the password has been changed.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...