diff options
author | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-08-06 14:17:37 +0000 |
---|---|---|
committer | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-08-06 14:17:37 +0000 |
commit | e9f261e51adcaa80429fe14b04ee277ab3124ce9 (patch) | |
tree | 6637cbf6a3917d29adcdffb4d1e8ab562050fd61 /mod/riverdashboard/index.php | |
parent | 44c6025cc9a1536a772bf74af8cc9c07b0efc8b6 (diff) | |
download | elgg-e9f261e51adcaa80429fe14b04ee277ab3124ce9.tar.gz elgg-e9f261e51adcaa80429fe14b04ee277ab3124ce9.tar.bz2 |
removed all main plugins from core - they now live in the plugins svn
git-svn-id: https://code.elgg.org/elgg/trunk@3422 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/riverdashboard/index.php')
-rw-r--r-- | mod/riverdashboard/index.php | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/mod/riverdashboard/index.php b/mod/riverdashboard/index.php deleted file mode 100644 index 1667dc68d..000000000 --- a/mod/riverdashboard/index.php +++ /dev/null @@ -1,76 +0,0 @@ -<?php
-
- /**
- * Elgg river dashboard plugin index page
- *
- * @package ElggRiverDash
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Curverider Ltd <info@elgg.com>
- * @copyright Curverider Ltd 2008-2009
- * @link http://elgg.org/
- */
-
- require_once(dirname(dirname(dirname(__FILE__))) . '/engine/start.php');
-
- gatekeeper();
-
- $content = get_input('content','');
- $content = explode(',',$content);
- $type = $content[0];
- $subtype = $content[1];
- $orient = get_input('display');
- $callback = get_input('callback');
-
- if ($type == 'all') {
- $type = '';
- $subtype = '';
- }
-
- $body = '';
- if (empty($callback)) {
-
- //set a view for the wire to extend
- $area1 = elgg_view("activity/thewire");
-
- //set a view to display newest members
- $area1 .= elgg_view("riverdashboard/newestmembers");
-
- //set a view to display a welcome message
- $body .= elgg_view("riverdashboard/welcome");
-
- //set a view to display a site wide message
- $body .= elgg_view("riverdashboard/sitemessage");
-
- }
-
- switch($orient) {
- case 'mine':
- $subject_guid = $_SESSION['user']->guid;
- $relationship_type = '';
- break;
- case 'friends': $subject_guid = $_SESSION['user']->guid;
- $relationship_type = 'friend';
- break;
- default: $subject_guid = 0;
- $relationship_type = '';
- break;
- }
-
- $river = elgg_view_river_items($subject_guid, 0, $relationship_type, $type, $subtype, '') . "</div>";
- // Replacing callback calls in the nav with something meaningless
- $river = str_replace('callback=true','replaced=88,334',$river);
-
- $nav = elgg_view('riverdashboard/nav',array(
- 'type' => $type,
- 'subtype' => $subtype,
- 'orient' => $orient
- ));
- if (empty($callback)) {
- $body .= elgg_view('riverdashboard/container', array('body' => $nav . $river . elgg_view('riverdashboard/js')));
- page_draw(elgg_echo('dashboard'),elgg_view_layout('sidebar_boxes',$area1,$body));
- } else { - header("Content-type: text/html; charset=UTF-8");
- echo $nav . $river . elgg_view('riverdashboard/js');
- }
-
-?>
\ No newline at end of file |