<?php
	if ( !isset ($_SESSION['Userrole']))
	{
		echo"You are not authorised to view this resource.";
		header("refresh:4;url=index.php?content=login");
		exit();

	}

	else if ( !in_array($_SESSION['Userrole'], $userrole) )
	{
		echo"You are not authorised to view this resource.";
		header("refresh:4;url=index.php?content=".$_SESSION['Userrole']."home");
		exit();
	}
?>