# Php Login/Logout with XML-Driven Menu?

**URL:** https://forum.kirupa.com/t/php-login-logout-with-xml-driven-menu/229753
**Category:** Uncategorized
**Created:** [June 19, 2007, 11:11pm UTC](https://forum.kirupa.com/t/php-login-logout-with-xml-driven-menu/229753 "2007-06-19T23:11:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![pyrael](https://avatars.discourse-cdn.com/v4/letter/p/b77776/32.png) [@pyrael](https://forum.kirupa.com/u/pyrael)
#### Post date: [June 19, 2007, 11:11pm UTC](https://forum.kirupa.com/t/php-login-logout-with-xml-driven-menu/229753/1 "2007-06-19T23:11:30Z")

</div>

I have been working with Senocular’s XML-Driven Drop down menu tutorial. I’m not too conserned with appearance at the moment, I prefer function first. I have the menu working perfectly with the pages loading in the same window etc… It’s a great tutorial I really appreciate you sharing this knowledge. Here’s my problem tho:

I am planning on implementing this menu into a php site that uses phpbb for most of it. This may be a simple thing and I’m overlookg it, but how can I use this menu for the dynamic login?

What I want to do:

1. Have the menu display a login and register entry when user is not logged in
2. Have the menu display log out when a regular user is logged in
3. Have Moderator controls displayed when a moderator is logged in
4. Have Admin controls displayed when Admin is loged in

Is this possible? If so, what do I need to do? If Not, what are my alternatives?

Thanks  
Pyrael
