vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Administrative and Maintenance Tools - Proxy to Real IP Conversion (https://vborg.vbsupport.ru/showthread.php?t=120082)

forzablues 08-15-2006 09:08 AM

i get this
Fatal error: Call to undefined function: fetch_substr_ip() in /home/fhlinux185/s/street-stylers-southwest.co.uk/user/htdocs/forum/includes/class_core.php on line 1568

Got this when doing it now i cant access forum. Tried changing it back to the original code and i now get this any ideas?

Paul M 08-15-2006 05:06 PM

That function is part of class_core.php so I would say you have made a mistake in editing it - re-upload the original and start again.

Total666 08-20-2006 04:10 PM

Hello : I did all the changes , how can I see if it is working ?? Thanks

I||usi0nz 08-20-2006 05:49 PM

Quote:

Originally Posted by Zelos
I get this when I look at the who's online list: http://img477.imageshack.us/img477/8648/wtfav9.png



If I click one, it says "Unable to resolve IP address". The ips in the posts however are still showing.

I think you might of deleted this line
PHP Code:

 define('SESSION_HOST'substr($registry->ipaddress015)); 

under
In class_core.php ;
Find ;
PHP Code:

 // define session constants
define('SESSION_IDHASH'md5($_SERVER['HTTP_USER_AGENT'] . vB_Session::fetch_substr_ip($registry->alt_ip))); // this should *never* change during a session 

Replace with ;
PHP Code:

// Paul M - define session constants
define('SESSION_IDHASH'md5($_SERVER['HTTP_USER_AGENT'] . vB_Session::fetch_substr_ip($registry->ipaddress))); // this should *never* change during a session 


iatbm 08-20-2006 05:56 PM

Installed !

DaveAK 08-20-2006 11:44 PM

This all seems a bit flaky on my board, not that I'm saying there's anything wrong with it, just that I don't understand what's happening.

Here's my problem :

Sometimes the icon appears red and when you click for info the proxy server IP address simply reads 'PROXYIP', sometimes the icon is the normal green. Either way the actual IP address is the same, and you never get a proxy server IP. This happens for most users, regardless of the service they use. Any idea as to where the problem lies?

Paul M 08-21-2006 09:48 PM

Sounds to me like you haven't done the file edits to class_core.php

DaveAK 08-22-2006 01:39 AM

Quote:

Originally Posted by Paul M
Sounds to me like you haven't done the file edits to class_core.php

I followed your instructions to the letter and did the file edits. It's an intermittent problem, so I'm guessing it's not a problem with your code, or my installation of it. Something else is screwy and I was looking for ideas as to what it might be as I don't understand too much about proxy servers. Could it be something on my server set up?

As a very basic rule of thumb would it be fair to say that most home users won't be using a proxy, (excluding AOL users), where as members logging in from work might well be using a corporate proxy server? This might give me an idea as to which IP's are having a problem.

Paul M 08-22-2006 02:09 AM

The only way it can say "PROXYIP" is if the code has not run.

BTW, as far as I know, this won't detect AOL proxies as they don't pass on the correct http variables.

DaveAK 08-22-2006 02:29 AM

Thanks Paul. I've just been checking my board again and all seems normal. Why it happened first time around I guess we'll never know.

NeitherSparky 08-23-2006 02:54 AM

I have a really terrible person who has been threatening me and plagiarising portions of my website to his for a long time. He's just seriously been a thorn in my side for quite a while, and he follows me everywhere. I banned his home IP from my website a while ago but then he started using proxies of some kind...the other day he signed up for an account on my new vBulletin mimicing my username there, obviously intending to try to fool people into thinking he was me. I've HAD it with him. I have installed this hack, and hopefully it will help! Thank you.

Zelos 08-23-2006 05:58 AM

Quote:

Originally Posted by I||usi0nz
I think you might of deleted this line
PHP Code:

 define('SESSION_HOST'substr($registry->ipaddress015)); 

under
In class_core.php ;
Find ;
PHP Code:

 // define session constants
define('SESSION_IDHASH'md5($_SERVER['HTTP_USER_AGENT'] . vB_Session::fetch_substr_ip($registry->alt_ip))); // this should *never* change during a session 

Replace with ;
PHP Code:

// Paul M - define session constants
define('SESSION_IDHASH'md5($_SERVER['HTTP_USER_AGENT'] . vB_Session::fetch_substr_ip($registry->ipaddress))); // this should *never* change during a session 


That solved the problem! Thank you so much! :D


EDIT: Is it safe to install the "Extra user IP information" mod, having already installed this one?

Paul M 08-23-2006 06:47 AM

Quote:

Originally Posted by Zelos
EDIT: Is it safe to install the "Extra user IP information" mod, having already installed this one?

Yes.

NeitherSparky 08-23-2006 07:48 PM

This is unfortunately not working with my problem user - he's on right now. Poop. :(

Neal-UK 08-23-2006 08:29 PM

He probably using a fake IP then. Just moderate new members. If their IP hostname comes back as nothing or something weird or that you have never heard of, delete them.

Zelos 08-23-2006 08:35 PM

Quote:

Originally Posted by Paul M
Yes.

I just installed the extra IP info mod, but now I'm not sure this mod is working correctly anymore.

This is what I get when I click the IP button of someone who has a proxy: http://img182.imageshack.us/img182/8080/ipproxyuf0.png
Not only does it not list the fake adress, but the "real" IP adress it lists has (according to the list) only been posted from twice. Should I just uninstall the extra info mod?

Shazz 08-23-2006 08:38 PM

Updated yesterday? Anything major.

Paul M 08-23-2006 09:57 PM

Quote:

Originally Posted by Zelos
I just installed the extra IP info mod, but now I'm not sure this mod is working correctly anymore.

This is what I get when I click the IP button of someone who has a proxy: http://img182.imageshack.us/img182/8080/ipproxyuf0.png

You cannot have both displays off one link, so you need to choose which you prefer.


Quote:

Originally Posted by Shazz
Updated yesterday? Anything major.

There is a version history in the first post.

slowhand.chen 08-24-2006 01:48 AM

my vbb server is:172.24.32.108
proxy server is:172.24.32.187

if I use proxy ,user this Plugin don't record the proxy

I already note
PHP Code:

if (preg_match("#^(127|10|172\.(1[6-9]|2[0-9]|3[0-1])|192\.168|169\.254)\.#"$alt_ip)) $alt_ip '' 


Paul M 08-24-2006 02:14 AM

Please put code inside php or code tags.

Also note ;
Quote:

Obviously this hack relies on the proxy server passing the correct http variables to allow detection.

slowhand.chen 08-24-2006 03:12 AM

Quote:

Originally Posted by Paul M
Please put code inside php or code tags.

Also note ;


ok. but why I'm use this plug, in post table ,proxyip field is empty

Zelos 08-24-2006 03:22 AM

Quote:

You cannot have both displays off one link, so you need to choose which you prefer.
But it is still working? If it is, then there's no problem, I guess I don't really need to see the fake IP. My concern is that the "real" IP adress it lists has (according to the list) only been posted from twice.

Paul M 08-24-2006 03:36 AM

Quote:

Originally Posted by Zelos
But it is still working? If it is, then there's no problem, I guess I don't really need to see the fake IP.

Yes, it's still working in the background.

Quote:

Originally Posted by Zelos
My concern is that the "real" IP adress it lists has (according to the list) only been posted from twice.

The 'real' ip will only have been recorded while this hack is installed, it can't see back in time. :)

SCS_Rocket-Devi 08-25-2006 11:53 AM

It doesn't show the real IP in the whos online part, it shows the real ip on posts but not there :confused:

Any suggestions??

Thanks SCS_R-D

Snake 08-25-2006 12:46 PM

Thankies!

Paul M 08-29-2006 04:18 AM

Quote:

Originally Posted by SCS_Rocket-Devi
It doesn't show the real IP in the whos online part, it shows the real ip on posts but not there :confused:

Yes, thank you for mentioning that, it's been spotted on my own site as well - and yes, it's a bug (!) - I will hopefull have time to fix it later today. :cool:

NeitherSparky 08-29-2006 05:32 AM

That would be nice to have! A lot of weirdos don't even post, after all. They just log in and sit there, lol.

Paul M 08-29-2006 07:29 AM

The fixed version is uploaded.

The change is in step 3 of the file edits to class_core.php - to fix your copy you will need to find the "define session constants" comment and replace the two lines below it (that define SESSION_IDHASH & SESSION_HOST) with the new ones in the instructions (or re-edit a fresh, unaltered, class_core.php as per steps 1/2/3).

jw00dy 08-29-2006 07:59 AM

Thanks changed mine and it's working as it's supposed to now

Your hard work is greatly appreciated.

thablewprnt 08-29-2006 06:15 PM

I double checked the edits to class_core.php. Got a error the first time.
So i redid it again and got the same error

Code:

Parse error: syntax error, unexpected T_CLASS, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/xxxxx/public_html/forum/includes/class_core.php on line 2126
I really want to install this....Can I get some help please?

Shazz 08-29-2006 08:26 PM

thanx for the email update!

NeitherSparky 08-29-2006 09:20 PM

I installed the update; don't know if it's working just yet, but I'm sure it's fine. :) Thank you very much.

