summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
Diffstat (limited to 'application')
-rwxr-xr-xapplication/config/example/config.php2
-rw-r--r--application/controllers/file.php1
-rw-r--r--application/views/file/upload_form.php4
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('\
<?php endif; ?>. Maximum upload size is <?php echo format_bytes($max_upload_size); ?></p>
<p>For shell uploading/pasting and download information for the client go to <a href="<?php echo site_url("file/client"); ?>"><?php echo site_url("file/client"); ?></a></p>
<br />
-<p>If you experience any problems feel free to <a href="http://bluewind.at/?id=1">contact me</a>.</p>
-<br />
+<?php if($contact_me_url) {?><p>If you experience any problems feel free to <a href="<?php echo $contact_me_url; ?>">contact me</a>.</p>
+<br /><?php }; ?>
<div class="small">
<p>This service is provided without warranty of any kind and may not be used to distribute copyrighted content.</p>
</div>