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 +++++++++++---------- data/js/upload_form.js | 64 ---------------------------------- 3 files changed, 22 insertions(+), 85 deletions(-) delete mode 100644 data/js/upload_form.js 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: