@ tinkerbell, that won't exactly work if its a custom php and template page. To do this, in your php file find:
PHP Code:
require_once('./global.php');
// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################
// #######################################################################
Under that add:
PHP Code:
// Check Perms
if ($show['guest'])
{
print_no_permission();
}