How can i stop a registered user and guest viewing a certain page?
Example:
www.site.com/mypage.php
How can i stop them viewing "mypage.php" ?
You could edit the code to add only admins could do it, but forgot what it was :/
Sure someone will know it here.
if(in_array($mybb->user['usergroup'], array(1,2,5,7)))
{
error_no_permission();
}
Put that anywhere after global.php has been included in this file.