Improve frontend and add "How to use" (#3)

This commit is contained in:
Beu
2019-04-28 22:30:23 +02:00
parent 8252be8fed
commit 96cd7b18f6
4 changed files with 62 additions and 7 deletions

View File

@ -46,7 +46,7 @@
// Informations for user
if ($_SERVER['REQUEST_METHOD'] === 'GET')
{
if (stristr($_SERVER["HTTP_USER_AGENT"], 'curl'))
if (stristr($_SERVER["HTTP_USER_AGENT"], 'curl') or stristr($_SERVER["HTTP_USER_AGENT"], 'Wget'))
{
print("To upload file, use # curl --upload-file my_file " . _HTTP_PROTO . '://' . _HTTP_DOMAIN . _HTTP_PATH . "index.php\n");
}