diff options
Diffstat (limited to 'application/views/file_plaintext')
-rw-r--r-- | application/views/file_plaintext/client.php | 12 | ||||
-rw-r--r-- | application/views/file_plaintext/delete_form.php | 2 | ||||
-rw-r--r-- | application/views/file_plaintext/deleted.php | 2 | ||||
-rw-r--r-- | application/views/file_plaintext/footer.php | 0 | ||||
-rw-r--r-- | application/views/file_plaintext/header.php | 0 | ||||
-rw-r--r-- | application/views/file_plaintext/html_footer.php | 5 | ||||
-rw-r--r-- | application/views/file_plaintext/html_header.php | 21 | ||||
-rw-r--r-- | application/views/file_plaintext/non_existent.php | 1 | ||||
-rw-r--r-- | application/views/file_plaintext/show_url.php | 2 | ||||
-rw-r--r-- | application/views/file_plaintext/too_big.php | 2 | ||||
-rw-r--r-- | application/views/file_plaintext/upload_error.php | 2 | ||||
-rw-r--r-- | application/views/file_plaintext/upload_form.php | 4 |
12 files changed, 53 insertions, 0 deletions
diff --git a/application/views/file_plaintext/client.php b/application/views/file_plaintext/client.php new file mode 100644 index 000000000..188f23379 --- /dev/null +++ b/application/views/file_plaintext/client.php @@ -0,0 +1,12 @@ +Shell: + curl -n -F "file=@/home/user/foo" <?php echo site_url(); ?> (binary safe) + cat file | curl -n -F "file=@-;filename=stdin" <?php echo site_url(); ?> (binary safe) + +Client: +Development (git): http://git.server-speed.net/users/flo/fb +Latest release: <?php echo $client_link; ?> +GPG sigs, older versions: <?php echo $client_link_dir; ?> + +If you want to use authentication (needed for deleting) add the following to your ~/.netrc: + machine paste.xinu.at password my_secret_password + diff --git a/application/views/file_plaintext/delete_form.php b/application/views/file_plaintext/delete_form.php new file mode 100644 index 000000000..ba736078c --- /dev/null +++ b/application/views/file_plaintext/delete_form.php @@ -0,0 +1,2 @@ +<?php if(isset($msg)) echo $msg; ?> + diff --git a/application/views/file_plaintext/deleted.php b/application/views/file_plaintext/deleted.php new file mode 100644 index 000000000..7c8a2a44e --- /dev/null +++ b/application/views/file_plaintext/deleted.php @@ -0,0 +1,2 @@ +<?php echo $id; ?> has been deleted. + diff --git a/application/views/file_plaintext/footer.php b/application/views/file_plaintext/footer.php new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/application/views/file_plaintext/footer.php diff --git a/application/views/file_plaintext/header.php b/application/views/file_plaintext/header.php new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/application/views/file_plaintext/header.php diff --git a/application/views/file_plaintext/html_footer.php b/application/views/file_plaintext/html_footer.php new file mode 100644 index 000000000..ddc460a39 --- /dev/null +++ b/application/views/file_plaintext/html_footer.php @@ -0,0 +1,5 @@ + </td> + </tr> + </table> + </body> +</html> diff --git a/application/views/file_plaintext/html_header.php b/application/views/file_plaintext/html_header.php new file mode 100644 index 000000000..52ffab007 --- /dev/null +++ b/application/views/file_plaintext/html_header.php @@ -0,0 +1,21 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title><?php echo $title; ?></title> + <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>data/paste.css" /> + <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>data/paste-<?php echo $current_highlight; ?>.css" /> + </head> + <body> + <div class="top_bar"> + <a class="raw_link no" href="<?php echo $new_link; ?>">New</a> | + <a class="raw_link no" href="<?php echo $raw_link; ?>">Raw</a> | + <a class="raw_link no" href="<?php echo $plain_link; ?>">Plain</a> | + Currently: <?php echo $current_highlight; ?> | + Timeout: <a class="raw_link no" href="<?php echo $delete_link; ?>" title="delete"><?php echo $timeout; ?></a> + <div style="float:right;"> + <a class="raw_link no" href="<?php echo $auto_link; ?>">Code</a> | + <a class="raw_link no" href="<?php echo $rmd_link; ?>">Render Markdown</a> + </div> + </div> + <table class="content"> + <tr> diff --git a/application/views/file_plaintext/non_existent.php b/application/views/file_plaintext/non_existent.php new file mode 100644 index 000000000..7da92e954 --- /dev/null +++ b/application/views/file_plaintext/non_existent.php @@ -0,0 +1 @@ +I'm sorry, but the requested file doesn't exist. diff --git a/application/views/file_plaintext/show_url.php b/application/views/file_plaintext/show_url.php new file mode 100644 index 000000000..bb94d7422 --- /dev/null +++ b/application/views/file_plaintext/show_url.php @@ -0,0 +1,2 @@ +<?php echo $url; ?> + diff --git a/application/views/file_plaintext/too_big.php b/application/views/file_plaintext/too_big.php new file mode 100644 index 000000000..d27a0295c --- /dev/null +++ b/application/views/file_plaintext/too_big.php @@ -0,0 +1,2 @@ +Sorry, the file you uploaded is too big. + diff --git a/application/views/file_plaintext/upload_error.php b/application/views/file_plaintext/upload_error.php new file mode 100644 index 000000000..8386b871b --- /dev/null +++ b/application/views/file_plaintext/upload_error.php @@ -0,0 +1,2 @@ +An error occured while uploading. Most likely your file is too big. + diff --git a/application/views/file_plaintext/upload_form.php b/application/views/file_plaintext/upload_form.php new file mode 100644 index 000000000..12d506253 --- /dev/null +++ b/application/views/file_plaintext/upload_form.php @@ -0,0 +1,4 @@ +Uploads/pastes are deleted after 5 days<?php if($small_upload_size > 0): ?> unless they are smaller than <?php echo format_bytes($small_upload_size); ?><?php endif; ?>. +Maximum upload size is <?php echo format_bytes($max_upload_size); ?>. + +<?php include "client.php"; ?> |