Compare commits

..

No commits in common. "master" and "1.0.8" have entirely different histories.

3 changed files with 0 additions and 47 deletions

View File

@ -1,33 +0,0 @@
<?php
$slug = $router->parameters['slug'];
$query=<<<EOSQL
SELECT
id,
title,
heading,
description,
keywords,
author,
body,
created,
updated
FROM pages
WHERE slug = '$slug'
EOSQL;
//$db->debugGetRow($query);
$data = $db->getRow($query);
if(!$data) {
http_response_code('404');
header("Content-Type: text/html");
view('404');
exit;
}
$data = array_merge($data, [
'menuActive' => 'blog',
'pageid' => 'page',
'permissionsGroup' => $session->get('group')
]);
view('page', $data);

View File

@ -8,8 +8,5 @@ $routes = [
], ],
'/humans.txt' => [ '/humans.txt' => [
'get' => 'humans' 'get' => 'humans'
],
'/page/{slug}' => [
'get' => 'page'
] ]
]; ];

View File

@ -1,11 +0,0 @@
{% extends '@novaconium/master.html.twig' %}
{% block content %}
<h1>{{ title }}</h1>
<div class="page-meta">
{% if updated is not empty %}
<span class="page-updated">Last Updated: {{ updated | date("M\\. jS Y \\a\\t g:ia") }}</span>
{% endif %}
</div>
{{ body | raw}}
{% endblock %}