From 257ee6be21a824b3b76647395bf0c04f9be24785 Mon Sep 17 00:00:00 2001 From: ben Date: Mon, 11 Aug 2008 17:50:24 +0000 Subject: Added latest content to the front page git-svn-id: https://code.elgg.org/elgg/trunk@1847 36083f99-b078-4883-b0ff-0f9b5a30f544 --- index.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 79b59252f..7c5f21a83 100644 --- a/index.php +++ b/index.php @@ -22,13 +22,15 @@ /** * Check to see if user is logged in, if not display login form **/ - if ($_SESSION['id'] != -1){ - //Load the sample welcome page - echo page_draw(null, elgg_view("welcome")); - } else { - //Load the front page - echo page_draw(null, elgg_view("login")); - } + + if (isloggedin()) forward('pg/dashboard'); + + //Load the front page + $content = list_registered_entities(); + global $autofeed; + $autofeed = false; + $content = elgg_view_layout('two_column_left_sidebar', '', $content, elgg_view("account/forms/login")); + echo page_draw(null, $content); } -- cgit v1.2.3