From 4e058f32ff6174698709a9afdf67f4f9af60e7db Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 1 Nov 2010 17:25:03 +0100 Subject: move client/shell stuff to an own page; cleanup upload_form Signed-off-by: Florian Pritz --- system/application/views/file/client.php | 20 ++++++++++++++++++ system/application/views/file/header.php | 2 -- system/application/views/file/upload_form.php | 29 ++++----------------------- 3 files changed, 24 insertions(+), 27 deletions(-) create mode 100644 system/application/views/file/client.php (limited to 'system/application/views') diff --git a/system/application/views/file/client.php b/system/application/views/file/client.php new file mode 100644 index 000000000..d9470a216 --- /dev/null +++ b/system/application/views/file/client.php @@ -0,0 +1,20 @@ +

Shell:

+
+curl -n -F "content=<-"  < file      (not binary safe)
+cat file | curl -n -F "content=<-"   (not binary safe)
+curl -n -F "file=@/home/user/foo"    (binary safe)
+
+

Client:
+

Development (git): http://git.server-speed.net/users/flo/fb/
+Latest release: .
+GPG sigs, older versions: +

+

If you want to use authentication (needed for deleting) add the following to your ~/.netrc:

+
+machine paste.xinu.at password my_secret_password
+
+

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

+ diff --git a/system/application/views/file/header.php b/system/application/views/file/header.php index aba7283a7..f6073707a 100644 --- a/system/application/views/file/header.php +++ b/system/application/views/file/header.php @@ -11,7 +11,5 @@
- -
diff --git a/system/application/views/file/upload_form.php b/system/application/views/file/upload_form.php index ef424b496..ec7ab53de 100644 --- a/system/application/views/file/upload_form.php +++ b/system/application/views/file/upload_form.php @@ -1,13 +1,11 @@ -
+

File:

-
-

OR

-
+

OR


@@ -15,33 +13,14 @@

-

+

Uploads/pastes are deleted after 5 days 0): ?> unless they are smaller than . Maximum upload size is

-
-

For shell uploading/pasting use:

-
-curl -n -F "content=<-"  < file      (not binary safe)
-cat file | curl -n -F "content=<-"   (not binary safe)
-curl -n -F "file=@/home/user/foo"    (binary safe)
-
-
-

If you want to use authentication add the following to your ~/.netrc:

-
-machine paste.xinu.at password my_secret_password
-
-
-

If you want to you can use this script to upload files, paste text or delete your uploads:
-

-

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

- +

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


If you experience any problems feel free to contact me.


-

This service is provided without warranty of any kind and may not be used to distribute copyrighted content.

-- cgit v1.2.3-24-g4f1b