PDA

View Full Version : nadopt.php Access Denied Message for users/guests [ANSWERED]


arlecchina
07-14-2009, 05:11 PM
When logged in users go to nadopt.php they see the home page without any bbcode formatting.

However when a guest goes to nadopt.php they get a message saying access denied.

Is this normal or have I messed something up.

I would like logged in users (who are not admins) and guests to both see an "access denied" message if they accidentally stumble upon the nadopt.php page.

EDIT: This also happens with newlevelpost.php.

SJC
07-14-2009, 07:44 PM
Dont worry, thats normal :). I never noticed that, but I tried it on my website and the same happened for me.
And I will have to look into the access denied message for users.

BMR777
07-18-2009, 01:42 PM
Those files shouldn't really be accessed unless the user is an admin. To fix the message logged in users see you can try finding in the file:

$pagecontent = getsitecontent("index");
$article_title = $pagecontent[title];
$article_content = $pagecontent[content];
$article_content = nl2br($article_content);

Replace With:

$article_title = "Your Title Here";
$article_content = "Your content or error message here.";

:)

Brandon

arlecchina
07-18-2009, 02:48 PM
Thanks SJC and Brandon!