Skip to content

Instantly share code, notes, and snippets.

@pixmonkey
Created January 6, 2014 03:28
Show Gist options
  • Save pixmonkey/8277789 to your computer and use it in GitHub Desktop.
Save pixmonkey/8277789 to your computer and use it in GitHub Desktop.
Login:Logout button to add to autonav in Concrete5. This gets added just before the end of the script above the last code block. Make sure you duplicate the autonav>view.php.
$u = new User();
if($u->isLoggedIn()){
echo('<li><a href="' . $this->url('/login/logout') . '">Log Out</a>');
}else{
echo('<li><a href="' . $this->url('/login') . '">Log In</a>');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment