summaryrefslogtreecommitdiffstats
path: root/application/views/file/upload_form.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-12-17 12:35:15 +0100
committerFlorian Pritz <bluewind@xinu.at>2011-12-17 12:35:15 +0100
commitfa869698c592c9d7d0f33b64c8fba409ebf5d75f (patch)
treea835e0dd8d59aada4d6fb026b432e082984f3ec0 /application/views/file/upload_form.php
parent94aef7b4e9283f5c955cd2c4d5f71937be87b048 (diff)
remove php code from upload_from.js
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/views/file/upload_form.php')
-rw-r--r--application/views/file/upload_form.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/application/views/file/upload_form.php b/application/views/file/upload_form.php
index 7ca0e2a13..5eea494e1 100644
--- a/application/views/file/upload_form.php
+++ b/application/views/file/upload_form.php
@@ -6,7 +6,6 @@
Optional password (for deletion and search): <input type="password" name="password" size="10" />
</p>
</form>
- <script type="text/javascript" src="<?php echo base_url(); ?>data/js/upload_form.js?<?php echo filemtime(FCPATH."/data/js/upload_form.js"); ?>"></script>
<script type="text/javascript">
/* <![CDATA[ */
document.write('\
@@ -20,8 +19,11 @@ document.write('\
</p>\
</form>\
');
+ var upload_url = "<?php echo site_url("file/do_upload/dumb"); ?>";
+ var max_upload_size = "<?php echo $max_upload_size; ?>";
/* ]]> */
</script>
+ <script type="text/javascript" src="<?php echo base_url(); ?>data/js/upload_form.js?<?php echo filemtime(FCPATH."/data/js/upload_form.js"); ?>"></script>
</div>
<br />
<p>Uploads/pastes are deleted after <?php echo $upload_max_age; ?> days<?php if($small_upload_size > 0): ?>