+ \r
+ echo '<h3>' . t('Initalize a asynchronous transfert') . ':</h3>';\r
+ echo '<p>';\r
+ echo t('The goal is to permit to transfert big file, chunk by chunk.') . ' ';\r
+ echo t('Chunks of data must be sent in order.');\r
+ echo '</p>';\r
+ echo '<p>';\r
+ echo t('Send a GET query to') . ': <i>' . $web_root . 'script.php?init_async</i><br />';\r
+ echo '<br />';\r
+ echo t('Parameters') . ':<br />';\r
+ echo "<b>filename=</b>file_name.ext<i> (" . t('Required') . ")</i> <br />";\r
+ echo "<b>type=</b>MIME_TYPE<i> (" . t('Optional') . ")</i> <br />";\r
+ echo "<b>time=</b>[minute|hour|day|week|month|none]<i> (" . t('Optional') . ', '. t('default: none') . ")</i> <br />";\r
+ echo "<b>password=</b>your_password<i> (" . t('Optional') . ")</i> <br />";\r
+ echo "<b>one_time_download=</b>1<i> (" . t('Optional') . ")</i> <br />";\r
+ echo '</p>';\r
+ echo '<p>' . t('This will return brut text content.') . ' ' .\r
+ t('First line is the asynchronous transfert reference and the second line the code to use in the next operation.') . '<br /></p>';\r
+\r
+ echo '<h3>' . t('Push data during asynchronous transfert') . ':</h3>';\r
+ echo '<p>';\r
+ echo t('Send a GET query to') . ': <i>' . $web_root . 'script.php?push_async</i><br />';\r
+ echo '<br />';\r
+ echo t('Parameters') . ':<br />';\r
+ echo "<b>ref=</b>async_reference<i> (" . t('Required') . ")</i> <br />";\r
+ echo "<b>data=</b>data_chunk<i> (" . t('Required') . ")</i> <br />";\r
+ echo "<b>code=</b>last_provided_code<i> (" . t('Required') . ")</i> <br />";\r
+ echo '</p>';\r
+ echo '<p>' . t('This will return brut text content.') . ' ' .\r
+ t('Returns the next code to use.') . '<br /></p>';\r
+\r
+ echo '<h3>' . t('Finalize asynchronous transfert') . ':</h3>';\r
+ echo '<p>';\r
+ echo t('Send a GET query to') . ': <i>' . $web_root . 'script.php?end_async</i><br />';\r
+ echo '<br />';\r
+ echo t('Parameters') . ':<br />';\r
+ echo "<b>ref=</b>async_reference<i> (" . t('Required') . ")</i> <br />";\r
+ echo "<b>code=</b>last_provided_code<i> (" . t('Required') . ")</i> <br />";\r
+ echo '</p>';\r
+ echo '<p>' . t('This will return brut text content.') . ' ' .\r
+ t('First line is the download reference and the second line the delete code.') . '<br /></p>';\r
+\r
+ if ($cfg['enable_blocks'])\r
+ {\r
+ echo '<h3>' . t('Create a data block') . ':</h3>';\r
+ echo '<p>';\r
+ echo t('This interface permits to create a block of data filled with zeros.') .\r
+ ' ' . t('You can read selected parts, write (using a code) and delete the block.') .\r
+ ' ' . t('Blocks may be removed after a month of non usage.');\r
+ echo '</p>';\r
+ echo '<p>';\r
+ echo t('Send a GET query to') . ': <i>' . $web_root . 'script.php?init_block</i><br />';\r
+ echo '<br />';\r
+ echo t('Parameters') . ':<br />';\r
+ echo "<b>size=</b>size_in_bytes<i> (" . t('Required') . ")</i> <br />";\r
+ echo '</p>';\r
+ echo '<p>' . t('This will return brut text content.') . ' ' .\r
+ t('First line is a block id the second line the edit/delete code.') . '<br /></p>';\r
+\r
+ echo '<h3>' . t('Read data in a block') . ':</h3>';\r
+ echo '<p>';\r
+ echo t('Send a GET query to') . ': <i>' . $web_root . 'script.php?read_block</i><br />';\r
+ echo '<br />';\r
+ echo t('Parameters') . ':<br />';\r
+ echo "<b>id=</b>block_id<i> (" . t('Required') . ")</i> <br />";\r
+ echo "<b>start=</b>byte_position_starting_from_zero<i> (" . t('Required') . ")</i> <br />";\r
+ echo "<b>length=</b>length_to_read_in_bytes<i> (" . t('Required') . ")</i> <br />";\r
+ echo '</p>';\r
+ echo '<p>' . t('This will return asked data or "Error" string.') . '<br /></p>';\r
+\r
+ echo '<h3>' . t('Write data in a block') . ':</h3>';\r
+ echo '<p>';\r
+ echo t('Send a GET query to') . ': <i>' . $web_root . 'script.php?write_block</i><br />';\r
+ echo '<br />';\r
+ echo t('Parameters') . ':<br />';\r
+ echo "<b>id=</b>block_id<i> (" . t('Required') . ")</i> <br />";\r
+ echo "<b>code=</b>block_code<i> (" . t('Required') . ")</i> <br />";\r
+ echo "<b>start=</b>byte_position_starting_from_zero<i> (" . t('Required') . ")</i> <br />";\r
+ echo "<b>data=</b>data_to_write<i> (" . t('Required') . ")</i> <br />";\r
+ echo '</p>';\r
+ echo '<p>' . t('This will return "Ok" or "Error" string.') . '<br /></p>';\r
+\r
+ echo '<h3>' . t('Delete a block') . ':</h3>';\r
+ echo '<p>';\r
+ echo t('Send a GET query to') . ': <i>' . $web_root . 'script.php?delete_block</i><br />';\r
+ echo '<br />';\r
+ echo t('Parameters') . ':<br />';\r
+ echo "<b>id=</b>block_id<i> (" . t('Required') . ")</i> <br />";\r
+ echo "<b>code=</b>block_code<i> (" . t('Required') . ")</i> <br />";\r
+ echo '</p>';\r
+ echo '<p>' . t('This will return "Ok" or "Error" string.') . '<br /></p>';\r
+ }\r