vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Use real ip when proxy server is detected. (https://vborg.vbsupport.ru/showthread.php?t=95198)

Paul M 12-31-2005 04:20 PM

You're free to do what you want on your forum. ;)

If you check back, you will find that this evolved from another hack and was (I think) the first thing I did for vb [for 3.0.x] and while it may not be exactly how I would do it now, I'm happy with it as is - and see no reason to make wholesale changes now :)

akanevsky 12-31-2005 04:28 PM

ok..

lazytown 01-04-2006 12:15 PM

Ok so I have this installed with the extended IPinfo with the proper module disabled as posted. How do I know that this thing is actually working?

-vissa

The Ottoman 01-04-2006 04:53 PM

Quote:

Originally Posted by Paul M
Whatever that Guest is - it is (incorrectly) passing on 127.0.0.1 as it's "real" address, so the hack is (correctly) displaying it. There is a setting to tell the hack to ignore any real ip's that are in the private ranges (such as this one) - but you need to edit this setting in the hack code itself ;

in class_core.php find ;

PHP Code:

        $ignoreprivate false// Set to true to ignore private 'real' ip's // 

and change it to ;

PHP Code:

        $ignoreprivate true// Set to true to ignore private 'real' ip's // 


Disco!!!!

worked like a charm!!

lifesourcerec 01-05-2006 11:11 AM

Doesn't seem to work for me. Gives database error from time to time (connecting to MySQL):

Quote:

mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
includes/class_core.php on line 279

Paul M 01-05-2006 03:36 PM

That's a server error.

YLP1 01-13-2006 10:09 PM

I had the previous 3.0.7 version of this mod. I installed this one including updating the thread_displayproxyip phrase to:

The Real IP Address is: {1}<br /> The Proxy Server IP Address is: {2}

All changes were made and double checked in class_core.

Confirmed that I installed the xml.

This is what reports on the page after clicking the IP icon:

Code:

$postinfo[username]'s information stored for post: $postinfo[postid]
  • IP Address : $postinfo[ipaddress].

  • Host Address : $postinfo[hostaddress].

  • Alt IP Address : $postinfo[altip].

  • Alt Host Address : $postinfo[althostaddress].

  • User Agent : $postinfo[useragent].


Somehow I managed to mess this up but cannot find where because I confirmed all changes.

Please advise and thanks in advance.

Screen Shot:

Paul M 01-13-2006 11:17 PM

You appear to have customised the phrase in 3.0.7 and it's still trying to display that customised version.

YLP1 01-14-2006 08:55 PM

Quote:

Originally Posted by Paul M
You appear to have customised the phrase in 3.0.7 and it's still trying to display that customised version.

I double checked the phraise and it says: he Real IP Address is: {1}<br /> The Proxy Server IP Address is: {2}


Is this not correct? If not, what should it be?

Thanks in advance.

Paul M 01-14-2006 11:06 PM

Quote:

Originally Posted by YLP1
Is this not correct? If not, what should it be?

It *is* correct, but is not what is being displayed, you must have a language specific translation or something.


All times are GMT. The time now is 04:23 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.01232 seconds
  • Memory Usage 1,745KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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