what are the values being set by the UserLevel session variable? When the user logs in, What does the UserLevel session get set to.
this example code is assuming the the value will either be "admin" or "visitor"
if the value of the UserLevel session is "admin", it goes to the admin_index.php
if the value of the UserLevel session is "visitor", it goes to the visitor_index.php page
if you are using different values for the userlevel session, you will need to alter the case statement