After completing the setup it is easy to protect any page. Simply add this one line of code to the top of any webpage:
<?php require_once("adminOnly.php");?>