Good idea, although, with it set up like it is, I think only Admins can view IPs on my site already, so it should be set to go if I move it there. The show nopermissions is a good safety catch though.
Let me ask you this...how could I do the permissions for like it is set for in the Admin CP, for whoever I have it set for to be able to see IPs?
Quote:
Originally posted by NTLDR
It won't hurt being there, however you need to remove the cpheader(); and cpfooter(); lines as that will cause parse errors.
If you do move it into the forums directory I suggest that you add this code after require('./global.php'); so that only admins can view the page, and everyone else gets the no permission error.
PHP Code:
if ($bbuserinfo[usergroupid]!=6) {
show_nopermission();
}
|