From 7bb325ba0df707d6de6501a00527ebac457f3e0f Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 27 Feb 2010 21:18:15 +0100 Subject: move html template to own file Signed-off-by: Florian Pritz --- system/application/controllers/file.php | 19 +++++-------------- system/application/views/file/html_footer.php | 6 ++++++ system/application/views/file/html_header.php | 13 +++++++++++++ 3 files changed, 24 insertions(+), 14 deletions(-) create mode 100644 system/application/views/file/html_footer.php create mode 100644 system/application/views/file/html_header.php diff --git a/system/application/controllers/file.php b/system/application/controllers/file.php index ac8f15452..ba231d47f 100644 --- a/system/application/controllers/file.php +++ b/system/application/controllers/file.php @@ -167,24 +167,15 @@ class File extends Controller { && $this->file_mod->mime2extension($type) && filesize($file) <= $this->config->item('upload_max_text_size') ) { + $data['title'] = $filedata['filename']; + $data['raw_link'] = site_url($this->config->item('paste_download_url').$id); header("Content-Type: text/html\n"); - // TODO: move to own file - echo '' - .''.$filedata['filename'].'' - .' ' - .' ' - .'' - .'