vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Proxy Hack v1.0 (https://vborg.vbsupport.ru/showthread.php?t=38358)

Takara 05-09-2002 06:59 PM

Eurgh, yes sparkz was right. I'm an admited messy coder >.< lol. I often miss the smallest things in my code -.-

Anyway, use this:

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','$proxyip','$iconid','$visible')"); 

All should be good >.<

heretic 05-09-2002 09:15 PM

Quote:

Originally posted by Takara


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 >.<


that's what I am referring to- posts I know were made from a proxy won't show up as having one, even though it did before, even in the show IP template

DWZ 05-09-2002 10:56 PM

That worked Takara :D

Last question, I have FF's quick reply hack installed. Will this hack still work when a person uses the reply thingy at the bottom of the thread?

OK, thanks :)

Alan

Takara 05-10-2002 12:32 AM

Ummmm... maybe... lol. I'm not quite sure. I'll take a look at the quick reply box.

DWZ, can you check one thing for me? Make a new reply. Make sure you put something in the optional subject box. Tell me if it shows up in the post. My board stoped showing the optional subject when you reply.
I'm trying to see what hacks fault it is @_@;

DWZ 05-10-2002 03:39 AM

Quote:

Originally posted by Takara
DWZ, can you check one thing for me? Make a new reply. Make sure you put something in the optional subject box. Tell me if it shows up in the post. My board stoped showing the optional subject when you reply.
Well, you see, my forum is set to not show the subject on postbit, so im not sure if it would display or not with the postbit code in there...

And as for the quick reply hack, I have gone over the code it uses (note that i am still a php and mysql newbie, so what i say may have nothing to do with what is really going on :)) anyway, from what i see, it makes no querys, it makes newreply.php and the showthread_replybox template do all the work. As i am only a newbie in this sort of thing, i dont know if this:
PHP Code:

     if (getenv("HTTP_FORWARDED")!="") {
        
$proxyip=getenv("HTTP_FORWARDED");$proxyip="<P>Proxy Detected. Real IP: $proxyip<br><small>Because a proxy has been detected, the above IPs are those of the proxy</small></P>";
      } elseif (
getenv("HTTP_X_FORWARDED_FOR")!="") {
        
$proxyip=getenv("HTTP_X_FORWARDED_FOR");$proxyip="<P>Proxy Detected. Real IP: $proxyip<br><small>Because a proxy has been detected, the above IPs are those of the proxy</small></P>";
      } elseif (
getenv("HTTP_CLIENT_IP")!="") {
        
$proxyip=getenv("HTTP_CLIENT_IP");$proxyip="<P>Proxy Detected. Real IP: $proxyip<br><small>Because a proxy has been detected, the above IPs are those of the proxy</small></P>";
      } else {
        
$proxyip="";
      } 

needs to be put in showthread.php or the showthread_replybox template anywhere...

Takara 05-10-2002 04:33 AM

It would need to be put in showthread.php, not the template. but there is other stuff too. I havent yet checked out his hack.

Jawelin 05-10-2002 08:40 PM

Quote:

Originally posted by DWZ
[...] needs to be put in showthread.php or the showthread_replybox template anywhere...
Actually you seem trying to collect proxy infos at showing post time, when they don't exist any more, instead of saving them at writing post time, when the HTTP header could give them to the board php engine... ???
Do you realized it ? :laugh:

Derek 05-11-2002 03:39 AM

I am having major problems with this. I cannot get anything to work, yet I installed everything. If you have gotten this installed correctly on your boards, please AIM me at "Koruptism"

Takara, I would really appreciate you being able to contact me.

Takara 05-11-2002 06:39 AM

Sorry guys, I'm going to be away for 4 days on a buisness trip to Hong Kong.

See you then.

DWZ 05-11-2002 09:45 AM

Quote:

Originally posted by Takara
I'm going to be away for 4 days on a buisness trip to Hong Kong.
have fun :)


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