I have this website where I am using Simpleviewer for the frontend and MaxiGallery for the back. I have a problem when I login as admin and select paintings I do not get the page with MaxiGallery but instead get the home page. When I’m no logged in I get the correct page. I have the following snippet on the page that sends me to one page or the other.
<?php
if (!isset ($_SESSION[’mgrValidated’])) {
$allowed = false;
print ("not in admin mode ");
header("Location: http:/localhost/judy/index.php?id=67");
} else {
print("in admin mode ");
header("Location:
http://localhost/judy/index.php?=54");
}
?>
Is there a easier way. Isn’t there a way to not show the MaxiGallery page to the web visitors and only show it to admin under preview? I’ve been reading about permissions but still don’t understand them enough to know if that would work.
Here is a link to the site:
http://208.106.214.149/index.php?id=67
thanks,