Mercurial > hg > fapweb
changeset 60:4e09327ed4d0
Show certain menu options always if we are inside an admin session.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 05 Oct 2013 11:36:30 +0300 |
parents | e5e38ed4e837 |
children | e85ed35585fc |
files | index.php |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/index.php Sat Oct 05 11:36:09 2013 +0300 +++ b/index.php Sat Oct 05 11:36:30 2013 +0300 @@ -45,16 +45,18 @@ <a href="compos">Compos</a> <a href="event">Event</a> <? +$visibility = stAdmSessionAuth(); + if (stGetSetting("showAttendees")) echo " <a href=\"attendees\">Attendees</a>\n"; if (stGetSetting("allowVoting")) echo " <a href=\"vote\">Vote</a>\n"; -if (stGetSetting("showResults")) +if ($visibility || stGetSetting("showResults")) echo " <a href=\"results\">Results</a>\n"; -if (stGetSetting("showAdmin") || stAdmSessionAuth()) +if ($visibility || stGetSetting("showAdmin")) echo " <a href=\"admin\">Admin</a>\n"; ?> <? echo stGetSetting("siteMenuFooter") ?>