From: Mischa POSLAWSKY Date: Tue, 4 Feb 2020 20:22:56 +0000 (+0100) Subject: login: run handler of pending melding page X-Git-Tag: v4.4~16 X-Git-Url: http://git.shiar.nl/minimedit.git/commitdiff_plain/0080b6c4c668dd3cc4e309afe4ab33c62393d8c2 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. --- 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; }