X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/599086fed1782cf7af74d7745dc3808c4e2ad24a..3f78a38cb23e2bb2609e010f0d3b4dce2d3c1727:/foot.inc.php diff --git a/foot.inc.php b/foot.inc.php old mode 100644 new mode 100755 index 30426ea..d2ba826 --- a/foot.inc.php +++ b/foot.inc.php @@ -1,7 +1,7 @@ var pagebody = document.getElementsByClassName('article')[0]; @@ -13,6 +13,13 @@ EOT; define('N', "\n"); $editable = FALSE; // "Beheer toegestaan voor {$_SERVER['REMOTE_ADDR']}:"; + +$curfile = ltrim($_SERVER['SCRIPT_NAME'], '/'); +if (is_executable(__DIR__ . '/' . $curfile)) { + // dynamic code is +x + $editable = FALSE; +} + if ($editable) { echo '