Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Proxy Hack v1.0 Details »»
Proxy Hack v1.0
Version: 1.00, by Takara Takara is offline
Developer Last Online: Oct 2009 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 05-06-2002 Last Update: 06-08-2002 Installs: 101
 
No support by the author.

Ooook,

Well, this hack is a little thing to give you vB admins and moderators some more information about the users using proxys on your board (mainly, thier IP address).

The following version is upto date and works with vb 2.2.8 and whatever else. This version was updated by Stadler to work with 2.2.8. I cannot provide support personally for ANY versions here. And I do not know what support Stadler can give you.

So, download the 2.2.8 update here

----------------

Everything below has to do with super old versions that don't matter.. because they are super old! You don't want them, so don't even read it!


STOP READING! hehe, anyway. I repeat:

VERSION 2.2.8 ABOVE ^
VERSION 2.2.5 BELOW

enjoy

--------------

Screenshots are in the posts to follow.

Let me know how you like it, or ways I could improve it. ^_^ :bunny:

Edit: Non intrusive version
This little edit simply adds the proxy info to the getip template. So when mods/admins click the "IP Logged" button/graphic if there is any proxy info, it will tell them instead of in postbit.

Get it here

Attachment: Non Intrusive Version Screenshot

Normal, version:

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 05-07-2002, 10:41 PM
heretic's Avatar
heretic heretic is offline
 
Join Date: Nov 2001
Posts: 285
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great job Takara! you went faster than I was able to get on to help. This helps my forum a whole lot
Reply With Quote
  #33  
Old 05-08-2002, 02:01 AM
Keyser S?ze's Avatar
Keyser S?ze Keyser S?ze is offline
 
Join Date: Apr 2002
Location: USA
Posts: 690
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

err, maybe im reading this wrong, but check this out, for the non-intrusive version, to install it, on the postbit template one for UP, u do this:
## Go to Templates -> Postbit Templates -> threads_displayip
### Replace ALL with:

The Proxy IP Address is: $postinfo[ipaddress]. The Proxy host name is: $postinfo[hostaddress].<br>Real IP: $postinfo[proxyip]<P>Please click <a href="showthread.php?s=$session[sessionhash]&threadid=$threadid">here</a> to return to the thread.

now, does that mean, for ppl that DONT have a IP it will say this: The proxy IP address is: <real address> proxy host name is: <real host>. Real IP is <real IP>. Please.....

so it will basically say everyone is using a prxy, couldnt u make it so when u click that link, it say what it normally says unless they are using a proxy, like if they are using a proxy, the message changes, make sense?
Reply With Quote
  #34  
Old 05-08-2002, 07:06 AM
Jawelin Jawelin is offline
 
Join Date: Nov 2001
Posts: 557
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Takara
Ah, I actually wasnt aware of that, but its easyily correctable by replacing: [...]
Yes, thanks. Actually I merged the proxyfied-ip displaying within the existent threads_displayip template.
And when retrieving the ip, I made this check:
PHP Code:
      if (getenv("HTTP_FORWARDED")!="") {
        
$ipforwarded=getenv("HTTP_FORWARDED");
      } elseif (
getenv("HTTP_X_FORWARDED_FOR")!="") {
        
$ipforwarded=getenv("HTTP_X_FORWARDED_FOR");
      } elseif (
getenv("HTTP_CLIENT_IP")!="") {
        
$ipforwarded=getenv("HTTP_CLIENT_IP");
      } else {
        
$ipforwarded="";
      } 
There should be many many more env vars (I don't know their real use, but found at least 20 vars with a proxy meaning...) to detect/discover a proxy, but the three above are the most commonly filled.

Thanks again.
Reply With Quote
  #35  
Old 05-08-2002, 07:23 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is a great hack.
i wonder if the original file in the first post is updated with all the mods listed in this thread... let me know please.
this will be a great addition to my board.. as i fight pirates.
Reply With Quote
  #36  
Old 05-08-2002, 07:48 PM
Takara's Avatar
Takara Takara is offline
 
Join Date: Apr 2002
Location: :bunny:
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okie, sorry everyone. I took a look at the second one again, and corrected it. Alot of it didnt make any sence at all >.<
Just run through the script and re-replace things.

Also I updated both with the stuff from Jawelin, thankyou.

If you previously installed the less intrusive verson, you NEED to run this sql query to make it run:
Code:
ALTER TABLE post MODIFY proxyip varchar(255);

Sorry everyone T_T

All txt files updated
Reply With Quote
  #37  
Old 05-08-2002, 08:00 PM
Ian's Avatar
Ian Ian is offline
 
Join Date: Mar 2002
Location: Minnesota
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Takara
Sorry everyone T_T

All txt files updated
I just downloaded the newest .txt file and it is still using the 16 variable... Might want to change that if that's what your referring to.
Reply With Quote
  #38  
Old 05-08-2002, 08:04 PM
Takara's Avatar
Takara Takara is offline
 
Join Date: Apr 2002
Location: :bunny:
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

eurrgh, I'm so stupid >.< lol
Reply With Quote
  #39  
Old 05-08-2002, 08:15 PM
Takara's Avatar
Takara Takara is offline
 
Join Date: Apr 2002
Location: :bunny:
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is how the non-intrusive looks in the getip
Reply With Quote
  #40  
Old 05-08-2002, 08:56 PM
heretic's Avatar
heretic heretic is offline
 
Join Date: Nov 2001
Posts: 285
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

meh, for soem reason it's not detecting the proxies now that I'm using the non-intrusive version
Reply With Quote
  #41  
Old 05-09-2002, 01:47 AM
DWZ's Avatar
DWZ DWZ is offline
 
Join Date: Dec 2001
Posts: 207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the update. The instrutions for newthread.php went fine, however, I had trouble with newreply.php. Where I am supposed to find:
PHP Code:
$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,attachmentid,pagetext,allowsmilie,showsignature,ipaddress,iconid,visible) VALUES (NULL,'$threadid','".addslashes(htmlspecialchars($subject))."','".addslashes($postusername)."','$bbuserinfo[userid]','".time()."','$attachmentid','".addslashes($message)."','$allowsmilie','$signature','$ipaddress','$iconid','1')"); 
and replace with:
PHP Code:
$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,attachmentid,pagetext,allowsmilie,showsignature,ipaddress,proxyip,iconid,visible) VALUES (NULL,'$threadid','".addslashes(htmlspecialchars($subject))."','".addslashes($postusername)."','$bbuserinfo[userid]','".time()."','$attachmentid','".addslashes($message)."','$allowsmilie','$signature','$ipaddress','$proxyip','$iconid','1')"); 
I cant find that. However, what I can find is this:
PHP Code:
$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,attachmentid,pagetext,allowsmilie,showsignature,ipaddress,iconid,visible) VALUES (NULL,'$threadid','".addslashes(htmlspecialchars($title))."','".addslashes($postusername)."','$bbuserinfo[userid]','".time()."','$attachmentid','".addslashes($message)."','$allowsmilie','$signature','$ipaddress','$iconid','$visible')"); 
I take it thats what you are talking about, what do you think I should do?

