From 9eed447539bb2c2bdab13a2306c2be36963df37b Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 2 Nov 2015 16:01:11 +0100 Subject: view/client: Hardcode URLs Clients are only hosted on paste.xinu.at and everywhere else the links will point to missing files so they become useless. Signed-off-by: Florian Pritz --- application/controllers/file.php | 3 --- application/views/file/client.php | 6 +++--- application/views/file_plaintext/client.php | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) (limited to 'application') diff --git a/application/controllers/file.php b/application/controllers/file.php index 7d701b75e..2c68114a7 100644 --- a/application/controllers/file.php +++ b/application/controllers/file.php @@ -583,9 +583,6 @@ class File extends MY_Controller { } else { $this->data['client_link'] = false; } - $this->data['client_link_dir'] = base_url().'data/client/'; - $this->data['client_link_deb'] = base_url().'data/client/deb/'; - $this->data['client_link_slackware'] = base_url().'data/client/slackware/'; if (preg_match('#^https?://(.*?)/.*$#', site_url(), $matches) === 1) { $this->data["domain"] = $matches[1]; diff --git a/application/views/file/client.php b/application/views/file/client.php index 31120279d..e868124ab 100644 --- a/application/views/file/client.php +++ b/application/views/file/client.php @@ -3,7 +3,7 @@

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

To authenticate add the following to your ~/.netrc:

@@ -30,9 +30,9 @@ machine login my_username password my_secret_password

Linux

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

diff --git a/application/views/file_plaintext/client.php b/application/views/file_plaintext/client.php index 0ab556df2..a680a0b68 100644 --- a/application/views/file_plaintext/client.php +++ b/application/views/file_plaintext/client.php @@ -5,7 +5,7 @@ Shell (binary safe): Client: Development (git): http://git.server-speed.net/users/flo/fb Latest release: -GPG sigs, older versions: +GPG sigs, older versions: https://paste.xinu.at/data/client To authenticate add the following to your ~/.netrc: machine paste.xinu.at login my_username password my_secret_password -- cgit v1.2.3-24-g4f1b