elgg_gatekeeper()
Used at the top of a page to mark it as logged in users only.
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
elgg_view_page($title, $body, $page_shell= 'default', $vars=array())
Assembles and outputs a full page.
if((!elgg_get_page_owner_entity())||(!elgg_get_page_owner_entity() ->canEdit())) $title