$Place['warn'] = $message;
$Place['title'] = 'Inloggen';
if (isset($_REQUEST['goto'])) {
- require_once 'nieuws.inc.php';
$target = ltrim($_REQUEST['goto'], '/');
$target = new ArchiveArticle("$target.html");
if ($target->file) {
<?php
-include_once 'nieuws.inc.php';
-
if (!function_exists('shownews')) {
function shownews($input, $limit = 1000)
{
<link href="<?= $siteref . $_SERVER['REQUEST_URI'] ?>" rel="self" />
<author><name>Lijtweg</name></author>
<?php
-include 'nieuws.inc.php';
$root = preg_replace('{/feed$}', '', $Page) . "/2???";
$pages = array_reverse(glob("$root/*.html"));
<?php
-include 'nieuws.inc.php';
-
$replyform = $Page == 'melding' && !empty($User);
@list ($year, $page) = explode('/', trim($Args, '/'));
if ($page and !is_numeric($page)) {
$edit = $User && $User->admin ? htmlspecialchars(@$_GET['edit']) : NULL;
- $article = new ArchiveArticle("$Page$Args.html");
- $Place['title'] = $edit ?: $article->title;
- if ($article->file) {
- $Place['description'] = $article->teaser;
+ $Place['title'] = $edit ?: $Article->title;
+ if ($Article->file) {
+ $Place['description'] = $Article->teaser;
}
- $Place[1] = ' <small class="date">'.$article->date.'</small>';
+ $Place[1] = ' <small class="date">'.$Article->date.'</small>';
print preg_replace('{(?<=<h2>)(.*?)(?=</h2>)}', ($edit ?: '\1').' [[1]]', ob_get_clean());
- if ($article->file and $article->image) {
- $Place['image'] = "/".$article->thumb('600x');
+ if ($Article->file and $Article->image) {
+ $Place['image'] = "/".$Article->thumb('600x');
}
if ($User and $User->admin) {
$taglist = [];
# load static contents
+require_once('article.inc.php');
+$Article = new ArchiveArticle($staticpage);
+
ob_start(); # page body
ob_start(); # inner html
print '<div class="static">'."\n\n";