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 ++++++----------------------- application/views/file/client.php | 14 ------------ application/views/file/upload_form.php | 23 +++++++++++++++++--- application/views/file_plaintext/client.php | 4 ---- 4 files changed, 27 insertions(+), 47 deletions(-) delete mode 100644 application/views/file/client.php delete mode 100644 application/views/file_plaintext/client.php 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()) { diff --git a/application/views/file/client.php b/application/views/file/client.php deleted file mode 100644 index 78a4d6a58..000000000 --- a/application/views/file/client.php +++ /dev/null @@ -1,14 +0,0 @@ -

Client

- -

- Development (git):
- Latest release:
- GPG sigs, older versions: -

- -

Linux

-

- Arch Linux: pacman -S fb-client
- Gentoo: Add this overlay and run emerge -a fb-client
-

- diff --git a/application/views/file/upload_form.php b/application/views/file/upload_form.php index 3d2837bdf..fd4f3feb8 100644 --- a/application/views/file/upload_form.php +++ b/application/views/file/upload_form.php @@ -88,9 +88,6 @@
-

For shell uploading/pasting and download information for the client go to ">

-

You can use the to find old uploads.

-

How to link your pastes:

/<ID>/
automatically highlight the paste
@@ -128,5 +125,25 @@

If you want an account, ask someone who is already using this service to ">invite you.

Invitations are used to control abuse and encourage users to "be nice". They are not intended as a means of exclusivity. In case of abuse reports, involved accounts may be banned and the user who invited them may also be banned. The invitation tree will be followed upwards if necessary.

+ +

Clients

+

Linux

+

+ Development:
+ Latest release:
+ GPG sigs, older versions: +

+ +

+ Arch Linux: pacman -S fb-client
+ Gentoo: Add this overlay and run emerge -a fb-client
+

+ +

Android

+

+ Development: sebastianrakel/fb-client-android @ Github
+ Google Playstore: fb-client Android @ Google Play
+ F-Droid Store:fb-client Android @ F-Droid
+

diff --git a/application/views/file_plaintext/client.php b/application/views/file_plaintext/client.php deleted file mode 100644 index 4147ae032..000000000 --- a/application/views/file_plaintext/client.php +++ /dev/null @@ -1,4 +0,0 @@ -Client: -Development (git): https://git.server-speed.net/users/flo/fb -Latest release: -GPG sigs, older versions: https://paste.xinu.at/data/client -- cgit v1.2.3-24-g4f1b