From 1f156ef274c6a64d2c0d444ebb74315a51600a05 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Fri, 19 Aug 2011 20:53:22 +0200 Subject: make "contact me" on the main page optional Signed-off-by: Florian Pritz --- application/config/example/config.php | 2 ++ application/controllers/file.php | 1 + application/views/file/upload_form.php | 4 ++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/application/config/example/config.php b/application/config/example/config.php index f2d3b9b5b..bcd71a5ce 100755 --- a/application/config/example/config.php +++ b/application/config/example/config.php @@ -381,5 +381,7 @@ $config['small_upload_size'] = 1024*10; // 10KB $config['passwordsalt'] = ''; // just enter any string you want here +$config['contact_me_url'] = ''; // ommiting this will remove the "contact me" line. + /* End of file config.php */ /* Location: ./application/config/config.php */ diff --git a/application/controllers/file.php b/application/controllers/file.php index f9892d5ca..bfb45e69a 100644 --- a/application/controllers/file.php +++ b/application/controllers/file.php @@ -77,6 +77,7 @@ class File extends CI_Controller { $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/'; + $data['contact_me_url'] = $this->config->item('contact_me_url'); $this->load->view($this->var->view_dir.'/header', $data); $this->load->view($this->var->view_dir.'/upload_form', $data); diff --git a/application/views/file/upload_form.php b/application/views/file/upload_form.php index 36c9308b8..47238fbbc 100644 --- a/application/views/file/upload_form.php +++ b/application/views/file/upload_form.php @@ -93,8 +93,8 @@ document.write('\ . Maximum upload size is

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


-

If you experience any problems feel free to contact me.

-
+

If you experience any problems feel free to contact me.

+

This service is provided without warranty of any kind and may not be used to distribute copyrighted content.

-- cgit v1.2.3-24-g4f1b