X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/b3aec6cf1cd18493d44cf68d88c8f55b6a417f9c..ead5bed24e07383fbcf783c3b5c70a755dbc1982:/login/index.php diff --git a/login/index.php b/login/index.php index 66cb0c9..c69ec3c 100644 --- a/login/index.php +++ b/login/index.php @@ -36,17 +36,33 @@ elseif (isset($_GET['logout'])) { } if (empty($User)) { - require_once 'login/form.inc.php'; - $Place['warn'] = $message; $Article->title = 'Inloggen'; 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; + } } - return; + ob_start(); + require_once 'login/form.inc.php'; + $Article->raw = ob_get_clean(); + $Place['warn'] = $message; + return TRUE; } if (isset($_REQUEST['goto'])) {