2012-03-09, 08:08 PM
I have installed page Page Manager. I then created a page in html and it works great. I needed to make it secure so that only certain groups could access it. Someone gave me some code to make it secure which is as follows:
<?php
$disallowed = array('1', '2', '3', '5', '6', '7');
if(in_array($mybb->user['usergroup'], $disallowed))
{
error_no_permission();
}
?>
Now for the problem....I want my cake and eat it too.
If I change the setting Use MyBB Template to yes which turns on the header and footer to keep the pages consistent, I lose the ability to make the page secure.
Is there a way to be able to use the headers and footers from MyBB and keep the page secure?
Thanks,
Jim
<?php
$disallowed = array('1', '2', '3', '5', '6', '7');
if(in_array($mybb->user['usergroup'], $disallowed))
{
error_no_permission();
}
?>
Now for the problem....I want my cake and eat it too.
If I change the setting Use MyBB Template to yes which turns on the header and footer to keep the pages consistent, I lose the ability to make the page secure.
Is there a way to be able to use the headers and footers from MyBB and keep the page secure?
Thanks,
Jim