When I am logged out of zenphoto I cannot see the Admin link down the bottom of the page, when I am logged in I can.
The code being used to display this is:
<?php printAdminLink('Admin', '', ' | '); ?>
Is there anyway to print the admin link whether I am logged in or out, or something like a "Log In" to be displayed if I am not logged in without creating a link manually like this?
AdminThanks in advance,
Dave (FatalCure)
Comments
What it does is show the following if you are not logged in:
ZenPhoto 1.0.2 / Login
And shows the following if you are logged in:
ZenPhoto 1.0.2 / Admin / Sort Gallery / Logout
Here's the code:
`
<?php<br />
echo 'ZenPhoto ';
printVersion();
if (zp_loggedin()) {
printAdminLink('Admin', ' / ', ' / ');
printSortableGalleryLink('Sort Gallery', 'Manually Sort the Gallery');
echo ' / Logout';
} else {
echo ' / ';
printLink(WEBPATH.'/zen/admin.php', Login');
}
?>
`