git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
edit: distinct admin template for missing pages
[minimedit.git]
/
page.inc.php
diff --git
a/page.inc.php
b/page.inc.php
index dcb0573223a06f4f9e6601a857ef2e1314b384a7..2c1fc6c7e201f160dbc4642a8e8d1b8fc09a0dc2 100644
(file)
--- a/
page.inc.php
+++ b/
page.inc.php
@@
-13,14
+13,14
@@
$nav = preg_replace_callback('{<a href="([^"]+)">(.*?)</a>}', function ($m) {
print $nav;
print "</header>\n\n";
print $nav;
print "</header>\n\n";
-print '<div class="article">'."\n\n";
-
register_shutdown_function(function () {
register_shutdown_function(function () {
- print "</div>\n\n";
include 'foot.inc.php';
print "</body></html>\n";
});
include 'foot.inc.php';
print "</body></html>\n";
});
+print '<div class="article">'."\n\n";
include "./$Page.html";
include "./$Page.html";
+print "</div>\n\n";
+
if (file_exists("$Page.php")) include_once("./$Page.php");
if (file_exists("$Page.php")) include_once("./$Page.php");