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)

Alfa1 09-05-2007 07:11 PM

Most of my members now display a red button and when I check it out this is displayed:
"The Proxy Server IP Address is: PROXYIP"
This is even displayed for myself and I sure am not on a proxy. How can I fix this?

Paul M 09-05-2007 10:02 PM

You fix it by doing the required file edits.

Alfa1 09-06-2007 03:26 PM

The file edits instructions do no longer match vb 3.6.8's class_core.php's content.

Step 3:
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
        
define('SESSION_HOST',   substr($registry->ipaddress015)); 

This is not there. What is there is:
PHP Code:

        // define session constants
        
define('SESSION_HOST',   substr($registry->ipaddress015)); 

I assume that this would need to be replaced. But since I am no coder and it seems more has been altered in class_core.php's content, I am not certain.

Paul M 09-06-2007 05:24 PM

You need to re-read the instructions ;

Step 3 clearly states ;

Quote:

Step 3 (vB Versions 3.6.0 to 3.6.3 only).


Steps 4 & 5 state ;

Quote:

Step 4 (vB Versions 3.6.4 onwards only).

Step 5 (vB Versions 3.6.4 onwards only).

Alfa1 09-07-2007 11:44 AM

I seem to have been working with an older version of the instructions. I have now applied the new instructions to vb 3.6.8, but this has not solved it. Do I need to wait for a cron job to be passed or is there something else I need to do?

Paul M 09-07-2007 03:59 PM

I'm not sure what you mean isn't solved. If you have done the file edits correctly then new posts posts will now contain the correct data. Old posts will not be updated.

Alfa1 09-07-2007 04:14 PM

That explains it. Thanks.

dosadno 09-14-2007 11:15 AM

I am having som problems on 3.6.8 version, I cant find the code in step 2. in the class_core.php, so I dont know where to put replacmen code given in the instructions? Help!!!

THNX in front!

Missing code:
Code:

Find ;

                // fetch client IP address
                $registry->ipaddress = $this->fetch_ip();
                define('IPADDRESS', $registry->ipaddress);

                // attempt to fetch IP address from behind proxies - useful, but don't rely on it...
                $registry->alt_ip = $this->fetch_alt_ip();
                define('ALT_IP', $registry->alt_ip);


Paul M 09-14-2007 02:44 PM

If you have the default class_core file for 3.6.8 then the code is there, perhaps your text editor is not searching properly, try just looking for "// fetch client IP address".

CMGU 09-14-2007 04:58 PM

nice thanks


All times are GMT. The time now is 11:33 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.01574 seconds
  • Memory Usage 1,744KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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