![]() |
|
Mod Options |
![]() |
|||||||||||
Login log - Log successful login attempts
![]() Developer Last Online: Jan 2021 ![]() ![]() ![]()
![]() Hi,
This plugin will allow you to log all successful login attempts of all users. This can be useful to see if users share their account or if the account of someone got hijacked. Usernames and IP addresses can be clicked. It will log the following - Userid - Username - IP - ISP (Internet Service Provider) - Country - HTTP user agent Settings: - Enable/disable the product. - Exclude usergroups from being logged. - Purge the logs. Picture Installation 1. Download the .zip file specified. 2. Upload the contents of the upload folder to the root of your forum. 3. Import the product with the .xml file in the import folder. Note The script will log using the current time on the server, in case there's a difference between the server time and your local computer time, you can change the offset in the loginlog.php script on line 12. Also keep in mind that the country and/or ISP resolving might not be 100% accurate and that it might show no value in the logs. Credits Telize.com its API is being used to get the ISP and country off the IP address. Let me know if it works well. ![]() Changelog 11 June 2014 V4: Added the table_prefix global to the login hook. 5 June 2014 V3: Fixed searching only showing the last 25 entries. Pagination will now work as intended. 30 May 2014 V2: Changed hook location, added enable/disable setting and a setting to exclude usergroups. 28 May 2014 V1: Fixed a little mistake with the filter. Download Now Only licensed members can download files, Click Here for more information. Screenshots Show Your Support
The following members like this post: josner, elsa23, puertoblack2003, minhmeo.info, madness85 and 2 others.
|
#46
|
|||
|
|||
Thanks Dave. But it is taking the cloudflare masks. How do I get the real IP.
No members have liked this post.
|
#47
|
|||
|
|||
In the "Plugin Manager", find the plugin for this product and change $_SERVER['REMOTE_ADDR'] to $_SERVER['HTTP_CF_CONNECTING_IP'] or IPADDRESS.
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com Contact me for custom vBulletin 3/4 work & server/website management. No members have liked this post.
|
#48
|
|||
|
|||
Originally Posted by Dave
Thanks. While checking the functions, I have faced some problems as below.![]()
No members have liked this post.
|
#49
|
|||
|
|||
Did you change anything in the code? That error is never supposed to happen.
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com Contact me for custom vBulletin 3/4 work & server/website management. No members have liked this post.
|
#50
|
|||
|
|||
Not really. I just changed the plugin code as you mentioned for bypassing the cloudflare.
No members have liked this post.
|
#51
|
|||
|
|||
Could you paste the whole code? You probably made a typo somewhere.
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com Contact me for custom vBulletin 3/4 work & server/website management. No members have liked this post.
|
#52
|
|||
|
|||
No members have liked this post.
|
#53
|
|||
|
|||
That looks fine and works on my local test forum.
The error happens because the MySQL connection resource isn't set, which is really odd.
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com Contact me for custom vBulletin 3/4 work & server/website management. No members have liked this post.
|
#54
|
|||
|
|||
So, what to do now. I actually wanted to remove the logs taken with cf ips.
No members have liked this post.
|
#55
|
|||
|
|||
Perfect! Exactly what I needed.
Thank you so much. No members have liked this post.
|
#56
|
|||
|
|||
I have the same error. Fix ?
Database error in vBulletin 4.2.2: Invalid SQL: ; MySQL Error : Error Number : 0 Request Date : Sunday, January 14th 2017 @ 02:20:47 PM Error Date : Sunday, January 14th 2017 @ 02:20:47 PM Script : http://www.domain.com/admincp/loginlog.php?do=purgenow Referrer : http://www.domain.com/admincp/loginlog.php?do=purge IP Address : xxx.xxx.xx.xx Username : pps Classname : vB_Database MySQL Version : No members have liked this post.
|
#57
|
|||
|
|||
I'm having the same issue, anyone with a fix?
No members have liked this post.
|
#58
|
|||
|
|||
Same error for me (upon purge attempts):
No members have liked this post.
|
#59
|
||||||||
|
||||||||
OK, I believe I've fixed this. Here is what I did...
I changed (line 41) of the purgenow script:
to this:
Basically all you should need to do is change execute_query to query and add a space before and after TRUNCATE TABLE, after which the purges should start working correctly. In any case, this fix seems to work perfectly here. Now every time I execute a purge, the message "The login log has been purged" is properly displayed and all login entries are gone. No members have liked this post.
Last edited by edgeless; 16 Dec 2019 at 03:30. |
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 03:52.