X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/20ead233cabc8fefcd86bd99f08dadc261669300..41811556ca2ca3ca29191bee012c35e5f40a3995:/login/index.php diff --git a/login/index.php b/login/index.php index 8b4c223..5cfbded 100644 --- a/login/index.php +++ b/login/index.php @@ -39,6 +39,14 @@ if (empty($User)) { ob_clean(); 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 ($target->title) { + $Article->title .= ' voor ' . $target->title; + } + } return TRUE; } @@ -50,7 +58,7 @@ if (isset($_REQUEST['goto'])) { exit; } -if (empty($Args) and !empty($User['admin'])) { +if (empty($Args) and $User and $User->admin) { include_once 'login/admin.html'; }