-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
39 lines (29 loc) · 806 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/**
* index page for web-based applications
*
* @package Social
* @subpackage Core
*/
/**
* Start the engine
*/
// include "http://10.10.11.201:8081/social/mod/support_chat/js/im.load.js";
require_once(dirname(__FILE__) . "/engine/start.php");
elgg_set_context('main');
// allow plugins to override the front page (return true to stop this front page code)
if (elgg_trigger_plugin_hook('index', 'system', null, FALSE) != FALSE) {
exit;
}
if (elgg_is_logged_in()) {
forward('activity');
}
$content = elgg_view_title(elgg_echo('content:latest'));
$content .= elgg_list_river();
$login_box = elgg_view('core/account/login_box');
$params = array(
'content' => $content,
'sidebar' => $login_box
);
$body = elgg_view_layout('one_sidebar', $params);
echo elgg_view_page(null, $body);