Paul M 08-29-2006 10:20 PM

Quote:

Originally Posted by thablewprnt
I double checked the edits to class_core.php. Got a error the first time.
So i redid it again and got the same error

Code:

Parse error: syntax error, unexpected T_CLASS, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/xxxxx/public_html/forum/includes/class_core.php on line 2126
I really want to install this....Can I get some help please?

I would say you are making an error in step 1 by removing an extra curly bracket at the bottom of the function.

SaN-DeeP 08-30-2006 01:20 AM

does the hack runs a query to alter the post table ?
is it going to alter all the posts in database with a new field

please confirm, this is what I understood reading/checking the .xml file

Regards,

thablewprnt 08-30-2006 03:42 AM

Quote:

Originally Posted by Paul M
I would say you are making an error in step 1 by removing an extra curly bracket at the bottom of the function.


I baby stepped it, triple checked my edits.....And I can gladly say, all is well...thanks for the help. *finally clicks install* :cool:

Paul M 08-30-2006 04:24 AM

Quote:

Originally Posted by SaN-DeeP
does the hack runs a query to alter the post table ?

Yes.

eclectica 08-30-2006 08:02 AM

It would be nice to get something that can read MAC addresses of the users.

Total666 08-30-2006 01:12 PM

Quote:

Originally Posted by Paul M
The fixed version is uploaded.

