X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/130231b1c611644b68b8a6635589dcfff457b5c3..251616969893b447852aad81a4e68be6853e202e:/foto/index.php diff --git a/foto/index.php b/foto/index.php index cd939f3..550e7a3 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('foto')) { $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); +$Article->title = implode(' ', $nav) . ': ' . $title; $link = ''; print "

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