+if (!$User or !$User->login) {
+ $Page->title = 'Inloggen';
+ if (isset($_REQUEST['goto'])) {
+ if (empty($message)
+ and !preg_match('(^WhatsApp/)', $_SERVER['HTTP_USER_AGENT'])) {
+ http_response_code(403);
+ }
+ $target = ltrim($_REQUEST['goto'], '/');
+ $target = new ArchiveArticle(file_exists("$target/index.html") ? "$target/index.html" : "$target.html");
+ $target->index; # run forbidden handler to determine metadata
+
+ if ($target->title) {
+ $Page->title .= ' voor ' . $target->title;
+ }
+ $Page->image = $target->image;
+ $Page->teaser = $target->teaser;
+ }
+ ob_start();