From 77c5b12cdfbd9b2311db341ca79c6d81b97b5df4 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 28 May 2011 19:59:54 +0200 Subject: display configured age limit on front page Signed-off-by: Florian Pritz --- application/controllers/file.php | 1 + application/views/file/upload_form.php | 2 +- application/views/file_plaintext/upload_form.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/application/controllers/file.php b/application/controllers/file.php index 9d872fbb0..351be6ae5 100644 --- a/application/controllers/file.php +++ b/application/controllers/file.php @@ -70,6 +70,7 @@ class File extends CI_Controller { $data['title'] = 'Upload'; $data['small_upload_size'] = $this->config->item('small_upload_size'); $data['max_upload_size'] = $this->config->item('upload_max_size'); + $data['upload_max_age'] = $this->config->item('upload_max_age')/60/60/24; $data['client_link'] = base_url().'data/client/fb-'.$this->var->latest_client.'.tar.gz'; $data['client_link_dir'] = base_url().'data/client/'; diff --git a/application/views/file/upload_form.php b/application/views/file/upload_form.php index 1f537da48..315c2e856 100644 --- a/application/views/file/upload_form.php +++ b/application/views/file/upload_form.php @@ -39,7 +39,7 @@
-

Uploads/pastes are deleted after 5 days 0): ?> +

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

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

diff --git a/application/views/file_plaintext/upload_form.php b/application/views/file_plaintext/upload_form.php index 12d506253..b22329e0c 100644 --- a/application/views/file_plaintext/upload_form.php +++ b/application/views/file_plaintext/upload_form.php @@ -1,4 +1,4 @@ -Uploads/pastes are deleted after 5 days 0): ?> unless they are smaller than . +Uploads/pastes are deleted after days 0): ?> unless they are smaller than . Maximum upload size is . -- cgit v1.2.3-24-g4f1b