From: Dan Untenzu Date: Thu, 12 Jan 2017 17:24:02 +0000 (+0100) Subject: [FEATURE] Streamline default expiration date X-Git-Tag: 1.2.0~9 X-Git-Url: https://git.p6c8.net/jirafeau_project.git/commitdiff_plain/a68b1acc7e01d91a111df847fe27518b03d44225?ds=sidebyside;hp=-c [FEATURE] Streamline default expiration date The bash script sets the expiration date to "none" by default. The web form has "month" as default however. Streamline the default expiration date and set the bash to month as well. This also avoids an error if the bash script is run for the first time ever with default settings, since the expiration time "none" is not allowed then. Refs #85 --- a68b1acc7e01d91a111df847fe27518b03d44225 diff --git a/script.php b/script.php index 3e6668e..cae34a9 100644 --- a/script.php +++ b/script.php @@ -246,7 +246,7 @@ elseif (isset ($_GET['lang'])) # Config proxy='' # ex: proxy='proxysever.test.com:3128' or set JIRAFEAU_PROXY global variable url='' # or set JIRAFEAU_URL ex: url='http://mysite/jirafeau/script.php' -time='none' # minute, hour, day, week, month, year or none. Or set JIRAFEAU_TIME. +time='month' # minute, hour, day, week, month, year or none. Or set JIRAFEAU_TIME. one_time='' # ex: one_time="1" or set JIRAFEAU_ONE_TIME. curl='' # curl path to download or set JIRAFEAU_CURL_PATH. # End of config