elseif (file_exists("$Page$Args.html")) {
$found = include "./$Page$Args.html";
}
+elseif (isset($User) and $User['admin']) {
+ $found = require './template.html';
+}
print "</div>\n\n";
if (!$found) {
# no resulting output
- if (isset($User) and $User['admin']) {
- require './template.html';
- }
- else {
- http_response_code(404);
- ob_start();
- require "./404.html";
- print getoutput([ 'url' => htmlspecialchars($_SERVER['REQUEST_URI']) ]);
- }
+ http_response_code(404);
+ ob_start();
+ require "./404.html";
+ print getoutput([ 'url' => htmlspecialchars($_SERVER['REQUEST_URI']) ]);
}