From 50c24f38f25d312ed37c56a307e31be50e39c3f5 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Fri, 9 Nov 2012 23:07:50 +0100 Subject: Rework file/client page Signed-off-by: Florian Pritz --- application/controllers/file.php | 6 ++++++ application/views/file/client.php | 45 ++++++++++++++++++++++++++++----------- 2 files changed, 38 insertions(+), 13 deletions(-) (limited to 'application') diff --git a/application/controllers/file.php b/application/controllers/file.php index bd56c92df..435cc409a 100644 --- a/application/controllers/file.php +++ b/application/controllers/file.php @@ -320,6 +320,12 @@ class File extends CI_Controller { $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]; + } else { + $this->data["domain"] = "unknown domain"; + } + if (!is_cli_client()) { $this->load->view('header', $this->data); } diff --git a/application/views/file/client.php b/application/views/file/client.php index b507c5f1e..ac9aeddb2 100644 --- a/application/views/file/client.php +++ b/application/views/file/client.php @@ -1,19 +1,38 @@ -

Shell:

+

Client

+ +

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

+ +

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

+
-curl -n -F "file=@/home/user/foo"    (binary safe)
-cat file | curl -n -F "file=@-;filename=stdin"    (binary safe)
+machine  login my_username password my_secret_password
 
-

Client:

-

Development (git): http://git.server-speed.net/users/flo/fb/
-Latest release: .
-GPG sigs, older versions: + + + If you are using fb-client ≥1.1 you can also use + ~/.config/fb-client/config. Please refer to + man 1 fb for further details.

-

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

+ */ +?> + +

Packages

+ +

+ Arch Linux: pacman -S fb-client
+ Debian:
+ Slackware: +

+ +

Shell

+
-machine paste.xinu.at login my_username password my_secret_password
+curl -n -F "file=@/home/user/foo"    (binary safe)
+cat file | curl -n -F "file=@-;filename=stdin"    (binary safe)
 
-

Packages:
-Arch Linux: pacman -S fb-client
-Debian:
-Slackware:

-- cgit v1.2.3-24-g4f1b