summaryrefslogtreecommitdiffstats
path: root/application/controllers
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-08-25 17:13:43 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-08-25 17:13:43 +0200
commit0bf57f4af8994baf6c58602525116d4f1ceb9085 (patch)
treedfd069c335d167e1bc555a846b813273c54dbc9d /application/controllers
parentf126c6bc2e82c33153899baf6cf9975961f8904e (diff)
Move client documentation to fron page
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers')
-rw-r--r--application/controllers/file.php33
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()) {