diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-11 17:50:24 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-11 17:50:24 +0000 |
commit | 257ee6be21a824b3b76647395bf0c04f9be24785 (patch) | |
tree | d7be4d192a4d0e814f423ad567342b5c0cc665ad /index.php | |
parent | 83636f01b355131698848b116b2f5d890580b047 (diff) | |
download | elgg-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.php | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -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);
} |