<?php
define('N', "\n");
+global $User, $Admin;
+
$curfile = ltrim($_SERVER['SCRIPT_NAME'], '/');
if (is_executable(__DIR__ . '/' . $curfile)) {
// dynamic code is +x
- $editable = FALSE;
+ $Admin = FALSE;
}
-if ($editable) {
+if ($Admin) {
$edit = preg_match('/[?]edit$/', $_SERVER['REQUEST_URI']);
if ($edit) {
}
echo '<p class="footer">'.N;
- echo "Beheer toegestaan voor $editable:".N;
+ echo "Beheer toegestaan voor $User:".N;
printf('<a href="?%s">%s</a>'.N,
$edit ? '' : 'edit',
$edit ? 'lezen' : ($notfound ? 'aanmaken' : 'aanpassen')