aboutsummaryrefslogtreecommitdiff
path: root/mod/file/upload.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-29 13:35:16 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-29 13:35:16 +0000
commit8f7a86ebae5f6fd3f64f976a83cfc6712e083c2a (patch)
tree0b8c15acc290f4c5e2c34f105df63e9ede224a6a /mod/file/upload.php
parent81a0698f97c9e92639109caa5215a503b823b968 (diff)
downloadelgg-8f7a86ebae5f6fd3f64f976a83cfc6712e083c2a.tar.gz
elgg-8f7a86ebae5f6fd3f64f976a83cfc6712e083c2a.tar.bz2
starting to update the file plugin to use the new html/css
git-svn-id: http://code.elgg.org/elgg/trunk@7737 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/file/upload.php')
-rw-r--r--mod/file/upload.php52
1 files changed, 29 insertions, 23 deletions
diff --git a/mod/file/upload.php b/mod/file/upload.php
index 2040c7240..0c89e64a5 100644
--- a/mod/file/upload.php
+++ b/mod/file/upload.php
@@ -1,24 +1,30 @@
<?php
- /**
- * Elgg file browser uploader
- *
- * @package ElggFile
- */
-
- require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
-
- gatekeeper();
- if (is_callable('group_gatekeeper')) {
- group_gatekeeper();
- }
-
- // Render the file upload page
-
- $container_guid = elgg_get_page_owner_guid();
- $area1 = elgg_view_title($title = elgg_echo('file:upload'));
- $area1 .= elgg_view("file/upload", array('container_guid' => $container_guid));
- $body = elgg_view_layout('one_column_with_sidebar', array('content' => $area1));
-
- echo elgg_view_page(elgg_echo("file:upload"), $body);
-
-?> \ No newline at end of file
+/**
+ * Upload a new file
+ *
+ * @package ElggFile
+ */
+
+elgg_set_page_owner_guid(get_input('guid'));
+
+gatekeeper();
+group_gatekeeper();
+
+elgg_push_breadcrumb(elgg_echo('file'), "pg/file/all/");
+elgg_push_breadcrumb(elgg_echo('file:new'));
+
+$container_guid = elgg_get_page_owner_guid();
+
+$title = elgg_echo('file:upload');
+
+$content = elgg_view_title($title);
+
+$content .= elgg_view("file/upload", array('container_guid' => $container_guid));
+$body = elgg_view_layout('content', array(
+ 'content' => $content,
+ 'title' => $title,
+ 'filter' => '',
+ 'header' => '',
+));
+
+echo elgg_view_page($title, $body);