MyBB-Plugins Forums

Full Version: page manager and php
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have created an additional page with Page Manager and it works fine. But since I had a need to keep this document secure I had to put some code in to keep the page secure. Since I have done that, I cannot check the use MyBb Template box. If I do, I lose the security of the document. Is there a way that I can do this and still use the header and footer to keep the pages looking consistent? Here is the code I am currently using:

<?php

$disallowed = array('1', '2', '3', '5', '6', '7');

if(in_array($mybb->user['usergroup'], $disallowed))
{
error_no_permission();
}


?>

<td valign="top">
<table cellpadding="2" cellspacing="0" border="0">
<tr>
<td width="100%" valign="top">
<!--area Type="main" face="Arial,Helvetica,sans-serif" size="2" color="black" style="0"-->

<p><font face="Arial,Helvetica,sans-serif" size="2" color="black"><DIV></DIV>
<DIV align=center>
</UL>
<P align=left><FONT face="Verdana, Arial, Helvetica, sans-serif"size=2><a href="http://www.sonyrewards.com/en/home/wof/" onmouseout="window.status=' ';return true;"onmouseover="window.status='Wheel of Fortune';return true;" target="_blank"><font color="black"">Wheel Of Fortune</a></DIV></font></P>
<UL>
<LI><FONT color=#0000ff>Living Proof</font></LI>

<!--Rest of code omitted for simplicity -->

Thanks.
Jim

No Permission

Unfortunately you do not have sufficient rights to view replies in this thread.