X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/130231b1c611644b68b8a6635589dcfff457b5c3..882347cba815e99ba8e7ad28d077420aa986e7c5:/foto/index.php diff --git a/foto/index.php b/foto/index.php index cd939f3..f438cb9 100644 --- a/foto/index.php +++ b/foto/index.php @@ -3,7 +3,7 @@ $intro = ob_get_clean(); $rootdir = $Page . $Args; -if (!empty($User['admin'])) { +if ($User and $User->admin) { $access = '🔓 Openbaar'; if (isset($PageAccess)) { $access = "🔒 Bewoners"; @@ -19,6 +19,7 @@ if (!empty($User['admin'])) { $nav = explode('/', $rootdir); $nav[0] = "Foto's"; # override of root 'foto' $title = array_pop($nav); +$Place['title'] = implode(' ', $nav) . ': ' . $title; $link = ''; print "

"; @@ -76,7 +77,11 @@ if ($imgs = glob("$rootdir/*", GLOB_ONLYDIR)) { if ($imgs = glob("$rootdir/*.jpg")) { print '