X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/7991901d3f74146678b9f9c64b66aca2b3fae2e4..3426456f3f8fcecd88b76f17f645b25969787f05:/script.php?ds=sidebyside diff --git a/script.php b/script.php index 695f6db..2cc716b 100644 --- a/script.php +++ b/script.php @@ -1,7 +1,7 @@ + * Copyright (C) 2015 Jerome Jutteau * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -17,11 +17,8 @@ * along with this program. If not, see . */ -/* - * This file permits to easyly script file sending, receiving, deleting, ... - * If you don't want this feature, you can simply delete this file from your - * web directory. - */ +/* This file offer a kind of API for jirafeau. */ + define('JIRAFEAU_ROOT', dirname(__FILE__) . '/'); require(JIRAFEAU_ROOT . 'lib/settings.php'); @@ -304,7 +301,7 @@ if [ -n "$one_time" ]; then options="$options -F one_time_download=1" fi -f [ -n "$upload_password" ]; then +if [ -n "$upload_password" ]; then options="$options -F upload_password=$upload_password" fi