if (empty($User)) {
ob_clean();
require_once 'login/form.inc.php';
- $part = ['warn' => $message];
- print getoutput($part);
+ $Place['warn'] = $message;
return TRUE;
}
exit;
}
-$part = [
- 'user' => $User['name'],
-];
-print getoutput($part);
-
if (empty($Args) and !empty($User['admin'])) {
include_once 'login/admin.html';
include_once 'login/admin/index.php';
<?php
-$body = ob_get_clean();
+$body = getoutput($Place);
include_once DOCROOT.'head.inc.php';
# 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';
+