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