' . getLogoutButton() . ' '; function getLogoutButton() { if ($_SESSION['new-access'] === true) return ''; } if (isset($_GET['logout'])) { $_SESSION['new-access'] = false; session_destroy(); header('Location: .'); } ?>