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 e3e36b6f183b07e9f3c5c7bbb752205af56d7d85..493dcc9ee72c1967943af17265331818d5a811aa 100755
(executable)
--- a/
foot.inc.php
+++ b/
foot.inc.php
@@
-2,13
+2,12
@@
<?php
define('N', "\n");
<?php
define('N', "\n");
-global $Page, $User, $
Admin
;
+global $Page, $User, $
Edit
;
-if ($Admin) {
- $edit = preg_match('/[?]edit$/', $_SERVER['REQUEST_URI']);
+if ($User['admin']) {
$notfound = $Page == '404';
$notfound = $Page == '404';
- if ($
e
dit) {
+ if ($
E
dit) {
echo '<script src="/ckeditor/ckeditor.js"></script>'.N;
echo '<script src="/edit.js"></script>'.N;
if ($notfound) {
echo '<script src="/ckeditor/ckeditor.js"></script>'.N;
echo '<script src="/edit.js"></script>'.N;
if ($notfound) {
@@
-22,10
+21,10
@@
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,
printf('<a href="?%s">%s</a>'.N,
- $
e
dit ? '' : 'edit',
- $
e
dit ? 'lezen' : ($notfound ? 'aanmaken' : 'aanpassen')
+ $
E
dit ? '' : 'edit',
+ $
E
dit ? 'lezen' : ($notfound ? 'aanmaken' : 'aanpassen')
);
echo '</p>'.N;
}
);
echo '</p>'.N;
}