aboutsummaryrefslogtreecommitdiff
path: root/views/default/tidypics/forms/upload.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-03-21 15:44:07 +0000
committerCash Costello <cash.costello@gmail.com>2009-03-21 15:44:07 +0000
commit8b474ce9723b7d717c65415149de947fbedceeba (patch)
treeb62f8e6b55947efe46d53a13f89a4c8de9f6b907 /views/default/tidypics/forms/upload.php
parenteffd41e3b327234adf2997895da7e80b88458af1 (diff)
downloadelgg-8b474ce9723b7d717c65415149de947fbedceeba.tar.gz
elgg-8b474ce9723b7d717c65415149de947fbedceeba.tar.bz2
updated the upload pages
Diffstat (limited to 'views/default/tidypics/forms/upload.php')
-rw-r--r--views/default/tidypics/forms/upload.php30
1 files changed, 12 insertions, 18 deletions
diff --git a/views/default/tidypics/forms/upload.php b/views/default/tidypics/forms/upload.php
index 35768f64c..be87c8697 100644
--- a/views/default/tidypics/forms/upload.php
+++ b/views/default/tidypics/forms/upload.php
@@ -1,27 +1,19 @@
<?php
- /**
- * Elgg file browser uploader
- *
- * @package ElggFile
- * @author Curverider Ltd
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
- */
global $CONFIG;
//this is for image uploads only. Image edits are handled by edit.php form
- $container_guid = get_input('container_guid');
- $access_id = get_entity($vars['album'])->access_id;
- if (get_plugin_setting('maxfilesize','tidypics')) {
- if (((int) get_plugin_setting('maxfilesize','tidypics')) < 1 || ((int) get_plugin_setting('maxfilesize','tidypics')) > 1048576) {
- $maxfilesize = 10240; //if file size is less than 1KB or greater than 1GB, default to 10MB
- } else {
- $maxfilesize = (int) get_plugin_setting('maxfilesize','tidypics');
- }
+ $container_guid = get_input('container_guid');
+ $access_id = get_entity($vars['album'])->access_id;
+ if (get_plugin_setting('maxfilesize','tidypics')) {
+ if (((int) get_plugin_setting('maxfilesize','tidypics')) < 1 || ((int) get_plugin_setting('maxfilesize','tidypics')) > 1048576) {
+ $maxfilesize = 10240; //if file size is less than 1KB or greater than 1GB, default to 10MB
} else {
- $maxfilesize = 10240; //if the file size limit is not set, default to 10MB
+ $maxfilesize = (int) get_plugin_setting('maxfilesize','tidypics');
}
+ } else {
+ $maxfilesize = 10240; //if the file size limit is not set, default to 10MB
+ }
?>
<script language="javascript">
@@ -50,6 +42,7 @@ function showhide(layer_ref) {
}
//-->
</script>
+<div class="contentWrapper">
<form action="<?php echo $vars['url']; ?>action/tidypics/upload" enctype="multipart/form-data" method="post">
<p style="line-height:1.6em;">
<label><?php echo elgg_echo("images:upload"); ?></label><br />
@@ -76,4 +69,5 @@ function showhide(layer_ref) {
<input type="submit" value="<?php echo elgg_echo("save"); ?>" onclick="showhide('tidypics_loader');" />
</p>
-</form> \ No newline at end of file
+</form>
+</div> \ No newline at end of file