'This interface permits to script your uploads and downloads.' => 'Cette interface permet de programmer vos envoie et téléversements.',
'The instructions above show how to query this interface.' => 'Les instructions ci-dessous montrent comment interroger cette interface.',
'Get server capacity' => 'Récupérer la capacité d\'envoie du serveur',
+ 'Get Jirafeau\'s version' => 'Récupérer la version de Jirafeau',
'Send a GET query to' => 'Envoyez une requette GET à',
'Send a POST query to' => 'Envoyez une requette POST à',
'Required' => 'Requis',
' ' . t('The instructions above show how to query this interface.');\r
echo '</p>';\r
\r
+ echo '<h3>' . t('Get Jirafeau\'s version') . ':</h3>';\r
+ echo '<p>';\r
+ echo t('Send a GET query to') . ': <i>' . $web_root . 'script.php</i><br />';\r
+ echo '<br />';\r
+ echo t('Parameters') . ':<br />';\r
+ echo "<b>get_version=</b>1<i> (" . t('Required') . ")</i> <br />";\r
+ echo '</p>';\r
+ echo '<p>' . t('This will return brut text content.') . ' ' .\r
+ t('First line is the version number.') . '<br /></p>';\r
+ echo '<p>';\r
+ echo t('Example') . ": <a href=\"" . $web_root . "script.php?get_version=1\">" . $web_root . "script.php?get_version=1</a> ";\r
+ echo '</p>';\r
+\r
echo '<h3>' . t('Get server capacity') . ':</h3>';\r
echo '<p>';\r
echo t('Send a GET query to') . ': <i>' . $web_root . 'script.php</i><br />';\r
echo min (jirafeau_ini_to_bytes (ini_get ('post_max_size')),\r
jirafeau_ini_to_bytes (ini_get ('upload_max_filesize')));\r
}\r
+elseif (isset ($_GET['get_version']))\r
+{\r
+ echo JIRAFEAU_VERSION;\r
+}\r
elseif (isset ($_GET['lang']))\r
{\r
$l=$_GET['lang'];\r