* @copyright Curverider Ltd 2008-2010 * @link http://elgg.com/ */ require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php"); global $CONFIG; gatekeeper(); // Get the logged in user $page_owner = get_loggedin_user(); set_page_owner($page_owner->guid); // Get offset $offset = get_input('offset',0); // Set limit $limit = 10; // Display all the messages a user owns, these will make up the sentbox $messages = elgg_get_entities_from_metadata(array('metadata_name' => 'fromId', 'metadata_value' => $_SESSION['user']->guid, 'types' => 'object', 'subtypes' => 'messages', 'owner_guid' => $page_owner->guid, 'limit' => $limit, 'offset' => $offset)); // Set the page title $area2 = "