vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Proxy Detector v3.1 - for Posts and WOL (https://vborg.vbsupport.ru/showthread.php?t=61331)

mtha 02-07-2004 10:00 PM

Proxy Detector v3.1 - for Posts and WOL
 
############################################
# Hack Name: Proxy Detector v3.1
# Orgiginal hack by Takara and Stadler (for vB 2.0)
# Modified for vB 3.0.1 and Addon by HacNho
# Compatibility to vB 3.0.x
# Date: 06.20.04
############################################
# History:
# Version 3.1: (update 06.20.04)
# 1. Display ProxyIP in WhoIsOnline list (in UserAgent section)
#
# Version 3.0:
# 1. Compatibility to vB 3.0 RC4
# 2. Admin with "adminpermission" will see the "ProxyIP when overmouse if the IP is not shown
# 3. Proxy IP will be displayed with IP address in show IP page
#
# # Version 2.0 ...
# # Version 1.0 by Takara and Stadler (for vB 2.x)

###########################################
# Description: This is little hack detects via the Environmental Variable
# HTTP_X_FORWARDED_FOR if the user is using a proxy. Most proxys give out this
# variable. If it is it will display it out for you, and allow you to view the
# real IP of the person, and proxy IP when you click the link (in Post or Who'sOnline).
#
# Files Edited: 5 - includes/init.php
# - Files edited for proxyIP in posts: 2- includes/functions_newpost.php, postings.php
# - Files edited for proxyIP in WOL: 2- includes/sessions.php, online.php
# Templates Modified for proxyIP in posts: 2 - postbit_ip_show, postbit_ip_hidden
# Templates Modified for ProxyIP in WOL: 1 - whosonlinebit
# SQL Query to run: 2 (add proxyip in post and session table)
# Phrase to add: thread_displayproxyip

#
# Remember to backup your files and DB before making any changes!
############################################

INSTALL: HN-ProxyDetextor-301.txt (8.9 KB)

Upgrade from version 3.0 or only install ProxyDetector for WOL:
HN-ProxyDetextor-WOL.txt (11.5 KB) - Update 06.20.04

Upgrade from version for vB beta7 to version 3.0HN-ProxyDetextor-upgrade-b7-RC4.txt (3.5 KB)

SCREENSHOTS:
proxydetected.jpg (7.8 KB)
proxyip-WOL.gif (10.1 KB)



*NEW: version 3.1 will save and show proxyIP in Who is Online page.
In order to see proxy, you need to turn "UserAgent" on:
http://YourDomain/Yourforum/online.php?ua=1


Remember to click https://vborg.vbsupport.ru/

version2 02-08-2004 08:12 PM

Rock on.

msimplay 02-08-2004 10:24 PM

please make it work for rc2

mtha 02-08-2004 10:44 PM

Quote:

Originally Posted by msimplay
please make it work for rc2

You can try installing on RC2 (or RC4 is the most current one). it should work fine. (version2, do you need to do anything else for your RC2 to work with this hack?)

I dont have any RC in use yet,

msimplay 02-08-2004 11:58 PM

i did try and i failed :) thats why i posed please make it work for rc2

mtha 02-09-2004 01:48 AM

Quote:

Originally Posted by msimplay
i did try and i failed :) thats why i posed please make it work for rc2

I have looked over the code for RC4, and there's nothing different, except for the search in functions.php, you look for

/*================================================= =====================*\
|| ################################################## ##################
|| # Downloaded: 22:43, Fri Feb 6th 2004
|| # CVS: $RCSfile: functions.php,v $ - $Revision: 1.944 $
|| ################################################## ##################
\*================================================ ======================*/

at the end of that file, and add the getproxyip() function above it. everything else should be the same.

(If codes RC4 and beta7 are the same (at the searching locations), I would assume that the code in RC 2 be the same)

If you tell me the error, or where you get stuck, I may be able to help you, without rewriting the mod, which I dont think I will, until Gold. :)

Frank 02-09-2004 08:21 AM

Nice thanks.

VampireMan 02-09-2004 10:23 AM

could this be altered for the who's online page ?

msimplay 02-09-2004 01:18 PM

omg i ran the querie now nomatter who i click on the profile always goes to my profile how do i reverse this querie please :(

mtha 02-09-2004 02:39 PM

Quote:

Originally Posted by VampireMan
could this be altered for the who's online page ?

This hack is for per post IP detection, and who's online page is for per login IP, so, this would not work in who's online page

However, you can use the same method, to read IP in who's online page. it'd be great too.

Quote:

Originally Posted by msimplay
omg i ran the querie now nomatter who i click on the profile always goes to my profile how do i reverse this querie please

I dont really understand what you mean. This hack should not effect profile.

the only SQL query is to add a column to your post table:
ALTER TABLE post ADD proxyip VARCHAR(50) not null AFTER ipaddress;


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