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=231873)

pujabrang 10-29-2010 10:07 PM

is this mod is compatible with vb 4.0.8

Paul M 10-30-2010 09:01 AM

Quote:

Originally Posted by sonixax (Post 2106444)
is it work on vb 4.0.7 ?

Quote:

Originally Posted by pujabrang (Post 2115857)
is this mod is compatible with vb 4.0.8

There is no need to keep asking this - unless you see something that says otherwise, it works on any 4.0.x

pujabrang 10-30-2010 10:41 AM

sorry for offence mate

DAMINK 11-01-2010 07:06 AM

I am assuming Step 1 has an misatke in the read me?
Read me contains below.

Code:

Step 1.

In class_core.php ;

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);


Replace with ;

                // Paul M - Get ip addresses.
                $registry->ipaddress = $this->fetch_ip();
                $registry->alt_ip = $this->fetch_alt_ip();

                // Check that alt_ip is valid address, reset to original if not.
                if (preg_match("#\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}#", $registry->alt_ip, $iplist))
                {
                        $registry->alt_ip = $iplist[0];
                }
                else
                {
                        $registry->alt_ip = $registry->ipaddress;
                }

                // Set ip constants.
                if ($registry->ipaddress == $registry->alt_ip)
                {
                        define('PROXYIP','');
                        define('ALT_IP',$registry->alt_ip);
                        define('IPADDRESS',$registry->ipaddress);
                }
                else
                {
                        define('ALT_IP',$registry->alt_ip);
                        define('IPADDRESS',$registry->alt_ip);
                        define('PROXYIP',$registry->ipaddress);
                        $registry->ipaddress = $registry->alt_ip;
                }

Closing curly bracket is not supposed to be there? Well it errored for me unless i removed it.

Paul M 11-01-2010 04:15 PM

There are no mistakes in it. All the curley brackets need to be there.

DAMINK 11-01-2010 07:56 PM

Quote:

Originally Posted by Paul M (Post 2116786)
There are no mistakes in it. All the curley brackets need to be there.

Interesting.
Then i will have to say this does not work.
I did exactly as above and my forum errored.
I removed the extra curly bracket and it was back up?
Dunno. Uninstalled until more is known about this i guess.

Paul M 11-01-2010 11:31 PM

Quote:

Originally Posted by DAMINK (Post 2116892)
Then i will have to say this does not work.

If that were the case, this thread would be full of posts about a fault.

Im afraid I would say its down to a mistake being made by yourself.

mitch84 11-02-2010 01:28 PM

installed and work fine on vb4.0.8, thank you!

OldSchoolDSL 11-24-2010 09:40 PM

Installed 4.0.8

Not 100% sure if its working, but nothing is going wrong either so....

OldSchoolDSL 11-24-2010 10:07 PM

Quote:

Originally Posted by OldSchoolDSL (Post 2125466)
Installed 4.0.8

Not 100% sure if its working, but nothing is going wrong either so....

Nope, didn't work. Uninstalled.

Was an odd issue. When clicking the link "Who's online" ... I would get almost a blank page (just the styles / themes background page)

4.0.8 SP2


All times are GMT. The time now is 11:04 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.01184 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
  • (5)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