* @copyright Curverider Ltd 2008-2010 * @link http://elgg.com/ */ // Load Elgg engine define('everyoneblog','true'); require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php"); // Get the current page's owner $page_owner = page_owner_entity(); if ($page_owner === false || is_null($page_owner)) { $page_owner = $_SESSION['user']; set_page_owner($_SESSION['guid']); } if (!($page_owner instanceof ElggEntity)) forward(); //set the title if($page_owner == $_SESSION['user']){ $title = elgg_echo('blog:yourfriends'); }else{ $title = $page_owner->name . "'s " . elgg_echo('blog:friends'); } $area2 = elgg_view_title($title); // Get a list of blog posts $area2 .= "