aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-11 17:50:24 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-11 17:50:24 +0000
commit257ee6be21a824b3b76647395bf0c04f9be24785 (patch)
treed7be4d192a4d0e814f423ad567342b5c0cc665ad /index.php
parent83636f01b355131698848b116b2f5d890580b047 (diff)
downloadelgg-257ee6be21a824b3b76647395bf0c04f9be24785.tar.gz
elgg-257ee6be21a824b3b76647395bf0c04f9be24785.tar.bz2
Added latest content to the front page
git-svn-id: https://code.elgg.org/elgg/trunk@1847 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'index.php')
-rw-r--r--index.php16
1 files changed, 9 insertions, 7 deletions
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);
}