From 1040dbad987e280c61134c83194832224ff870b5 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 8 Apr 2012 23:38:05 +0200 Subject: Revert "Disable paste box" Signed-off-by: Florian Pritz --- application/controllers/file.php | 3 +- application/views/file/upload_form.php | 42 +++++++++++----------- data/js/upload_form.js | 64 ++++++++++++++++++++++++++++++++++ 3 files changed, 86 insertions(+), 23 deletions(-) create mode 100644 data/js/upload_form.js diff --git a/application/controllers/file.php b/application/controllers/file.php index 466037833..2e8664984 100644 --- a/application/controllers/file.php +++ b/application/controllers/file.php @@ -217,7 +217,8 @@ class File extends CI_Controller { $this->muser->require_access(); if ($this->uri->segment(3)) { - exit; + $this->var->cli_client = true; + $this->var->view_dir = "file_plaintext"; } $extension = $this->input->post('extension'); diff --git a/application/views/file/upload_form.php b/application/views/file/upload_form.php index e1e4313a5..04f7fd9f4 100644 --- a/application/views/file/upload_form.php +++ b/application/views/file/upload_form.php @@ -8,35 +8,33 @@ +
-

Uploads are deleted after days 0): ?> +

Uploads/pastes are deleted after days 0): ?> unless they are smaller than . Maximum upload size is

-

Features

-

For shell uploading and download information for the client go to ">

+

Features

+

For shell uploading/pasting and download information for the client go to ">

You can use the to find old uploads.

-

How to link your uploads:

+

How to link your pastes: