From 6fc948daa0469142af595eaffc4fe59282690bf4 Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 9 Jul 2008 12:15:56 +0000 Subject: Plugins can now override the front page git-svn-id: https://code.elgg.org/elgg/trunk@1352 36083f99-b078-4883-b0ff-0f9b5a30f544 --- index.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/index.php b/index.php index 87b2c9c8c..79b59252f 100644 --- a/index.php +++ b/index.php @@ -17,20 +17,20 @@ require_once(dirname(__FILE__) . "/engine/start.php"); + if (!trigger_plugin_hook('index','system',null,false)) { - - /** - * 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")); - } + /** + * 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")); + } - + } -- cgit v1.2.3