X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/621fc2f9638a1a92aa8535310e7852de5542f11e..063591ce4b064ed149aad58f0c619895c9ae4014:/foto/index.php diff --git a/foto/index.php b/foto/index.php index a97ec1c..0ce4d20 100644 --- a/foto/index.php +++ b/foto/index.php @@ -2,15 +2,17 @@ $rootdir = $Page . $Args; if ($User->admin('foto')) { - $access = '🔓 Openbaar'; if (!empty($PageAccess)) { - $access = "🔒 Bewoners"; + $access = '🔒 Bewoners'; if ($PageAccess != $rootdir) { $access .= sprintf(' vanaf %s', "/$PageAccess", pathinfo($PageAccess, PATHINFO_FILENAME) ); } } + else { + $access = '🔓 Openbaar'; + } print "\n\n"; }