From: Mischa POSLAWSKY Date: Sun, 18 Jan 2015 18:52:34 +0000 (+0100) Subject: page: prepare php footer include X-Git-Tag: v1.2~5 X-Git-Url: http://git.shiar.net/minimedit.git/commitdiff_plain/e812803bc5059fb43ce35d5af7888a1d5074e2d9 page: prepare php footer include Superset of footer-noedit.html with partial editing features from footer.html (missing permission checks) for eventual conversion from SSI. --- diff --git a/footer-noedit.html b/footer-noedit.html deleted file mode 100644 index ee61a0c..0000000 --- a/footer-noedit.html +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/footer.inc.php b/footer.inc.php new file mode 100644 index 0000000..30426ea --- /dev/null +++ b/footer.inc.php @@ -0,0 +1,29 @@ + + + +var pagebody = document.getElementsByClassName('article')[0]; +pagebody.innerHTML = '

Nieuwe pagina

 

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