X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/dcb2ed9fe57d7562633916f98034ade1d0ab0ade..234326791b1e8177eb475bffc5956d7086cfac4e:/login/index.php diff --git a/login/index.php b/login/index.php index c7d705d..978709e 100644 --- a/login/index.php +++ b/login/index.php @@ -41,7 +41,6 @@ if (empty($User)) { $Place['warn'] = $message; $Place['title'] = 'Inloggen'; if (isset($_REQUEST['goto'])) { - require_once 'nieuws.inc.php'; $target = ltrim($_REQUEST['goto'], '/'); $target = new ArchiveArticle("$target.html"); if ($target->file) { @@ -61,7 +60,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'; }