From 0080b6c4c668dd3cc4e309afe4ab33c62393d8c2 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Tue, 4 Feb 2020 21:22:56 +0100 Subject: [PATCH] login: run handler of pending melding page Run script to get dynamic page metadata. Most wanted for issues (otherwise inaccessible since move to database), considered mostly safe to execute. Not a generic solution for other code which could exit. --- login/index.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/login/index.php b/login/index.php index d2f22ac..0ac33ac 100644 --- a/login/index.php +++ b/login/index.php @@ -40,6 +40,17 @@ if (empty($User)) { if (isset($_REQUEST['goto'])) { $target = ltrim($_REQUEST['goto'], '/'); $target = new ArchiveArticle("$target.html"); + + if ($Page = $target->handler and $target->handler == 'melding') { + $caller = $Article; + $Article = $target; + $Args = $target->path; + ob_start(); + include "./{$target->handler}/index.php"; + ob_end_clean(); + $Article = $caller; + } + if ($target->title) { $Article->title .= ' voor ' . $target->title; } -- 2.30.0