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)
-   -   vbulletin-ip Plotter (https://vborg.vbsupport.ru/showthread.php?t=42340)

DrkFusion 08-14-2002 10:00 PM

vbulletin-ip Plotter
 
Re-Release
This hack has been re released.

Description
What this does is allow you to plot an ip on a world map, it will tell you where the person lives, there isp etc.

Installation
Please see file for steps

Thanks
DrkFusion (Arunan)

DrkFusion 08-15-2002 08:44 PM

To restrict this to everyone except Admins, follow the following instructions.

Move vbipplot.php to the admins folder, and move the iplocation folder to the admins folder as well, make sure all the files are in the folder after you have moved it to the admins folder.

Then delete vbipplot.php and the iplocations folder from the mods directory.

To remove the link from the moderator-cp
Find in index.php of the mods directory:
Code:

// *************************************************
makenavoption("Mass Move","thread.php?action=move","<br>");
makenavoption("Mass Prune","thread.php?action=prune");
makenavselect("Thread Control","");
// *************************************************
makenavoption("Locate-ip","vbipplot.php?address=","<br>");
makenavselect("Member-ip Plot","<hr>");
// *************************************************

and replace with
Code:

// *************************************************
makenavoption("Mass Move","thread.php?action=move","<br>");
makenavoption("Mass Prune","thread.php?action=prune");
makenavselect("Thread Control","");
// *************************************************

Save and re-upload.
Now open the index.php file in the admins directory and find the following
Code:

makenavselect("Users");
// ***
makenavoption("Locate-ip","../mod/vbipplot.php?address=","<br>");
makenavselect("Member-ip Plot","<hr>");
// ***

replace with
Code:

makenavselect("Users");
// ***

save and re-upload.

Now in the template [threads_displayip] located in
Thread Management Templates>threads_displayip
and replace the whole thing with:
Code:

The IP Address is: $postinfo[ipaddress]. The host name is: $postinfo[hostaddress]. Please click <a href="showthread.php?s=$session[sessionhash]&threadid=$threadid">here</a> to return to the thread.
If you experience any trouble, please notify me asap.
Thanks
Drk

Attrox 08-15-2002 08:50 PM

This is perfect, now I'll have more knowledge of banned users browsing with a new username. Great hack. :)

wot-Mike 08-15-2002 09:14 PM

Hehe, you beat me to it. I was working on a way to integrate this wonderful thing with vBulletin, in a slightly different manner, but ok :)

NTLDR 08-15-2002 09:40 PM

Looks very nice DrkFusion, installing now ;)

Tim Wheatley 08-15-2002 09:46 PM

Thank you very much. This will be very useful for further proving when someone is rejoining as a new registration after banning. :)

Boofo 08-15-2002 10:13 PM

DrkFusion, is there any way to have this as an option in the user.php so you can turn it on or off for specific users? Then you don't have to resrrict it to mods OR admins. What do you think there, big fella? :)

NTLDR 08-15-2002 10:22 PM

Quote:

Originally posted by Boofo
DrkFusion, is there any way to have this as an option in the user.php so you can turn it on or off for specific users? Then you don't have to resrrict it to mods OR admins. What do you think there, big fella? :)
I've changed:

PHP Code:

makelinkcode("edit access masks","user.php?s=$session[sessionhash]&action=editaccess&userid=$user[userid]").

To:

PHP Code:

makelinkcode("edit access masks","user.php?s=$session[sessionhash]&action=editaccess&userid=$user[userid]").
makelinkcode("plot ip","../mod/vbipplot.php?s=$session[sessionhash]&address=$user[ipaddress]").

In my admin/user.php so that it automatically gets the users ip address and shows as a link when you click find etc...

NTLDR 08-15-2002 10:29 PM

And I have changed my mod/user.php so when they view the profile, the link appears next to the IP address field.

Change:
PHP Code:

makeinputcode("IP Address","aipaddress",$user[ipaddress]); 

To:
PHP Code:

makeinputcode("IP Address <a href=\"vbipplot.php?address=$user[ipaddress]\">[plot ip]</a>","aipaddress",$user[ipaddress]); 

This again, automatically gets the users ip address.

DrkFusion 08-15-2002 11:06 PM

Hey, nice work NTLDR, if you do not mind may I add this in the read me? as an extra, or put it as a feature into the hack?

Thanks
Drk

Boofo 08-15-2002 11:09 PM

Drk, when you get it done, let me know and I will take another look at it. I really hate to install it and have to change everything to make it work like I want to, if you know what I mean. :)


Quote:

Originally posted by DrkFusion
Hey, nice work NTLDR, if you do not mind may I add this in the read me? as an extra, or put it as a feature into the hack?

Thanks
Drk


NTLDR 08-15-2002 11:15 PM

