fetch(PDO::FETCH_ASSOC); if ($userinfo['role'] != 'admin' AND $userinfo['role'] != 'owner') { header("location:profile.php"); } include("../views/main.php"); /* Add your view files here. */ include("../views/adminpanel.php"); /* This adds the footer. */ include("../views/footer.php"); ?>