X-Git-Url: https://git.p6c8.net/jirafeau_project.git/blobdiff_plain/145950308252425226bcc5b97993550fefac3c15..e4f9c92ff84f6146aaf1244147082efd57e289f6:/script.php diff --git a/script.php b/script.php index 44fe449..09c7a8c 100644 --- a/script.php +++ b/script.php @@ -184,66 +184,6 @@ if ($_SERVER['REQUEST_METHOD'] == "GET" && count ($_GET) == 0) echo '
' . t('This will return brut text content.') . ' ' .
t('First line is the download reference and the second line the delete code.') . '
'; - echo t('This interface permits to create a block of data filled with zeros.') . - ' ' . t('You can read selected parts, write (using a code) and delete the block.') . - ' ' . t('Blocks may be removed after a month of non usage.'); - echo '
'; - echo '';
- echo t('Send a GET query to') . ': ' . $web_root . 'script.php?init_block
';
- echo '
';
- echo t('Parameters') . ':
';
- echo "size=size_in_bytes (" . t('Required') . ")
";
- echo '
' . t('This will return brut text content.') . ' ' .
- t('First line is a block id the second line the edit/delete code.') . '
';
- echo t('Send a GET query to') . ': ' . $web_root . 'script.php?get_block_size
';
- echo '
';
- echo t('Parameters') . ':
';
- echo "id=block_id (" . t('Required') . ")
";
- echo '
' . t('This will return asked data or "Error" string.') . '
';
- echo t('Send a GET query to') . ': ' . $web_root . 'script.php?read_block
';
- echo '
';
- echo t('Parameters') . ':
';
- echo "id=block_id (" . t('Required') . ")
";
- echo "start=byte_position_starting_from_zero (" . t('Required') . ")
";
- echo "length=length_to_read_in_bytes (" . t('Required') . ")
";
- echo '
' . t('This will return asked data or "Error" string.') . '
';
- echo t('Send a GET query to') . ': ' . $web_root . 'script.php?write_block
';
- echo '
';
- echo t('Parameters') . ':
';
- echo "id=block_id (" . t('Required') . ")
";
- echo "code=block_code (" . t('Required') . ")
";
- echo "start=byte_position_starting_from_zero (" . t('Required') . ")
";
- echo "data=data_to_write (" . t('Required') . ")
";
- echo '
' . t('This will return "Ok" or "Error" string.') . '
';
- echo t('Send a GET query to') . ': ' . $web_root . 'script.php?delete_block
';
- echo '
';
- echo t('Parameters') . ':
';
- echo "id=block_id (" . t('Required') . ")
";
- echo "code=block_code (" . t('Required') . ")
";
- echo '
' . t('This will return "Ok" or "Error" string.') . '