1
0

ndex route works again

This commit is contained in:
2020-01-15 02:50:23 +01:00
parent f9a692e635
commit 588e9b089a
30 changed files with 427 additions and 258 deletions

View File

@@ -1,34 +1,26 @@
<!DOCTYPE html>
<html lang="en">
<?php
require_once (__DIR__ . '/../internals/base.php');
global $OPTIONS;
require_once (__DIR__ . '/../internals/website.php');
$errorcode = $OPTIONS['code'];
$errormsg = $OPTIONS['message'];
/** @var PageFrameOptions $FRAME_OPTIONS */ global $FRAME_OPTIONS;
/** @var URLRoute $ROUTE */ global $ROUTE;
/** @var Website $SITE */ global $SITE;
?>
<head>
<meta charset="utf-8">
<title>Mikescher.com - <?php echo $errormsg; ?></title>
<link rel="icon" type="image/png" href="/data/images/favicon.png"/>
<?php printHeaderCSS(); ?>
</head>
<body>
<div id="mastercontainer">
<?php $HEADER_ACTIVE='none'; include (__DIR__ . '/../fragments/header.php'); ?>
<?php
$FRAME_OPTIONS->title = 'Mikescher.com - Error';
$FRAME_OPTIONS->canonical_url = null;
$FRAME_OPTIONS->activeHeader = null;
$FRAME_OPTIONS->contentCSSClasses []= 'content-fullheight';
<div id="content" class="content-responsive content-fullheight">
$message = $ROUTE->parameter['message'];
$debuginfo = $ROUTE->parameter['debuginfo'];
?>
<div class="ev_master">
<div class="ev_code"><?php echo $errorcode; ?></div>
<div class="ev_msg"><?php echo $errormsg; ?></div>
</div>
</div>
</div>
<?php printAdditionalScripts(); ?>
<?php printAdditionalStylesheets(); ?>
</body>
</html>
<div class="ev_master">
<div class="ev_code">500</div>
<div class="ev_msg">asdasd<?php echo $message; ?></div>
<?php if ($debuginfo !== null && strlen($debuginfo)>0 && ($SITE != null && !$SITE->isProd())): ?>
<p class="ev_statusmore"><?php echo nl2br($debuginfo); ?></p>
<?php endif; ?>
</div>

View File

@@ -6,12 +6,18 @@ require_once (__DIR__ . '/../internals/website.php');
/** @var Website $SITE */ global $SITE;
?>
<?php include (__DIR__ . '/../fragments/panel_euler.php'); ?>
<?php
$FRAME_OPTIONS->title = 'Mikescher.com';
$FRAME_OPTIONS->canonical_url = 'https://www.mikescher.com';
$FRAME_OPTIONS->activeHeader = 'home';
?>
<?php include (__DIR__ . '/../fragments/panel_programs.php'); ?>
<?php $SITE->fragments->PanelEuler(); ?>
<?php include (__DIR__ . '/../fragments/panel_blog.php'); ?>
<?php $SITE->fragments->PanelPrograms(); ?>
<?php include (__DIR__ . '/../fragments/panel_books.php'); ?>
<?php $SITE->fragments->PanelBlog(); ?>
<?php include (__DIR__ . '/../fragments/panel_aoc.php'); ?>
<?php $SITE->fragments->PanelBooks(); ?>
<?php $SITE->fragments->PanelAdventOfCode(); ?>