git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
login: replace http authentication by cookie system
[minimedit.git]
/
foot.inc.php
diff --git
a/foot.inc.php
b/foot.inc.php
index a7f52d692a1c5930d86724bfdbb6e6ee09a240a1..493dcc9ee72c1967943af17265331818d5a811aa 100755
(executable)
--- a/
foot.inc.php
+++ b/
foot.inc.php
@@
-2,9
+2,9
@@
<?php
define('N', "\n");
<?php
define('N', "\n");
-global $Page, $User, $
Admin, $
Edit;
+global $Page, $User, $Edit;
-if ($
Admin
) {
+if ($
User['admin']
) {
$notfound = $Page == '404';
if ($Edit) {
$notfound = $Page == '404';
if ($Edit) {
@@
-21,7
+21,7
@@
EOT;
}
echo '<p class="footer">'.N;
}
echo '<p class="footer">'.N;
- echo "Beheer toegestaan voor
$User
:".N;
+ echo "Beheer toegestaan voor
{$User['name']}
:".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')