I want to loop through this array:
$securePages=array("admin.php","addslot.php","classpost.php");
$pagename="admin.php"
Then if admin.php is found then execute this code:
header("location:index.php");
exit();
How would I put together this looping statement?