X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/dcb2ed9fe57d7562633916f98034ade1d0ab0ade..41811556ca2ca3ca29191bee012c35e5f40a3995:/login/index.php diff --git a/login/index.php b/login/index.php index c7d705d..5cfbded 100644 --- a/login/index.php +++ b/login/index.php @@ -39,15 +39,12 @@ if (empty($User)) { ob_clean(); require_once 'login/form.inc.php'; $Place['warn'] = $message; - $Place['title'] = 'Inloggen'; + $Article->title = 'Inloggen'; if (isset($_REQUEST['goto'])) { - require_once 'nieuws.inc.php'; $target = ltrim($_REQUEST['goto'], '/'); $target = new ArchiveArticle("$target.html"); - if ($target->file) { - if ($target->title) { - $Place['title'] .= ' voor ' . $target->title; - } + if ($target->title) { + $Article->title .= ' voor ' . $target->title; } } return TRUE; @@ -61,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'; }