getCsrfToken(); // Check if the user is logged in if (!$authentication->isLoggedIn()) { // Redirect to the login page header("Location: /cms/login/"); exit; } ?>