Quote:

Originally posted by DrkFusion
Hey, nice work NTLDR, if you do not mind may I add this in the read me? as an extra, or put it as a feature into the hack?
No problem, go right ahead, this is a great hack and usefull too ;)

Works a treat :D

DrkFusion 08-15-2002 11:26 PM

Thanks man, great addition :) brb, let me update the file.
Quote:

Originally posted by Boofo
Drk, when you get it done, let me know and I will take another look at it. I really hate to install it and have to change everything to make it work like I want to, if you know what I mean. :)



Do you mean NTLDR modification?
Quote:

Originally posted by NTLDR


No problem, go right ahead, this is a great hack and usefull too ;)

Works a treat :D


NTLDR 08-15-2002 11:34 PM

Who's online edit: Adds a P before the IP address in the who's online page so you can see where visitors are from ;)

Change in the whosonlinebit_ip template:
Code:

<td bgcolor="$backcolor" align="left">
To:

Code:

<td bgcolor="$backcolor" align="left"><smallfont><a href="mod/vbipplot.php?s=$session[sessionhash]&address=$userinfo[ipaddress]" target="_blank">P</a>
Change the target and letter P as required :D

DrkFusion 08-15-2002 11:50 PM

Hey NTLDR, may I add that aswel??
hehe

Drk

NTLDR 08-15-2002 11:52 PM

Quote:

Originally posted by DrkFusion
Hey NTLDR, may I add that aswel??
hehe

hehe, sure add away :banana:

DrkFusion 08-15-2002 11:56 PM

I got some screen shots...please bare with me :)

Drk

DrkFusion 08-16-2002 12:11 AM

The Main View of the Plotted Map

DrkFusion 08-16-2002 12:12 AM

Admin CP:Edit Users View

THANKS TO NTLDR FOR THIS MODIFICATION

DrkFusion 08-16-2002 12:12 AM

Edit User Profile in Mod CP

THANKS TO NTLDR FOR THIS MODIFICATION

DrkFusion 08-16-2002 12:13 AM

Whos Online:
Link to map, with ip address.

THIS ADDON WAS ALSO MADE BY NTLDR.
Thanks again NTLDR.

DrkFusion 08-16-2002 12:16 AM

Note the file has been updated.

SemperFidelis 08-16-2002 03:27 AM

Damn cool hack
Thanks for all your efforts.
:)


But, has anyone got this error so far ?

Could not open socket to caida.org
Warning: Undefined offset: 1 in /home/admin/db_mysql.php on line 84
Warning: Undefined offset: 1 in /home/admin/db_mysql.php on line 97
Warning: Undefined offset: 1 in /home/admin/db_mysql.php on line 84
Warning: Undefined offset: 1 in /home/admin/db_mysql.php on line 97

Here is my line 84 :
Quote:

80 $pageendtime=microtime();
81 $starttime=explode(" ",$pagestarttime);
82 $endtime=explode(" ",$pageendtime);
83
84 $beforetime=$endtime[0]-$starttime[0]+$endtime[1]-$starttime[1];
85
86 $this->query_id = mysql_query($query_string,$this->link_id);
And here is line 97 :
Quote:

93 $pageendtime=microtime();
94 $starttime=explode(" ",$pagestarttime);
95 $endtime=explode(" ",$pageendtime);
96
97 $aftertime=$endtime[0]-$starttime[0]+$endtime[1]-$starttime[1];
98 $querytime+=$aftertime-$beforetime;
99
100 if ($showqueries) {

DrkFusion 08-16-2002 03:53 AM

Wierd....this doesn't have anything to do with mysql...'_'
Drk

SemperFidelis 08-16-2002 05:36 AM

Well yeah thats what I thought too.
Hmmm
This has got me rather stumped !

Anyone got any ideas ?

SemperFidelis 08-16-2002 05:51 AM

Updated Info :

In ipconf.inc I had to change
# set $use_firewall to "1" if behind a proxy
$use_firewall="1";
to the correct details

But I am still getting the above error
(minus Could not open socket to caida.org)

Also when you view an IP from within a post, and then select
'Click Here to find the location of this member'
Wouldnt that look better if it opened within a page of forum rather than how it crrently does ?

Neo 08-16-2002 09:01 AM

tight hack.

Znaper 08-16-2002 11:02 AM

In the plotimage.php are the files

Code:

include("plotconf.inc");
include("plot.inc");

included, where are the files.
In the ZIP-Package is none.


bye Znaper

NTLDR 08-16-2002 12:12 PM

Another place to add the link ;)

In admin/user.php change:

PHP Code:

".makelinkcode("find more users for this ip","user.php?s=$session[sessionhash]&action=doips&ipaddress=$ip[ipaddress]"). 

To:
PHP Code:

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

