Returns what any given user is allowed to do with any given page.
function GetPagePermissions($PageID, $UserID)
With a valid user and page, this function will return a bit mask describing what the user is allowed to do with that page. For an invalid page or user, the function will return 0. For information on the format of this variable, see Permssion Constants.