The change is in step 3 of the file edits to class_core.php - to fix your copy you will need to find the "define session constants" comment and replace the two lines below it (that define SESSION_IDHASH & SESSION_HOST) with the new ones in the instructions (or re-edit a fresh, unaltered, class_core.php as per steps 1/2/3).

doing the code changes to the class_core.php file .. ( step 3 )


MY existing code

define('SESSION_IDHASH', md5($_SERVER['HTTP_USER_AGENT'] . vB_Session::fetch_substr_ip($registry->ipaddress))); // this should *never* change during a session


The new code from the read me

define('SESSION_IDHASH', md5($_SERVER['HTTP_USER_AGENT'] . vB_Session::fetch_substr_ip($registry->ipaddress))); // this should *never* change during a session


these look unchanged ?? Wondering .. Total

ForumDog 08-30-2006 03:00 PM

Try downloading the zip again? I just compared the new readme to the old readme, the code is different.

Total666 08-30-2006 03:09 PM

Quote:

Originally Posted by ForumDog
Try downloading the zip again? I just compared the new readme to the old readme, the code is different.


Weird - is your step 3 different ??

Step 3.

In class_core.php ;

Find ;

// define session constants
define('SESSION_IDHASH', md5($_SERVER['HTTP_USER_AGENT'] . vB_Session::fetch_substr_ip($registry->alt_ip))); // this should *never* change during a session


Replace with ;

// Paul M - define session constants
define('SESSION_IDHASH', md5($_SERVER['HTTP_USER_AGENT'] . vB_Session::fetch_substr_ip($registry->ipaddress))); // this should *never* change during a session


All times are GMT. The time now is 03:06 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.01370 seconds
  • Memory Usage 1,847KB
  • 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
  • (7)bbcode_php_printable
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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