-if ($User and $User->admin) {
- $access = '🔓 Openbaar';
- if (isset($PageAccess)) {
- $access = "🔒 Bewoners";
+if ($User->admin('foto')) {
+ if (!empty($PageAccess)) {
+ $access = '<span class="icon icon-locked">🔒</span> Bewoners';
if ($PageAccess != $rootdir) {
$access .= sprintf(' vanaf <a href="%s">%s</a>',
"/$PageAccess", pathinfo($PageAccess, PATHINFO_FILENAME)
);
}
}
if ($PageAccess != $rootdir) {
$access .= sprintf(' vanaf <a href="%s">%s</a>',
"/$PageAccess", pathinfo($PageAccess, PATHINFO_FILENAME)
);
}
}
print "<aside>$access</aside>\n\n";
}
$nav = explode('/', $rootdir);
$nav[0] = "Foto's"; # override of root 'foto'
$title = array_pop($nav);
print "<aside>$access</aside>\n\n";
}
$nav = explode('/', $rootdir);
$nav[0] = "Foto's"; # override of root 'foto'
$title = array_pop($nav);
function showthumb($path)
{
// assume all album entries are symlinks to archive originals
$target = preg_replace('{^(\.\./)*}', '', readlink($path));
function showthumb($path)
{
// assume all album entries are symlinks to archive originals
$target = preg_replace('{^(\.\./)*}', '', readlink($path));
@list ($order, $size, $title) = explode(':', pathinfo($path, PATHINFO_FILENAME), 3);
$imgtag = 'img src="/'.$thumb.'"';
@list ($order, $size, $title) = explode(':', pathinfo($path, PATHINFO_FILENAME), 3);
$imgtag = 'img src="/'.$thumb.'"';
foreach ($imgs as $img) {
if ($img == "$rootdir/index.jpg") {
# cover image of current album
foreach ($imgs as $img) {
if ($img == "$rootdir/index.jpg") {
# cover image of current album