1: 2: 3: 4: 5: 6: 7: 8: 9:
<?php session_start(); $admins = array('jsmith','lshaw','jroberts'); if(isset($_SESSION['username']) && !in_array($_SESSION['username'],$admins) ) { header('Location:index_user.php'); } ?>