PDA

View Full Version : Hiding Admin's IP address?


Sweet Cheeks
09-18-2002, 03:45 PM
I hope I'm not requesting too much by doing 2 requests in one day :paranoid: but is there a way to make it so Moderators cannot see the Administrators IP address when they view who's online and/or the "Ip Logged" link?

Thanks in advance, you guys are the best :banana:

Xenon
09-18-2002, 03:49 PM
open postings.php
find // ############################### start retrieve ip ###############################
if ($action=="getip") {

$postid=verifyid("post",$postid);
$postinfo=getpostinfo($postid);
$threadinfo=getthreadinfo($postinfo[threadid]);
$foruminfo=getthreadinfo($threadinfo[forumid]);

below add:
$userinfo=getuserinfo($postinfo[userid]);
if($userinfo[usergroupid]==6 and $bbuserinfo[usergroupid]!=6) show_nopermission();

Sweet Cheeks
09-18-2002, 03:51 PM
You are awesome, thank you :banana:

Sweet Cheeks
09-18-2002, 10:36 PM
This is probably a dumb ???, but is it possible to hide the admin's IP addy when viewing who's online?

Xenon
09-19-2002, 09:45 AM
sorry have forgotten that part ;)

open online.php find this: eval("\$onlinebit_ip = \"".gettemplate("whosonlinebit_ip")."\";");

replace it with this: if($bbuserinfo[usergroupid]==6 or $userinfo[usergroupid]!=6) {
eval("\$onlinebit_ip = \"".gettemplate("whosonlinebit_ip")."\";");
} else { $onlinebit_ip = "Admin home^^"; }

that should work