summaryrefslogtreecommitdiffstats
path: root/system/application/views/file/upload_form.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2010-10-19 20:54:30 +0200
committerFlorian Pritz <bluewind@xssn.at>2010-10-19 20:54:30 +0200
commita46463da67d84b9a45803f2d2cdcf10a93db54c7 (patch)
tree9dcfb248ccd72964be223b36d1453fe09870f1f8 /system/application/views/file/upload_form.php
parent8125f9f12b656d37a2258dad940bd0be7453584f (diff)
fix XHTML errors
Signed-off-by: Florian Pritz <bluewind@xssn.at>
Diffstat (limited to 'system/application/views/file/upload_form.php')
-rw-r--r--system/application/views/file/upload_form.php19
1 files changed, 11 insertions, 8 deletions
diff --git a/system/application/views/file/upload_form.php b/system/application/views/file/upload_form.php
index 88fbb34ef..2835f46a9 100644
--- a/system/application/views/file/upload_form.php
+++ b/system/application/views/file/upload_form.php
@@ -1,14 +1,18 @@
<div style="text-align:center">
<?php echo form_open_multipart('file/do_upload'); ?>
- File: <input type="file" name="file" size="30" />
- <input type="submit" value="Upload" name="process" />
+ <p>
+ File: <input type="file" name="file" size="30" />
+ <input type="submit" value="Upload" name="process" />
+ </p>
</form>
<br />
<p>OR</p>
<br />
<?php echo form_open_multipart('file/do_paste'); ?>
- <textarea name="content" cols="80" rows="20"></textarea><br />
- <input type="submit" value="Paste" name="process" />
+ <p>
+ <textarea name="content" cols="80" rows="20"></textarea><br />
+ <input type="submit" value="Paste" name="process" />
+ </p>
</form>
</div>
<br /><br />
@@ -18,16 +22,15 @@
<br />
<p>For shell uploading/pasting use:</p>
<pre>
-curl -n -F "content=<-" <?php echo base_url(); ?> < file (not binary safe)
-cat file | curl -n -F "content=<-" <?php echo base_url(); ?> (not binary safe)
+curl -n -F "content=&lt;-" <?php echo base_url(); ?> &lt; file (not binary safe)
+cat file | curl -n -F "content=&lt;-" <?php echo base_url(); ?> (not binary safe)
curl -n -F "file=@/home/user/foo" <?php echo base_url(); ?> (binary safe)
</pre>
<br />
-<p>If you want to use authentication add the following to your ~/.netrc:
+<p>If you want to use authentication add the following to your ~/.netrc:</p>
<pre>
machine paste.xinu.at password my_secret_password
</pre>
-</p>
<br />
<p>If you want to you can use this script to upload files, paste text or delete your uploads:<br />
<a href="<?php echo $client_link; ?>"><?php echo $client_link; ?></a></p>