vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Administrative and Maintenance Tools - Log Logins Hack (https://vborg.vbsupport.ru/showthread.php?t=124907)

GiaNNi 01-29-2007 07:47 PM

There are some users, which are not used to write, only moderate; and this users are shared by some people. And some months ago someone changed a password, and i couldnt know who.
When logging passwords, if this occures again, i can see which IP loged first with a changed (new) pass.

Sorry for my bad enlgish.

Abe1 01-29-2007 10:02 PM

Quote:

Originally Posted by GiaNNi (Post 1169773)
I want to know if any of my moderators change his password, because they cant do it, (internal forum team rules).

There is a usergroup option to log old passwords in vb. Maybe this can help you. It logs it encrypted but maybe keeps a date.

Lovinmysailor 02-06-2007 07:08 PM

When I click on the Log Manager it tells me "No log file defined in vBulletin Options" What do I do? TIA

Abe1 02-12-2007 12:09 PM

Quote:

Originally Posted by Lovinmysailor (Post 1176256)
When I click on the Log Manager it tells me "No log file defined in vBulletin Options" What do I do? TIA

Not sure what you mean.

PinkDaisy 02-14-2007 03:04 PM

Installed... we will see how it goes. So far I've tried to look into 2 accounts that I know have shared at least 1 from before, but it doesn't show anything ??

GeekDrew 02-14-2007 03:31 PM

Quote:

Originally Posted by PinkDaisy (Post 1182448)
Installed... we will see how it goes. So far I've tried to look into 2 accounts that I know have shared at least 1 from before, but it doesn't show anything ??

... what? All this modification does is write a log entry when someone logs in.

PinkDaisy 02-14-2007 03:53 PM

Oh. I thought i would show when they log into each others accounts..lol. Sory!!

GeekDrew 02-14-2007 04:02 PM

Quote:

Originally Posted by PinkDaisy (Post 1182493)
Oh. I thought i would show when they log into each others accounts..lol. Sory!!

For that, check here.

PinkDaisy 02-14-2007 04:13 PM

Quote:

Originally Posted by GeekDrew (Post 1182503)
For that, check here.

Yeah I have that... lol I dunno what I was thinking!! Thanks.. :D

lazytown 03-01-2007 11:40 PM

Has anyone else tried this edit below to the mod with 3.6.4? Does it work well?

-vissa

Quote:

Originally Posted by serg472 (Post 1062078)
Quick solution for those who want this mod to log cookie logins as well (UNOFFICIAL, UNSUPPORTED, USE AT YOUR OWN RISK etc.).

The only minor issue after the following modification is that when user logs in using a standart login form it will log this twice - as a standart login and a cookie login. I don't want to modify this hack too much, so I left it as it is.

1. Open product-log_logins.xml and find:
PHP Code:

<phrase name="reg_login" date="0" username="" version=""><![CDATA[Standard]]></phrase

add below:
PHP Code:

<phrase name="cookie_login" date="0" username="" version=""><![CDATA[Cookie]]></phrase

2. Open loginlog.php and find:
PHP Code:

else if ($log['logintype'] == 'modcplogin')
{
    
$log['logintype'] = $vbphrase['mod_login'];


add below:
PHP Code:

else if ($log['logintype'] == 'cookie')
{
    
$log['logintype'] = $vbphrase['cookie_login'];


3. Open includes/class_core.php and find:
PHP Code:

// or maybe we can use a cookie..
if (($gotsession == false OR empty($session['userid'])) AND $userid AND $password AND !defined('SKIP_SESSIONCREATE'))
{
 
    
$useroptions = (defined('IN_CONTROL_PANEL') ? 16 0) + (defined('AVATAR_ON_NAVBAR') ? 0);
    
$userinfo fetch_userinfo($userid$useroptions$languageid);
 
    if (
md5($userinfo['password'] . COOKIE_SALT) == $password)
    {
        
$gotsession true;
 
 
 
        
// combination is valid
        
if (!empty($session['sessionhash']))
        {
            
// old session still exists; kill it
            
$db->shutdown_query("
                DELETE FROM " 
TABLE_PREFIX "session
                WHERE sessionhash = '" 
$this->registry->db->escape_string($session['sessionhash']). "'
            "
);
        }
 
        
$this->vars $this->fetch_session($userinfo['userid']);
        
$this->created true;
 
        
$this->userinfo =& $userinfo

add below:
PHP Code:

//LOGINS HACK - START
$db->query_write("INSERT INTO " TABLE_PREFIX "logins (userid, username, ipaddress, phpdate, logintype) VALUES (" $this->userinfo['userid'] . ", '" $db->escape_string($this->userinfo['username']) . "', '" $db->escape_string(IPADDRESS) . "', " TIMENOW ", 'cookie')");
//LOGINS HACK - END 

4. Reinstall product.



All times are GMT. The time now is 11:07 AM.

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.01220 seconds
  • Memory Usage 1,785KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete