vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Admin CP IP Logging w/last seen (https://vborg.vbsupport.ru/showthread.php?t=46695)

Sebastian 12-14-2002 10:00 PM

Admin CP IP Logging w/last seen
 
This hack logs all IP's of visits to the admin CP. It shows the IP of the user, when was the last visit the person made, how many times the person visited, along with the date.

This is great if you want to be informed of any intruders ;)

File with IP/Date will be stored by default to forum/admin/logs/iplog.inc

TODO:
1. add logging of username if registered based on stored cookie
2. code cleaning.

Please Click HERE if you installed, thanks!

Screenshot next post.

Cheers :bunny:

Sebastian 12-15-2002 03:59 PM

screenshot.

flup 12-15-2002 04:03 PM

Nice

Chris M 12-15-2002 04:59 PM

Cool:)

Satan

assassingod 12-15-2002 05:02 PM

Very cool. Will use, thanks

LOD-squa 12-15-2002 05:02 PM

Cool, nice work ;)

djr 12-15-2002 10:54 PM

Nice hack! Thanks.

It didn't show my IP the first time I logged into AdminCP though. The 2nd time it got properly displayed. It did store it the logfile though (the 1st time that is)

- djr

Sebastian 12-15-2002 11:04 PM

yes, i noticed that .. it will log it even the first time like you say, but will not show it.. weird, i'll check that out.

the good thing that i forgot to mention is if you visit the cp 100 times it will not make a new line in the log file, so you won't end up with a 50MB log file ;)

it will update the current line IF the IP is the same. it will just update the number of visits and the date/time.

matthepepe 12-16-2002 12:17 AM

it doesnt seem to be working for me, it displays the ip correctly but doesnt seem to write to the fiel, the folder is chmod to 777.

Sebastian 12-16-2002 12:56 AM

Quote:

Originally posted by matthepepe
it doesnt seem to be working for me, it displays the ip correctly but doesnt seem to write to the fiel, the folder is chmod to 777.
is it making the file just not writing to it? or is it not making the file at all? did you change the default path admin/logs ?

a43079 12-16-2002 10:44 PM

very mice hack

matthepepe 12-17-2002 01:07 AM

nevermind i got it to work thanks.
good idea by the way.
Quote:

Originally posted by Sebastian

is it making the file just not writing to it? or is it not making the file at all? did you change the default path admin/logs ?


Cyberhouse 12-17-2002 04:31 AM

Nice hack.

Installed ;)

Smoothie 12-17-2002 08:26 AM

Installed. Good one.

Exo 12-17-2002 10:18 AM

nice, how can i make it to the german date format?

Sebastian 12-18-2002 01:15 AM

Quote:

Originally posted by Exo
nice, how can i make it to the german date format?
explain how german date looks like.

Exo 12-18-2002 08:25 AM

am 18.12.2002 um 20:23:11

or

am 18. Dezember, 2002 um 20:23:11

Talisman 12-27-2002 07:58 PM

This hack is way cool, Sebastian. Thanks.

I really like showing anyone who stumbles over to our Admin CP login page (in big red letters) that we're keeping track of people who access this area and that their IP addresses are being logged.

Maybe later, we (meaning someone out there, of course, since I'm still such a dunce at this stuff) might like to expand this to let us view the log from a link in the Admin CP. Think I might attempt that, myself, unless someone else already has done so and would like to post that here.

Nice hack. Thanks, again.

Sebastian 12-27-2002 11:55 PM

Quote:

Originally posted by Talisman

Maybe later, we (meaning someone out there, of course, since I'm still such a dunce at this stuff) might like to expand this to let us view the log from a link in the Admin CP. Think I might attempt that, myself, unless someone else already has done so and would like to post that here.

Open admin/index.php

find:

Code:

// ***
makenavoption("Statistics","stats.php?action=index","<br>");
makenavoption("Admin Log","adminlog.php?action=choose");
makenavselect("Statistics & Logs","<hr>",$df);

Replace with:
Code:

// ***
makenavoption("Statistics","stats.php?action=index","<br>");
makenavoption("Admin Log","adminlog.php?action=choose","<br>");
makenavoption("Admin CP iplogs","vblogs.php?");
makenavselect("Statistics & Logs","<hr>",$df);

Upload the attached php file to forums/admin

if you haven't changed any of the path logs then your set to go, otherwise open vblogs.php and change the include path to the location of your iplogs.inc

save, upload all files, you should see a link under Statistics & Logs to view the logs from admin cp.

Zaeolos 01-10-2003 12:30 PM

***Installed***

Works Perfectly with 2.2.9, but I was wondering. Is there a way to make it start a new line with every new IP address. When you view it in the Admin CP, it just keeps adding back to back. It would be easier to sort out if each IP started a new line.

Thanks.

esfron 02-06-2003 02:07 AM

Thanks

wooolF[RM] 02-06-2003 11:03 AM

]nice one ;)

[high]* wooolF[RM] clicks install[/high]

LightBringer 02-17-2003 11:21 PM

AWESOME hack, love it! Only thing I would ask above it all would be to have the vblogs.php have a nicer interface.. if I knew php I would do it, but I do not - thanks again for the great hack anywho ;)

Boofo 04-03-2003 11:37 AM

Sebastian, is there a way to have it list the contents of the inc file a little cleaner and easier to read? Right now, it just displays everything on the same line until the page word wraps.

subu1 05-05-2003 12:19 PM

thxx;)

Haruka 01-09-2005 06:16 PM

Hi all :)
This hack is cool ;) I've install it but I need a similiar one for users...
I've a lot of prob with an user and I must log all his moves...
Can anyone link me some utilities?
Thanks :)


All times are GMT. The time now is 04:43 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.01202 seconds
  • Memory Usage 1,759KB
  • 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
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (26)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete