PDA

View Full Version : [req] Ip cutting hack


n0nam3
07-01-2003, 06:48 AM
i cannot search the forum because ip is small name and i get an error to the search!

Can someone create hack that will display ip to everyone

in who in online and in getinfo Templates but this hack will show not full ip
here is example:
127.127.127.127- it is real ip! admins can view it
but users will see it in such way 127.127.127.***
with ***

thx!!

Logician
07-01-2003, 08:18 AM
edit online.php, find:


eval("\$onlinebit_ip = \"".gettemplate("whosonlinebit_ip")."\";");


Replace it as:

if ($bbuserinfo['usergroupid']!=6)
{
$userinfo[ipaddress]=substr($userinfo[ipaddress],0,(strrpos($userinfo[ipaddress],'.')+1)).'***';
}
eval("\$onlinebit_ip = \"".gettemplate("whosonlinebit_ip")."\";");


Also remember to grant other usergroups who is online rights to make it work..

n0nam3
07-01-2003, 08:48 AM
thx man!!!