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)

ubblite 06-09-2006 06:48 AM

Just wondering if this will be updated to work with vb3.6.0 - I noticed the class_core.php file in 3.6.0 has changed.

Paul M 06-10-2006 06:07 PM

This hack is a core part of Cable Forum, so Yes, it will be updated (if any changes are required) to work on 3.6.

Sangrun 06-11-2006 02:32 AM

Installed and thank you!

Pamela 06-16-2006 05:59 AM

*clicks install*

Thanks!!! :D

SupremeWeapon 06-17-2006 09:29 PM

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


Replace with ;

        
// Paul M - Fetch client IP address & Proxy server address if detected
        
$registry->ipaddress $this->fetch_ip();
        
$registry->alt_ip $this->fetch_alt_ip();
        
define('ALT_IP'$registry->ipaddress);
        if (
$registry->alt_ip == '')
        {
            
define('PROXYIP'''); 
            
define('IPADDRESS'$registry->ipaddress);
        }
        else
        {
            
define('PROXYIP'$registry->ipaddress);
            
define('IPADDRESS'$registry->alt_ip); 
        } 

isnt in the class_core.php for 3.5.4

neither is
PHP Code:

Find ;

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


Replace with ;

        
// Paul M - define session constants
        
define('SESSION_IDHASH'md5($_SERVER['HTTP_USER_AGENT'] . IPADDRESS));
        
define('SESSION_HOST',   substr(IPADDRESS015)); 


ubblite 06-17-2006 10:56 PM

Quote:

Originally Posted by Paul M
This hack is a core part of Cable Forum, so Yes, it will be updated (if any changes are required) to work on 3.6.

Perhaps this hack already works with vb3.6 beta, but when I was looking for the text to replace in class_core.php the text to be replaced wasn't matching up with the readme file, although it was very close but I just didn't want to risk erasing and replacing the wrong code.

Paul M 06-17-2006 11:23 PM

Quote:

Originally Posted by SupremeWeapon
isnt in the class_core.php for 3.5.4

I suggest you look again, because it's all there. :)

Paul M 06-17-2006 11:24 PM

Quote:

Originally Posted by ubblite
Perhaps this hack already works with vb3.6 beta, but when I was looking for the text to replace in class_core.php the text to be replaced wasn't matching up with the readme file, although it was very close but I just didn't want to risk erasing and replacing the wrong code.

It will work fine, but the code to look for has changed slightly (and the changes will be slightly different) - as I said, I will do a 3.6 version, but not atm, we are still only on beta 2.

SupremeWeapon 06-18-2006 01:37 AM

Quote:

Originally Posted by Paul M
I suggest you look again, because it's all there. :)


looking and not seeing. find can't even find it.


edit.. mmk found it.... going through a file line by line word by word isn't fun at all.


***Installed***

jw00dy 06-19-2006 08:39 PM

First off Great Hack, so thank you.

I am however, getting an error that I'm wondering if you can shed some light on?

I get these emailed to me every so often.
Quote:

Database error in vBulletin 3.5.4:

Invalid SQL:
INSERT INTO proxycache (ip, listed, dateline) VALUES ('24.225.90.201', 0, 1150736342);

MySQL Error : Duplicate entry '24.225.90.201' for key 1 Error Number : 1062
Date : Monday, June 19th 2006 @ 10:59:10 AM
Script : http://allthingsmoto.com/forums/index.php
Referrer : http://allthingsmoto.com/
IP Address : 24.225.90.201
Username : superrooster
Classname : vb_database
It looks like they are only stating that theirs a duplicate entry, but I'm not completely sure. That and they are somewhat annoying.

Any idea? TIA


All times are GMT. The time now is 07:54 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.01257 seconds
  • Memory Usage 1,758KB
  • 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_php_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