diff options
Diffstat (limited to 'views/default/tidypics/forms/upload.php')
| -rw-r--r-- | views/default/tidypics/forms/upload.php | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/views/default/tidypics/forms/upload.php b/views/default/tidypics/forms/upload.php deleted file mode 100644 index e93d3f5ba..000000000 --- a/views/default/tidypics/forms/upload.php +++ /dev/null @@ -1,72 +0,0 @@ -<?php - 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'); - } - } else { - $maxfilesize = 10240; //if the file size limit is not set, default to 10MB - } - -?> -<script language="javascript"> -<!-- - -var state = 'none'; - -function showhide(layer_ref) { - if (state == 'block') { - state = 'none'; - } - else { - state = 'block'; - } - if (document.all) { //IS IE 4 or 5 (or 6 beta) - eval( "document.all." + layer_ref + ".style.display = state"); - } - if (document.layers) { //IS NETSCAPE 4 or below - document.layers[layer_ref].display = state; - } - if (document.getElementById &&!document.all) { - hza = document.getElementById(layer_ref); - hza.style.display = state; - } - return false; -} -//--> -</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 /> - <i><?php echo elgg_echo("tidypics:settings:maxfilesize") . ' ' . $maxfilesize; ?></i><br /> - <div align="center" class="tidypics_loader" id="tidypics_loader" name="tidypics_loader" style="display:none;"><center><img alt="..." border="0" src="<?php echo $vars['url'].'mod/tidypics/graphics/loader.gif' ?>" /></center></div> - <ol id="tidypics_image_upload_list"> -<?php - for($x = 0; $x < 10; $x++){ - echo '<li>' . elgg_view("input/file",array('internalname' => "upload_$x")) . "</li>\n"; - } -?> - </ol> - </p> - - <p> - <?php - if ($container_guid) - echo '<input type="hidden" name="container_guid" value="' . $container_guid . '" />'; - if ($access_id) - echo '<input type="hidden" name="access_id" value="' . $access_id . '" />'; - ?> - <input type="submit" value="<?php echo elgg_echo("save"); ?>" onclick="showhide('tidypics_loader');" /> - </p> - -</form> -</div>
\ No newline at end of file |
