From 71bee30f3e67b43058600dc09c8d5fa977b32e65 Mon Sep 17 00:00:00 2001
From: Florian Pritz
Date: Wed, 4 Apr 2012 13:43:25 +0200
Subject: Disable paste box
Signed-off-by: Florian Pritz
---
application/controllers/file.php | 3 +--
application/views/file/upload_form.php | 40 ++++++++++++++++++----------------
2 files changed, 22 insertions(+), 21 deletions(-)
(limited to 'application')
diff --git a/application/controllers/file.php b/application/controllers/file.php
index edf7e0315..44f691dec 100644
--- a/application/controllers/file.php
+++ b/application/controllers/file.php
@@ -200,8 +200,7 @@ class File extends CI_Controller {
$data = array();
if ($this->uri->segment(3)) {
- $this->var->cli_client = true;
- $this->var->view_dir = "file_plaintext";
+ exit;
}
$extension = $this->input->post('extension');
diff --git a/application/views/file/upload_form.php b/application/views/file/upload_form.php
index 9b2115cb0..01fbc5ffa 100644
--- a/application/views/file/upload_form.php
+++ b/application/views/file/upload_form.php
@@ -8,33 +8,35 @@
-
-Uploads/pastes are deleted after days 0): ?>
+
Uploads are deleted after days 0): ?>
unless they are smaller than
. Maximum upload size is
Features
-For shell uploading/pasting and download information for the client go to ">
+For shell uploading and download information for the client go to ">
You can use the to find old uploads using the password supplied when creating the upload.
-How to link your pastes:
+How to link your uploads:
- - /<ID>/ automatically highlight the paste
+ - /<ID>/ automatically highlight the uploads
- /<ID> set the detected MIME type and let the browser do the rest
- /<ID>/plain force the MIME type to be text/plain
- /<ID>/<file extension> override auto detection and use the supplied file extension or language name for highlighting
--
cgit v1.2.3-24-g4f1b