login/edit: prepare input restriction for user names
[minimedit.git] / page.inc.php
index 54a39445b42994d777bc5e97fc23d47b7499c888..c4884b9a098821f963514cf5be07334e57a5adea 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-$body = ob_get_clean();
+$body = getoutput($Place);
 
 include_once DOCROOT.'head.inc.php';
 
@@ -20,7 +20,7 @@ if (!empty($User)) {
                else {
                        $editpage .= '.html';
                }
-               if (is_writable($editpage)) {
+               if (!file_exists($editpage) or is_writable($editpage)) {
                        print ' <a href="#edit">Wijzig</a>';
                }
        }