X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/3f78a38cb23e2bb2609e010f0d3b4dce2d3c1727..b64b2d8c38c4f3f6754bfd66bd3533cb53e7bab8:/foot.inc.php diff --git a/foot.inc.php b/foot.inc.php old mode 100755 new mode 100644 index d2ba826..b3d6e6a --- a/foot.inc.php +++ b/foot.inc.php @@ -1,36 +1,15 @@ - -var pagebody = document.getElementsByClassName('article')[0]; -pagebody.innerHTML = '

Nieuwe pagina

 

'; - -EOT; -} - define('N', "\n"); -$editable = FALSE; // "Beheer toegestaan voor {$_SERVER['REMOTE_ADDR']}:"; +global $User; -$curfile = ltrim($_SERVER['SCRIPT_NAME'], '/'); -if (is_executable(__DIR__ . '/' . $curfile)) { - // dynamic code is +x - $editable = FALSE; -} +if ($User['admin']) { + echo ''.N; + echo ''.N; -if ($editable) { echo ''.N; } -?>