Version: 1.00, by Takara
Developer Last Online: Oct 2009
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.
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.
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')");
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
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 @_@;
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...
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:
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.