@ Seapyramid. I know they can't access it, and that's not the issue, I'd just like that button to not even be there for them, as it might lead to confusion.
@Bloodrun. That gave me the white screen of death. :/
PHP Code:
$group = getgroup();
$cancp = cancp($group);
if($cancp == "yes"){
$admin = "<a href='admin.php'><b>ACP</b></a><br>";
}
else{
$admin = "";
}
$sidebar = "<b><u>".$loggedinname."'s Links:</u></b><br><br>
<a href='adopt.php'>Adopt Some Pets</a><br>
<a href='myadopts.php'>Manage Adoptables</a><br>
<a href='account.php'>Go to My Account</a><br>
".$msgctr."
<a href='logout.php'>Log Out</a>";
".$admin."
}
Is this right?