git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
page: authorise user logins at page start
[minimedit.git]
/
foot.inc.php
diff --git
a/foot.inc.php
b/foot.inc.php
index 586d6a84353cb3a34b54f01c9f6717cabaaae41f..e1ea486747d37aee7372df16f418fe2c4a4e1f55 100755
(executable)
--- a/
foot.inc.php
+++ b/
foot.inc.php
@@
-3,6
+3,8
@@
<?php
define('N', "\n");
<?php
define('N', "\n");
+global $User, $editable;
+
$curfile = ltrim($_SERVER['SCRIPT_NAME'], '/');
if (is_executable(__DIR__ . '/' . $curfile)) {
// dynamic code is +x
$curfile = ltrim($_SERVER['SCRIPT_NAME'], '/');
if (is_executable(__DIR__ . '/' . $curfile)) {
// dynamic code is +x
@@
-26,7
+28,7
@@
EOT;
}
echo '<p class="footer">'.N;
}
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')
printf('<a href="?%s">%s</a>'.N,
$edit ? '' : 'edit',
$edit ? 'lezen' : ($notfound ? 'aanmaken' : 'aanpassen')