isLoggedIn()) { header ("location: ../login.php"); exit(); } $tablename = $cfg_tableprefix.'users'; $auth = $dbf->idToField($tablename,'type',$_SESSION['session_user_id']); $first_name = $dbf->idToField($tablename,'first_name',$_SESSION['session_user_id']); $last_name= $dbf->idToField($tablename,'last_name',$_SESSION['session_user_id']); $today = date("Y-m-d"); if($auth=="Sales Clerk"){ if(!$sec->isOpen()){ header("location: ../books/openshop.php"); exit(); } } echo "
 Members

Welcome to the Members panel! Here you can manage our members database. What would you like to do?
"; $dbf->closeDBlink(); ?>