X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/bb34842b36ded0bbe7e6f51294ad3d20c8d470da..772961fd4e9be46ad340cad1e55ee5f28cc5b968:/foto/index.php diff --git a/foto/index.php b/foto/index.php index 27482a4..0acd44e 100644 --- a/foto/index.php +++ b/foto/index.php @@ -1,12 +1,12 @@ link; if ($User->admin('foto')) { - if (!empty($PageAccess)) { + if ($Page->restricted) { $access = '🔒 Bewoners'; - if ($PageAccess != $rootdir) { + if ($Page->restricted != $rootdir) { $access .= sprintf(' vanaf %s', - "/$PageAccess", pathinfo($PageAccess, PATHINFO_FILENAME) + "/{$Page->restricted}", pathinfo($Page->restricted, PATHINFO_FILENAME) ); } } @@ -19,19 +19,19 @@ if ($User->admin('foto')) { $nav = explode('/', $rootdir); $nav[0] = "Foto's"; # override of root 'foto' $title = array_pop($nav); -$Article->title = ($nav ? implode(' ', $nav) . ': ' : '') . $title; +$Page->title = ($nav ? implode(' ', $nav) . ': ' : '') . $title; $link = ''; print "

"; foreach ($nav as $i => $linktitle) { - $link .= '/' . ($i ? $linktitle : $Page); + $link .= '/' . ($i ? $linktitle : $Page->handler); printf('%s →'."\n", $link, $linktitle); } print $title; print "

\n\n"; -if (isset($Article->raw)) { - print $Article->raw; # page intro +if (isset($Page->raw)) { + print $Page->raw; # page intro } function showthumb($path) @@ -81,7 +81,7 @@ if ($imgs = glob("$rootdir/*.jpg")) { foreach ($imgs as $img) { if ($img == "$rootdir/index.jpg") { # cover image of current album - $Article->image = "/$img"; + $Page->image = "/$img"; continue; } if (!is_link($img)) continue;