From 38069302c9544b4fcc1eb2492138dbcbe83d7bd7 Mon Sep 17 00:00:00 2001
From: Jerome Jutteau
Date: Mon, 23 Feb 2015 18:57:33 +0100
Subject: [PATCH] Fixes #13 fix script documentation
Also fix lang typo
---
lib/lang/fr.php | 2 +-
script.php | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/lib/lang/fr.php b/lib/lang/fr.php
index 62bc164..02142e5 100644
--- a/lib/lang/fr.php
+++ b/lib/lang/fr.php
@@ -154,7 +154,7 @@ $tr = array (
'This will return "Ok" if succeded, "Error" otherwhise.' => 'Retourne "OK" en cas de succès, "Error" dans le cas contraire.',
'Get a generated scripts' => 'Récupérer un script généré',
'This will return brut text content of the code.' => 'Renvoie le code sous forme the texte brut.',
- 'Initalize a asynchronous transfert' => 'Initialiser un transfert asynchrone',
+ 'Initalize an asynchronous transfert' => 'Initialiser un transfert asynchrone',
'The goal is to permit to transfert big file, chunk by chunk.' => 'Le but est de permettre de transférer de gros fichiers, morceaux par morceaux.',
'Chunks of data must be sent in order.' => 'Chaque morceau doit être envoyé dans l\'ordre.',
'First line is the asynchronous transfert reference and the second line the code to use in the next operation.'
diff --git a/script.php b/script.php
index 09c7a8c..bb44562 100644
--- a/script.php
+++ b/script.php
@@ -92,6 +92,7 @@ if ($_SERVER['REQUEST_METHOD'] == "GET" && count ($_GET) == 0)
echo "time=[minute|hour|day|week|month|none] (" . t('Optional') . ', '. t('default: none') . ")
";
echo "password=your_password (" . t('Optional') . ")
";
echo "one_time_download=1 (" . t('Optional') . ")
";
+ echo "upload_password=your_upload_password (" . t('Optional') . ")
";
echo '
';
echo '' . t('This will return brut text content.') . ' ' .
t('First line is the download reference and the second line the delete code.') . '
';
@@ -143,7 +144,7 @@ if ($_SERVER['REQUEST_METHOD'] == "GET" && count ($_GET) == 0)
echo "$name: " . $web_root . "script.php?lang=$lang ";
echo '';
- echo '' . t('Initalize a asynchronous transfert') . ':
';
+ echo '' . t('Initalize an asynchronous transfert') . ':
';
echo '';
echo t('The goal is to permit to transfert big file, chunk by chunk.') . ' ';
echo t('Chunks of data must be sent in order.');
@@ -157,6 +158,7 @@ if ($_SERVER['REQUEST_METHOD'] == "GET" && count ($_GET) == 0)
echo "time=[minute|hour|day|week|month|none] (" . t('Optional') . ', '. t('default: none') . ")
";
echo "password=your_password (" . t('Optional') . ")
";
echo "one_time_download=1 (" . t('Optional') . ")
";
+ echo "upload_password=your_upload_password (" . t('Optional') . ")
";
echo '
';
echo '' . t('This will return brut text content.') . ' ' .
t('First line is the asynchronous transfert reference and the second line the code to use in the next operation.') . '
';
--
2.34.1