* @copyright Curverider Ltd 2008-2010 * @link http://elgg.com/ */ // Load Elgg engine 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)) { // guess that logged in user is the owner - if no logged in send to all blogs page if (!isloggedin()) { forward('mod/blog/everyone.php'); } $page_owner = $_SESSION['user']; set_page_owner($_SESSION['guid']); } //set blog title if($page_owner == $_SESSION['user']){ $area2 = elgg_view_title(elgg_echo('blog:your')); }else{ //$area1 = elgg_view_title($page_owner->username . "'s " . elgg_echo('blog')); } // Get a list of blog posts $area2 .= "