summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-04-09 00:44:49 +0200
committerFlorian Pritz <bluewind@xinu.at>2012-04-09 20:48:11 +0200
commit7b2eefe75f6ae07b2f8bc7ce32487c0a17bb9374 (patch)
tree1275daa34b64bad4191bbdd0a91f3382928c7f69 /application
parentaac0fb938069a89f8befed640fabef6d84879fc8 (diff)
upload_form: Display everything but forms if not logged in.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application')
-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 d22819708..0d9bba998 100644
--- a/application/views/file/upload_form.php
+++ b/application/views/file/upload_form.php
@@ -23,6 +23,9 @@ document.write('\
</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>
+<? } else { ?>
+You have to <?=anchor("user/login", "log in"); ?> to be able to upload/paste.
+<? } ?>
<br />
<p>Uploads/pastes are deleted after <?php echo $upload_max_age; ?> days<?php if($small_upload_size > 0): ?>
unless they are smaller than <?php echo format_bytes($small_upload_size); ?>
@@ -42,7 +45,6 @@ document.write('\
</ul>
<p>If your upload is not detected as text, only <span class="example">/&lt;ID&gt;/qr</span> and <span class="example">/&lt;ID&gt;/plain</span> will work as above and all others will simply return the file with the detected MIME type.</p>
<br />
-<? } ?>
<?php if($contact_me_url) {?><p>If you experience any problems feel free to <a href="<?php echo $contact_me_url; ?>">contact me</a>.</p>
<br /><?php }; ?>
<div class="small">