diff options
Diffstat (limited to 'application/controllers/file.php')
-rw-r--r-- | application/controllers/file.php | 33 |
1 files changed, 7 insertions, 26 deletions
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()) { |