Restricted Access

<?php

global $user;
if ($user->uid == 0){
print '

Please log in to view this page.

';
} else {
print '

You do not have permission to access this page.

';
}

?>