here is the function that generates the links:
function adminHeader($phpSelf)
{
$html = " <!-- ADMIN HEADER -->
<table class='adminHeader' cellspacing='0'>
<tr>
<td align='left'>
<div class='adminIndent'>
<span class='largeText boldText ulText darkGreen'>Menu: </span> <br />
<a href='" . $phpSelf . "?op=acpmain' class='navLink'>ACP Home</a> <br /><br />
<a href='" . $phpSelf . "?op=acpmain&act=newPage' class='navLink'>Create a New Page</a> <br />
<a href='" . $phpSelf . "?op=acpmain&act=deletePage' class='navLink'>Delete a Page</a> <br />
<a href='" . $phpSelf . "?op=acpmain&act=editPage' class='navLink'>Edit a Page</a> <br />
<a href='" . $phpSelf . "?op=acpmain&act=renamePage' class='navLink'>Rename a Page</a> <br /><br />
<a href='" . $phpSelf . "?op=logout' class='navLink'>Logout</a> <br />
</div>
</td>
</tr>
</table>
<hr color='#007700' width='100%'> <br />
<!-- END ADMIN HEADER --> \n\n";
return $html;
}
I only placed it in a function becuase I didn't want to have that same segment 20 times in the whole script. Now, I simply call it like this:
print $FUNC->adminHeader($phpSelf);
here is a segment of the actuall script that uses it:
else if ($_GET['op'] == "acpmain")
{
if ($FUNC->oncheck())
{
print $FUNC->adminHeader($phpSelf);
if ($_GET['act'] == "")
{
print "Select an option above to make changes to your site. <br />"
}
else if ($_GET['act'] == "newPage")
{
I should also not that I tried replacing the single quotes around the hyperlink with double quotes. I also tried leaving out $phpSelf and hard coding the entire link.
😕 😕