This will add the plot ip link when you search for IP addresses in the Admin CP.

Feel free to add this in to the readme as well DrkFusion ;)

ULTIMATESSJ 08-16-2002 12:20 PM

fanciness, great hack

/me clicks install

NTLDR 08-16-2002 12:37 PM

w00t!! Another Mod :D

This will resolve the IP and display it after the text with the location.

In vbipplot.php find:

PHP Code:

# START HTML 

And add directly before;

PHP Code:

unset($resolved);
unset(
$ipres);
$resolved gethostbyaddr($values["address"]);
if (
$values["address"] == $resolved) {
$ipres="The IP address <b>$values[address]</b> could not be resolved to a hostname.";
} else {
$ipres="The IP address <b>$values[address]</b> resolved to <b>$resolved</b>.";


Next find:
PHP Code:

if(isset($address)) {
print 
"$values[desc]"

And add directly after (and before the } which directly follows):
PHP Code:

print "<br>";
print 
"$ipres"

This will now display the resolved IP address (where it can be resolved of course ;))

DrkFusion 08-16-2002 01:30 PM

Hey, I forgot to mention the firewall part :-/ Sorry guys, It can open in a page within a forum, I really intended to get the mods to use the mod-cp...the mods at my forum are quite...uhh loose, as in they don't know crap bout vbulletin. I was also aiming to make this work, with the fewest modifications.
Quote:

Originally posted by v-net
Updated Info :

In ipconf.inc I had to change
# set $use_firewall to "1" if behind a proxy
$use_firewall="1";
to the correct details

But I am still getting the above error
(minus Could not open socket to caida.org)

Also when you view an IP from within a post, and then select
'Click Here to find the location of this member'
Wouldnt that look better if it opened within a page of forum rather than how it crrently does ?


Umm, that was taken from the original file by Ivan, I renamed many files, and modified little bits of the code, replace that bit with
Code:

include("ipconf.inc");
include("ipplot.inc");

It is located in the locationip directory. I will update the zip.
Quote:

Originally posted by Znaper
In the plotimage.php are the files

Code:

include("plotconf.inc");
include("plot.inc");

included, where are the files.
In the ZIP-Package is none.


bye Znaper


DrkFusion 08-16-2002 01:32 PM

Quote:

Originally posted by NTLDR
w00t!! Another Mod :D

This will resolve the IP and display it after the text with the location.

In vbipplot.php find:

PHP Code:

# START HTML 

And add directly before;

PHP Code:

unset($resolved);
unset(
$ipres);
$resolved gethostbyaddr($values["address"]);
if (
$values["address"] == $resolved) {
$ipres="The IP address <b>$values[address]</b> could not be resolved to a hostname.";
} else {
$ipres="The IP address <b>$values[address]</b> resolved to <b>$resolved</b>.";


Next find:
PHP Code:

if(isset($address)) {
print 
"$values[desc]"

And add directly after (and before the } which directly follows):
PHP Code:

print "<br>";
print 
"$ipres"

This will now display the resolved IP address (where it can be resolved of course ;))

So Ntldr... :tired:<--Tired
hehe j/k
Drk

NTLDR 08-16-2002 02:40 PM

Quote:

Originally posted by DrkFusion

So Ntldr... :tired:<--Tired
hehe j/k
Drk

hehe, I've been totally integrating this into my forums 100%, it looks like a built in vB feature ;)

Dean C 08-16-2002 05:58 PM

Quote:

To Mist:
No, You cannot get full addresses, and credit card numbers with this.
++++ off - i already knew that fool lol ;)

___________

great hack mate... :D

beemer 08-16-2002 06:12 PM

Anyone know the link to the GD app that DRKFusion is referring to in the readme.txt file? I guess Win2K doesn't support this by default.

DrkFusion 08-16-2002 07:11 PM

I emailed you the link ;) Look for a binary version.

Good Luck
Drk

DrkFusion 08-16-2002 07:12 PM

Quote:

Originally posted by Mist


++++ off - i already knew that fool lol ;)

___________

great hack mate... :D

;)
hehe
Thanks

Drk

DrkFusion 08-16-2002 07:13 PM

Quote:

Originally posted by NTLDR


hehe, I've been totally integrating this into my forums 100%, it looks like a built in vB feature ;)

Mind making me a mod, so I may test it at your forums :smoke: :cool:

Boofo 08-16-2002 07:19 PM

Drk, you're more than welcome to install this at my forums. ;)

Quote:

Originally posted by DrkFusion

Mind making me a mod, so I may test it at your forums :smoke: :cool:



All times are GMT. The time now is 02:45 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.01623 seconds
  • Memory Usage 1,871KB
  • 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
  • (10)bbcode_code_printable
  • (14)bbcode_php_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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