exit(page_renderer::render_main("Watchlists disabled - $settings->sitename","<p>Sorry, but watchlists are currently disabled on $settings->sitename. Contact your moderators to learn - their details are at the bottom of every page.</p>"));
exit(page_renderer::render_main("Not logged in - $settings->sitename","<p>Only logged in users can have watchlists. Try <a href='?action=login&returnto=".rawurlencode("?action=watchlist")."'>logging in</a>."));
exit(page_renderer::render_main("No email address specified -$settings->sitename","<p>You are logged in, but have not specified an email address to send notifications to. Try specifying one in your <a href='?action=user-preferences'>user preferences</a> and then coming back here.</p>"));
$content.="<p>You can also <a href='?action=watchlist&do=clear'>clear your entire list</a> and start again.</p>";
}
else{
$content.="<p><em>You don't have any pages on your watchlist. Try visiting some pages and adding them to your watchlist and then coming back here.</em></p>";
exit(page_renderer::render_main("Watchlists disabled - $settings->sitename","<p>Sorry, but watchlists are currently disabled on $settings->sitename. Contact your moderators to learn - their details are at the bottom of every page.</p>"));
}
if(!$env->is_logged_in){
http_response_code(401);
header("x-problem: not-logged-in");
exit(page_renderer::render_main("Not logged in - $settings->sitename","<p>Only logged in users can have watchlists. Try <a href='?action=login&returnto=".rawurlencode("?action=watchlist")."'>logging in</a>."));
exit(page_renderer::render_main("No email address specified -$settings->sitename","<p>You are logged in, but have not specified an email address to send notifications to. Try specifying one in your <a href='?action=user-preferences'>user preferences</a> and then coming back here.</p>"));