Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Login log - Log successful login attempts Details »»
Login log - Log successful login attempts
Version: 4.1, by Dave Dave is offline
Developer Last Online: Aug 2021 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 4.x.x Rating:
Released: 05-27-2014 Last Update: 01-15-2016 Installs: 39
DB Changes Uses Plugins
Re-useable Code  
No support by the author.

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

File Type: zip product-loginlog.zip (4.1 KB, 133 views)

Screenshots

File Type: jpg Untitled.jpg (87.5 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
7 благодарности(ей) от:
elsa23, josner, madness85, minhmeo.info, puertoblack2003, tbworld, winky8300

Comments
  #32  
Old 02-24-2015, 07:07 PM
sevenmix's Avatar
sevenmix sevenmix is offline
 
Join Date: Apr 2009
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do i give full access to this product to a s-mod?
Reply With Quote
  #33  
Old 02-24-2015, 07:11 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sevenmix View Post
How do i give full access to this product to a s-mod?
Unfortunately it's only accessible in the admincp.
Reply With Quote
  #34  
Old 03-10-2015, 12:15 PM
X-or X-or is offline
 
Join Date: Nov 2005
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dave View Post
The API I use is open-source so you could simply integrate it on your own server and change the API URL I call in the script to your own local URL. https://github.com/fcambus/telize
thanks! good to know :-)
Reply With Quote
  #35  
Old 10-05-2015, 02:29 PM
jscherbel jscherbel is offline
 
Join Date: Sep 2009
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks like telize.com no longer exists so this is now preventing logins to my site and my administrative area. Anyone know how to disable it from the database level directly?

Update: I went into the file that throws the error/warning about cookies and commented out the line that contains the eval() (line 204 of my functions_login.php). Logged into the administrative panel. Disabled the mod. Re-added the code I commented out. Hope that helps someone else.

Thanks!
Reply With Quote
  #36  
Old 10-06-2015, 07:03 AM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jscherbel View Post
Looks like telize.com no longer exists so this is now preventing logins to my site and my administrative area. Anyone know how to disable it from the database level directly?

Update: I went into the file that throws the error/warning about cookies and commented out the line that contains the eval() (line 204 of my functions_login.php). Logged into the administrative panel. Disabled the mod. Re-added the code I commented out. Hope that helps someone else.

Thanks!
That's weird, the site still seems online to me. Maybe it was down for a little bit?
Reply With Quote
  #37  
Old 10-07-2015, 07:50 AM
friendlymela's Avatar
friendlymela friendlymela is offline
 
Join Date: Dec 2012
Location: Karachi, Pakistan
Posts: 272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good for the security
Reply With Quote
  #38  
Old 10-07-2015, 04:32 PM
blah100 blah100 is offline
 
Join Date: Oct 2014
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Getting this database error after a login from a certain member:

Quote:
Invalid SQL:
INSERT INTO loginlog (userid, username, loginstamp, browser, ip, isp, country) VALUES (24528, 'membername', NOW(), 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36', 'IP number', '', '');

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'membername', NOW(), 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (' at line 1
Error Number : 1064
It's the same member, and a database error happens for each login attempt. Is it the case that if a member fails in trying to login that this database error happens?
Reply With Quote
  #39  
Old 10-08-2015, 08:20 AM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by blah100 View Post
Getting this database error after a login from a certain member:



It's the same member, and a database error happens for each login attempt. Is it the case that if a member fails in trying to login that this database error happens?
I uploaded a new version which should fix that.
Reply With Quote
  #40  
Old 01-13-2016, 03:38 AM
sevenmix's Avatar
sevenmix sevenmix is offline
 
Join Date: Apr 2009
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, im getting this error after i installed php 5.5:

in /home/********/public_html/includes/functions_login.php(204) : eval()'d code on line 102
[13-Jan-2016 05:37:04 UTC] PHP Warning: file_get_contents(http://www.telize.com/geoip/***.4.219.***): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found

What could be the problem? greetings.
Reply With Quote
  #41  
Old 01-13-2016, 06:28 AM
z3r0's Avatar
z3r0 z3r0 is offline
 
Join Date: Apr 2005
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Telize have a notice on the front page of their site that they have shut down the public API, that is probably the cause.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:21 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04854 seconds
  • Memory Usage 2,339KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (7)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete