vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Proxy ip to real ip conversion (https://vborg.vbsupport.ru/showthread.php?t=69295)

VBUsers 02-27-2005 05:39 AM

Quote:

Originally Posted by bonnmac
i need some help can you explain the phrases what to do with this its not clear in the directions i mean i know how to add phrase but the way you have them they won't install thanks for a great addition


this is what you need to add

Step 2.

Add the following phrase (with out the "")"thread_displayproxyip" (as a Front End Error Phrase, not a Global Phrase) <----in this area.choose in the drop down;

enter this text:

then post this in the box
Real IP Address : $postinfo[ipaddress]<br>
$postinfo[hostaddress]<br>
Proxy Server IP Address : $postinfo[proxyip]<br>
$postinfo[proxyhost]


and save.

bonnmac 02-27-2005 01:30 PM

ok i've done that and i get nothing i see no change from the way vb was i had a friend login with a proxy and it showed the proxy ip normal did not show real ip am i doing something wrong?

Paul M 02-27-2005 01:57 PM

Quote:

Originally Posted by bonnmac
ok i've done that and i get nothing i see no change from the way vb was i had a friend login with a proxy and it showed the proxy ip normal did not show real ip am i doing something wrong?

That depends on the proxy server your friend is using, as it says in the first post;

Quote:

Obviously, like all proxy server detection hacks, this will only work if the proxy server passes the appropiate http variables.

MickDoneDee 02-27-2005 03:02 PM

Quote:

Originally Posted by bonnmac
ok i've done that and i get nothing i see no change from the way vb was i had a friend login with a proxy and it showed the proxy ip normal did not show real ip am i doing something wrong?

Did your friend make a post? That is the real test. A post which was made using a proxy ip will call the red icon which will reveal the real ip address when clicked or hovered over with the mouse.

VBUsers 02-27-2005 05:44 PM

Quote:

Originally Posted by MickDoneDee
Did your friend make a post? That is the real test. A post which was made using a proxy ip will call the red icon which will reveal the real ip address when clicked or hovered over with the mouse.

yeah have atleast 3 members/staff post with Proxy IPs. that way you will know if it did work. also make sure that you added everything in the right place. sometimes you make a mistake and its as easy as doing the edit over.

VBUsers 02-28-2005 08:26 PM

Quote:

Originally Posted by Paul M
See https://vborg.vbsupport.ru/showpost....85&postcount=9 for the first bit.

For who's online, it is an option (in Admin CP) to turn on host display, but this still relies on there actually being a reverse dns lookup record for the ip (which is nothing to do with me ;))

cant seem to find this is want to see the icon in the whos online but i dont find this option.

MickDoneDee 02-28-2005 08:33 PM

What are you asking?

Paul M 02-28-2005 09:36 PM

Quote:

Originally Posted by lowandloudinc
cant seem to find this is want to see the icon in the whos online but i dont find this option.

Erm, what icon ? - This hack does not add any icons to the WOL display :confused:

YLP1 03-08-2005 12:10 PM

Hi all...I am applying this modification but came across a major difference in the code to be replaced:

Instructions say to find this:
Quote:

Find:

// ### POST NEW POST ###
$DB_site->query("
INSERT INTO " . TABLE_PREFIX . "post
(threadid, parentid, title, username, userid, dateline, pagetext, allowsmilie,
showsignature, ipaddress, iconid, visible, attach)
VALUES
($threadinfo[threadid], $parentid, '" . addslashes($post['title']) . "',
'" . addslashes($post['postusername']) . "', $bbuserinfo[userid], " . TIMENOW . ",
'" . addslashes($post['message']) . "', $post[enablesmilies], $post[signature],
'" . addslashes($post['ipaddress']) . "', $post[iconid], $post[visible], $totalattachments)
");
My functions_newpost.php says this:
Quote:

// ### POST NEW POST ###
$DB_site->query("
INSERT INTO " . TABLE_PREFIX . "post
(threadid, parentid, title, username, userid, dateline, pagetext, allowsmilie,
showsignature, ipaddress, iconid, visible, attach, useragent, altip)
VALUES
($threadinfo[threadid], $parentid, '" . addslashes($post['title']) . "',
'" . addslashes($post['postusername']) . "', $bbuserinfo[userid], " . TIMENOW . ",
'" . addslashes($post['message']) . "', $post[enablesmilies], $post[signature],
'" . addslashes($post['ipaddress']) . "', $post[iconid], $post[visible], $totalattachments,
'" . addslashes($_SERVER['HTTP_USER_AGENT']) . "', '" . ALT_IP . "')
");

I have this extra code in my file:

'" . addslashes($_SERVER['HTTP_USER_AGENT']) . "', '" . ALT_IP . "')


I am not sure what to do with this added line (I have ver 3.0.7)

Please advise and thanks in advance.

Paul M 03-08-2005 01:40 PM

You must have added a hack at some point ;

Replace the code with this and it should be ok ;

PHP Code:

//         Paul M Proxy Hack v1.31x 
        // ### POST NEW POST ###
        
$DB_site->query("
            INSERT INTO " 
TABLE_PREFIX "post
                (threadid, parentid, title, username, userid, dateline, pagetext, allowsmilie,
                 showsignature, ipaddress, proxyip, iconid, visible, attach, useragent, altip)
            VALUES
                (
$threadinfo[threadid]$parentid, '" addslashes($post['title']) . "',
                 '" 
addslashes($post['postusername']) . "', $bbuserinfo[userid], " TIMENOW ",
                 '" 
addslashes($post['message']) . "', $post[enablesmilies]$post[signature],
                 '" 
addslashes($post['ipaddress']) . "','" addslashes($post['proxyip']) . "', $post[iconid]$post[visible]$totalattachments,
                 '" 
addslashes($_SERVER['HTTP_USER_AGENT']) . "', '" ALT_IP "')
        "
);
//         End Proxy Hack 



All times are GMT. The time now is 09: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.01527 seconds
  • Memory Usage 1,764KB
  • 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_php_printable
  • (9)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