X-Git-Url: https://git.p6c8.net/jirafeau.git/blobdiff_plain/2a71cdda5bacf89790a214a38174e5ced3ad07c0..d84c94d93c6b5b446c7bc6e359bb8fc276107dff:/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 '

' . t('Get Jirafeau\'s version') . ':

'; + echo '

'; + echo t('Send a GET query to') . ': ' . $web_root . 'script.php
'; + echo '
'; + echo t('Parameters') . ':
'; + echo "get_version=1 (" . t('Required') . ")
"; + echo '

'; + echo '

' . t('This will return brut text content.') . ' ' . + t('First line is the version number.') . '

'; + echo '

'; + echo t('Example') . ": " . $web_root . "script.php?get_version=1 "; + echo '

'; + echo '

' . t('Get server capacity') . ':

'; 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'];