X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/fe92ec8f17c832c4a663aea399dc90a4c09ce6b1..85536cb70f85743054b6b3abfc36d05662e6878d:/page.php diff --git a/page.php b/page.php index 059b615..2c3a68a 100644 --- a/page.php +++ b/page.php @@ -130,19 +130,22 @@ print "\n\n"; # execute dynamic code +$Place = [ + 'user' => $User['name'], + 'url' => htmlspecialchars($_SERVER['REQUEST_URI']), +]; + if ($Page) { $found |= require "./$Page/index.php"; } # global html -include_once 'page.inc.php'; - if (!$found) { # no resulting output http_response_code(404); - ob_start(); @require "./404.html"; - print getoutput([ 'url' => htmlspecialchars($_SERVER['REQUEST_URI']) ]); } +include_once 'page.inc.php'; +