<?php
-ob_clean();
-
-if (empty($User['admin'])) {
+if (!$User or !$User->admin('foto')) {
http_response_code(403);
print "Beheerrechten verplicht voor instellen van covers\n";
exit;
$album = pathinfo($rootdir);
header("Location: /{$album['dirname']}#{$album['basename']}");
http_response_code(302);
+exit;