Error
No page ID was supplied.ItemExists($Id))
{
# display error message indicating page not found
?>Error
No page found with specified ID.Privileges();
# if user has one of the privileges for viewing
if (!count($Privileges)
|| call_user_func_array("CheckAuthorization", $Privileges))
{
# display edit and delete buttons if appropriate
if ($Page->UserCanEdit())
{
?>
delete
edit
Title());
print $Page->Content();
}
else
{
# display unauthorized access message
PageTitle("Unauthorized Access");
?>
Unauthorized Access
You do not have the permissions required to view this page.