Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 02-09-2003, 01:28 PM
maoz440 maoz440 is offline
 
Join Date: Nov 2002
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Need help ASAP for Police Help!!!!! Are a User IP Addresses Listed Chronologically?

A user on my forum has made a very serious threat to shoot another kid at school on Monday. I am helping his local police investigate his identity. Among other things I sent the investigator a list of all IP addys the kid has used to log on. Is there a little hack or piece of code I can run to correllate a list of IP address (from a user's admin panel profile) to a list of dates? Any timely help is greatly appreciated as time is of the essence.

Thanks.
Reply With Quote
  #2  
Old 02-09-2003, 02:33 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow it sounds very serious. Someone will help you very shortly i hope

- miSt
Reply With Quote
  #3  
Old 02-09-2003, 03:04 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

open admin/user.php find this block:
PHP Code:
// ############################# douserid() #########################
function douserid($userid,$previpaddress,$depth=2) {
  global 
$DB_site,$session;

  
$depth--;

  
$getusername=$DB_site->query_first("SELECT username FROM user WHERE userid=$userid");
  echo 
"<ul>";

  
$ips=$DB_site->query("SELECT DISTINCT ipaddress FROM post WHERE userid=$userid AND ipaddress<>'' AND ipaddress<>'$previpaddress' ORDER BY ipaddress");
  while (
$ip=$DB_site->fetch_array($ips)) {

    echo 
"<li>$ip[ipaddress] (".gethostbyaddr($ip[ipaddress]).") ".makelinkcode("find more users for this ip","user.php?s=$session[sessionhash]&action=doips&ipaddress=$ip[ipaddress]")."</li>\n";

    if (
$depth>and $ip[ipaddress]!=$previpaddress) {
      
doipaddress($ip[ipaddress],$userid,$depth);
    }

  }

  echo 
"</ul>";


and change it into:
PHP Code:
// ############################# douserid() #########################
function douserid($userid,$previpaddress,$depth=2) {
  global 
$DB_site,$session;

  
$depth--;

  
$getusername=$DB_site->query_first("SELECT username FROM user WHERE userid=$userid");
  echo 
"<ul>";

  
$ips=$DB_site->query("SELECT DISTINCT ipaddress, dateline FROM post WHERE userid=$userid AND ipaddress<>'' AND ipaddress<>'$previpaddress' ORDER BY ipaddress");
  while (
$ip=$DB_site->fetch_array($ips)) {

    echo 
"<li>".date("H:i m-d-Y"$ip[dateline]). ": $ip[ipaddress] (".gethostbyaddr($ip[ipaddress]).") ".makelinkcode("find more users for this ip","user.php?s=$session[sessionhash]&action=doips&ipaddress=$ip[ipaddress]")."</li>\n";

    if (
$depth>and $ip[ipaddress]!=$previpaddress) {
      
doipaddress($ip[ipaddress],$userid,$depth);
    }

  }

  echo 
"</ul>";


think this should do what ya wanted
Reply With Quote
  #4  
Old 02-09-2003, 03:21 PM
maoz440 maoz440 is offline
 
Join Date: Nov 2002
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Worked Perfectly Xenon - exactly what the inspector needed! Thanks so much! I'll keep you posted on what develops with this sad situation.

maoz
Reply With Quote
  #5  
Old 02-09-2003, 03:41 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Xenon what does that code do btw ?

- miSt
Reply With Quote
  #6  
Old 02-09-2003, 03:52 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@maoz: glad i could help

@Mist: it shows the dateline near the ip when it was used..
Reply With Quote
  #7  
Old 02-09-2003, 04:32 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ahhh cool Thanks bud!

- miSt
Reply With Quote
  #8  
Old 02-09-2003, 07:50 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That serious stuff. Hope they catch the guy.
Reply With Quote
  #9  
Old 02-10-2003, 03:51 AM
Logik's Avatar
Logik Logik is offline
 
Join Date: Nov 2002
Location: Tx
Posts: 432
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/me watches the TV show "Cops".
"A vBulletin killer on the loose!"
Reply With Quote
  #10  
Old 02-10-2003, 12:49 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@Logik: i think this is a theme where you shouldn't make any fun of it...

just calm down a bit, not every thread needs your comments!
Reply With Quote
Reply

Thread Tools
Display Modes

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 01:29 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05325 seconds
  • Memory Usage 2,268KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete