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: custom welcome page after login
[minimedit.git]
/
foot.inc.php
diff --git
a/foot.inc.php
b/foot.inc.php
index 799fb133ed688cce2dc91c77f921ebeb25ffb9ef..229cae8dea3294ee46aa3fa0ecdd16fd4a06f516 100755
(executable)
--- a/
foot.inc.php
+++ b/
foot.inc.php
@@
-3,11
+3,7
@@
<?php
define('N', "\n");
<?php
define('N', "\n");
-$ALLOWED = [
- '127.0.0.1',
-];
-$editable = in_array($_SERVER['REMOTE_ADDR'], $ALLOWED) ?
- $_SERVER['REMOTE_ADDR'] : FALSE;
+include 'auth.inc.php';
$curfile = ltrim($_SERVER['SCRIPT_NAME'], '/');
if (is_executable(__DIR__ . '/' . $curfile)) {
$curfile = ltrim($_SERVER['SCRIPT_NAME'], '/');
if (is_executable(__DIR__ . '/' . $curfile)) {
@@
-32,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')