Sorry about word wrap
Reply With Quote
  #42  
Old 05-09-2002, 02:05 AM
Takara's Avatar
Takara Takara is offline
 
Join Date: Apr 2002
Location: :bunny:
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by heretic
meh, for soem reason it's not detecting the proxies now that I'm using the non-intrusive version
It wont display the "Proxy Detected" in the postbit with the non intrusive version. It only displays that a proxy has been detected when you click "IP Logged" or whatever you set it to.

Aswell it doesnt work with ALL proxys >.<
Reply With Quote
  #43  
Old 05-09-2002, 02:07 AM
Takara's Avatar
Takara Takara is offline
 
Join Date: Apr 2002
Location: :bunny:
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Aswell DWZ. If you have other hacks installed it may be slightly diffrent, so replace:

PHP Code:
$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,attachmentid,pagetext,allowsmilie,showsignature,ipaddress,iconid,visible) VALUES (NULL,'$threadid','".addslashes(htmlspecialchars($title))."','".addslashes($postusername)."','$bbuserinfo[userid]','".time()."','$attachmentid','".addslashes($message)."','$allowsmilie','$signature','$ipaddress','$iconid','$visible')"); 
with

PHP Code:
$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,attachmentid,pagetext,allowsmilie,showsignature,ipaddress,proxyip,iconid,visible) VALUES (NULL,'$threadid','".addslashes(htmlspecialchars($title))."','".addslashes($postusername)."','$bbuserinfo[userid]','".time()."','$attachmentid','".addslashes($message)."','$allowsmilie','$signature','$ipaddress','$iconid','$visible')"); 
^_^ :bunny:
Reply With Quote
  #44  
Old 05-09-2002, 02:54 AM
DWZ's Avatar
DWZ DWZ is offline
 
Join Date: Dec 2001
Posts: 207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for the reply... but I have a problem...

New thread works fine, but new reply i get a database error...
Quote:
Database error in vBulletin 2.2.5:

Invalid SQL: INSERT INTO post (postid,threadid,title,username,userid,dateline,at tachmentid,pagetext,allowsmilie,showsignature,ipad dress,proxyip,iconid,visible) VALUES (NULL,'95','','DWZ','1','1020915881','0','test','1 ','0','63.34.212.243','0','1')
mysql error: Column count doesn't match value count at row 1

mysql error number: 1136

Date: Thursday 09th of May 2002 11:44:41 AM
Script: http://www.consoleradar.com/forums/forums/newreply.php
Referer: http://www.consoleradar.com/forums/n...ly&threadid=95
and yeah, i ran the query and everything...

EDIT: I have just uploaded the backup of newreply that i made just before i installed this hack, all is well now... but yeah, would be nice If I could have that proxy checking on newreply as well as newthread...
Reply With Quote
  #45  
Old 05-09-2002, 08:10 AM
squawell's Avatar
squawell squawell is offline
 
Join Date: Oct 2001
Posts: 681
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

one problem....

if the user did not use proxy and how to make it show up ""no

proxy detect"" like this message in postbit.......can do that??

or its already done in ur hack...
Reply With Quote
  #46  
Old 05-09-2002, 08:30 AM
Takara's Avatar
Takara Takara is offline
 
Join Date: Apr 2002
Location: :bunny:
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, first thing replace both of these in newreply.php and newthread.php
PHP Code:
//Proxy Check
    
if ($post[proxyip]!='') {
        eval(
"\$post[proxysip] = \"".gettemplate("proxy_proxyip")."\";");
    } else {
        
$post[proxysip]='';
    }
//Proxy Check 
with the following:
PHP Code:
//Proxy Check
    
if ($post[proxyip]!='') {
        eval(
"\$post[proxysip] = \"".gettemplate("proxy_proxyip")."\";");
    } else {
        eval(
"\$post[proxysip] = \"".gettemplate("proxy_noproxyip")."\";");
    }
//Proxy Check 
Then make a new template called proxy_noproxyip and put in it whatever you want (ie: No Proxy Detected)

^-^
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:39 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.07076 seconds
  • Memory Usage 2,402KB
  • Queries Executed 30 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (8)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (16)post_thanks_box
  • (16)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (16)post_thanks_postbit_info
  • (15)postbit
  • (16)postbit_onlinestatus
  • (16)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete