X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/599086fed1782cf7af74d7745dc3808c4e2ad24a..d1d031e348974975891a7ad232ef387e95abdd61:/foot.inc.php diff --git a/foot.inc.php b/foot.inc.php old mode 100644 new mode 100755 index 30426ea..e2ac444 --- a/foot.inc.php +++ b/foot.inc.php @@ -1,29 +1,21 @@ - -var pagebody = document.getElementsByClassName('article')[0]; -pagebody.innerHTML = '

Nieuwe pagina

 

'; - -EOT; -} - define('N', "\n"); -$editable = FALSE; // "Beheer toegestaan voor {$_SERVER['REMOTE_ADDR']}:"; -if ($editable) { +global $Page, $User, $Edit; + +if ($User['admin']) { + if ($Edit) { + echo ''.N; + echo ''.N; + } + echo ''.N; } -?>