X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/8f0144192a6b624de74bb73e1a73cc16bd4b09e1..aa4a9fd115357f8d8781220e1f1345df774d6893:/login/index.php?ds=inline diff --git a/login/index.php b/login/index.php index d2f22ac..c69ec3c 100644 --- a/login/index.php +++ b/login/index.php @@ -40,13 +40,29 @@ 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; } + if ($target->image) { + $Article->image = $target->image; + } } + ob_start(); require_once 'login/form.inc.php'; + $Article->raw = ob_get_clean(); $Place['warn'] = $message; - return; + return TRUE; } if (isset($_REQUEST['goto'])) {