From 0bf57f4af8994baf6c58602525116d4f1ceb9085 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Thu, 25 Aug 2016 17:13:43 +0200 Subject: Move client documentation to fron page Signed-off-by: Florian Pritz --- application/controllers/file.php | 33 +++++++-------------------------- 1 file changed, 7 insertions(+), 26 deletions(-) (limited to 'application/controllers') diff --git a/application/controllers/file.php b/application/controllers/file.php index 77e7c0413..7c7b5de2d 100644 --- a/application/controllers/file.php +++ b/application/controllers/file.php @@ -594,32 +594,6 @@ class File extends MY_Controller { } } - function client() - { - $this->data['title'] .= ' - Client'; - - if (file_exists(FCPATH.'data/client/latest')) { - $this->var->latest_client = trim(file_get_contents(FCPATH.'data/client/latest')); - $this->data['client_link'] = base_url().'data/client/fb-'.$this->var->latest_client.'.tar.gz'; - } else { - $this->data['client_link'] = false; - } - - if (preg_match('#^https?://(.*?)/.*$#', site_url(), $matches) === 1) { - $this->data["domain"] = $matches[1]; - } else { - $this->data["domain"] = "unknown domain"; - } - - if (!is_cli_client()) { - $this->load->view('header', $this->data); - } - $this->load->view($this->var->view_dir.'/client', $this->data); - if (!is_cli_client()) { - $this->load->view('footer', $this->data); - } - } - function upload_form() { $this->data['title'] .= ' - Upload'; @@ -640,6 +614,13 @@ class File extends MY_Controller { } } + if (file_exists(FCPATH.'data/client/latest')) { + $this->var->latest_client = trim(file_get_contents(FCPATH.'data/client/latest')); + $this->data['client_link'] = base_url().'data/client/fb-'.$this->var->latest_client.'.tar.gz'; + } else { + $this->data['client_link'] = false; + } + $this->load->view('header', $this->data); $this->load->view($this->var->view_dir.'/upload_form', $this->data); if (is_cli_client()) { -- cgit v1.2.3-24-g4f1b