diff options
author | Florian Pritz <bluewind@xinu.at> | 2013-07-15 21:02:58 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2013-07-15 21:06:53 +0200 |
commit | 463553f8216029942e478f6be346897e8ce2c83d (patch) | |
tree | e7f0459b7651c25288dd8615eb8d3f5a5c4e30bd /application/controllers | |
parent | f37cbe5725db038b42777848064c4a79b818d0a8 (diff) |
Add footer; move contact info to footer
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers')
-rw-r--r-- | application/controllers/file.php | 15 |
1 files changed, 14 insertions, 1 deletions
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"] = '<p>Contact info not available.</p>'; + } + + $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 <function name>` */ |