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: move client authentication to php include
[minimedit.git]
/
foot.inc.php
diff --git
a/foot.inc.php
b/foot.inc.php
index 799fb133ed688cce2dc91c77f921ebeb25ffb9ef..586d6a84353cb3a34b54f01c9f6717cabaaae41f 100755
(executable)
--- a/
foot.inc.php
+++ b/
foot.inc.php
@@
-3,12
+3,6
@@
<?php
define('N', "\n");
<?php
define('N', "\n");
-$ALLOWED = [
- '127.0.0.1',
-];
-$editable = in_array($_SERVER['REMOTE_ADDR'], $ALLOWED) ?
- $_SERVER['REMOTE_ADDR'] : FALSE;
-
$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