X-Git-Url: https://git.p6c8.net/jirafeau_project.git/blobdiff_plain/497b4c2739003442e10b34689cee4bca75c78829..e788e47fbd5f963e03de3b7eba41580f1f00dd0f:/script.php diff --git a/script.php b/script.php index eda2cc9..8968aac 100755 --- a/script.php +++ b/script.php @@ -50,6 +50,19 @@ if ($_SERVER['REQUEST_METHOD'] == "GET" && count ($_GET) == 0) ' ' . t('The instructions above show how to query this interface.'); echo '
'; + echo '';
+ echo t('Send a GET query to') . ': ' . $web_root . 'script.php
';
+ echo '
';
+ echo t('Parameters') . ':
';
+ echo "get_version=1 (" . t('Required') . ")
";
+ echo '
' . t('This will return brut text content.') . ' ' .
+ t('First line is the version number.') . '
'; + echo t('Example') . ": " . $web_root . "script.php?get_version=1 "; + echo '
'; + echo '';
echo t('Send a GET query to') . ': ' . $web_root . 'script.php
';
@@ -240,6 +253,10 @@ elseif (isset ($_GET['get_capacity']))
echo min (jirafeau_ini_to_bytes (ini_get ('post_max_size')),
jirafeau_ini_to_bytes (ini_get ('upload_max_filesize')));
}
+elseif (isset ($_GET['get_version']))
+{
+ echo JIRAFEAU_VERSION;
+}
elseif (isset ($_GET['lang']))
{
$l=$_GET['lang'];