diff options
Diffstat (limited to 'mod/file/index.php')
| -rw-r--r-- | mod/file/index.php | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/mod/file/index.php b/mod/file/index.php deleted file mode 100644 index e76583f0f..000000000 --- a/mod/file/index.php +++ /dev/null @@ -1,43 +0,0 @@ -<?php - /** - * Elgg file browser - * - * @package ElggFile - * @author Curverider Ltd - * @copyright Curverider Ltd 2008-2010 - * @link http://elgg.com/ - * - * - * TODO: File icons, download & mime types - */ - - require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php"); - - if (is_callable('group_gatekeeper')) { - group_gatekeeper(); - } - - //set the title - if (page_owner() == get_loggedin_userid()) { - $title = elgg_echo('file:yours'); - } else { - $title = sprintf(elgg_echo("file:user"),page_owner_entity()->name); - } - - $area2 = elgg_view_title($title); - - // Get objects - set_context('search'); - $area2 .= elgg_list_entities(array('types' => 'object', 'subtypes' => 'file', 'container_guid' => page_owner(), 'limit' => 10, 'full_view' => FALSE)); - set_context('file'); - $get_filter = get_filetype_cloud(page_owner()); - if ($get_filter) { - $area1 = $get_filter; - } else { - $area2 .= elgg_view('page_elements/contentwrapper',array('body' => elgg_echo("file:none"))); - } - - $body = elgg_view_layout('two_column_left_sidebar', $area1, $area2); - - page_draw($title, $body); -?>
\ No newline at end of file |
