From 463553f8216029942e478f6be346897e8ce2c83d Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 15 Jul 2013 21:02:58 +0200 Subject: Add footer; move contact info to footer Signed-off-by: Florian Pritz --- application/controllers/file.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'application/controllers/file.php') diff --git a/application/controllers/file.php b/application/controllers/file.php index d0884e3f7..438a47590 100644 --- a/application/controllers/file.php +++ b/application/controllers/file.php @@ -349,7 +349,6 @@ class File extends CI_Controller { $this->data['small_upload_size'] = $this->config->item('small_upload_size'); $this->data['max_upload_size'] = $this->config->item('upload_max_size'); $this->data['upload_max_age'] = $this->config->item('upload_max_age')/60/60/24; - $this->data['contact_me_url'] = $this->config->item('contact_me_url'); $this->data['username'] = $this->muser->get_username(); @@ -681,6 +680,20 @@ class File extends CI_Controller { $this->_show_url($ids, $last_upload["lexer"]); } + function contact() + { + $file = FCPATH."data/local/contact-info.php"; + if (file_exists($file)) { + $this->data["contact_info"] = file_get_contents($file); + } else { + $this->data["contact_info"] = '

Contact info not available.

'; + } + + $this->load->view('header', $this->data); + $this->load->view('contact', $this->data); + $this->load->view('footer', $this->data); + } + /* Functions below this comment can only be run via the CLI * `php index.php file ` */ -- cgit v1.2.3-24-g4f1b