git.p6c8.net
/
jirafeau_project.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Jirafeau version 1.2.0
[jirafeau_project.git]
/
script.php
diff --git
a/script.php
b/script.php
index 620d70d157e52c6d87839d19ffb1b5f5b653acee..c5adf95cd648b838c2200ba3fd6603ad6533d08f 100644
(file)
--- a/
script.php
+++ b/
script.php
@@
-119,6
+119,9
@@
if (isset ($_FILES['file']) && is_writable (VAR_FILES)
case 'month':
$time += JIRAFEAU_MONTH;
break;
case 'month':
$time += JIRAFEAU_MONTH;
break;
+ case 'quarter':
+ $time += JIRAFEAU_QUARTER;
+ break;
case 'year':
$time += JIRAFEAU_YEAR;
break;
case 'year':
$time += JIRAFEAU_YEAR;
break;
@@
-246,7
+249,7
@@
elseif (isset ($_GET['lang']))
# Config
proxy='' # ex: proxy='proxysever.test.com:3128' or set JIRAFEAU_PROXY global variable
url='<?php echo $cfg['web_root'] . 'script.php'; ?>' # or set JIRAFEAU_URL ex: url='http://mysite/jirafeau/script.php'
# Config
proxy='' # ex: proxy='proxysever.test.com:3128' or set JIRAFEAU_PROXY global variable
url='<?php echo $cfg['web_root'] . 'script.php'; ?>' # 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='
<?php echo $cfg['availability_default']; ?>' # minute, hour, day, week, month, quarted
, 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
one_time='' # ex: one_time="1" or set JIRAFEAU_ONE_TIME.
curl='' # curl path to download or set JIRAFEAU_CURL_PATH.
# End of config
@@
-297,7
+300,7
@@
if [ -z "$2" ]; then
echo "Global variables to export:"
echo " JIRAFEAU_PROXY : example: proxysever.test.com:3128"
echo " JIRAFEAU_URL : example: http://mysite/jirafeau/script.php"
echo "Global variables to export:"
echo " JIRAFEAU_PROXY : example: proxysever.test.com:3128"
echo " JIRAFEAU_URL : example: http://mysite/jirafeau/script.php"
- echo " JIRAFEAU_TIME : minute, hour, day, week, year, month or none"
+ echo " JIRAFEAU_TIME : minute, hour, day, week,
quarter,
year, month or none"
echo " JIRAFEAU_ONE_TIME : set anything or set empty"
echo " JIRAFEAU_CURL : path to your curl binary"
echo " JIRAFEAU_ONE_TIME : set anything or set empty"
echo " JIRAFEAU_CURL : path to your curl binary"
@@
-350,7
+353,11
@@
if [ "$1" == "send" ]; then
fi
cnt=$(( cnt + 1 ))
done)
fi
cnt=$(( cnt + 1 ))
done)
+ echo "Download link:"
echo "${url}?h=$code"
echo "${url}?h=$code"
+ echo "Direct download link:"
+ echo "${url}?h=$code&d=1"
+ echo "Delete link:"
echo "${url}?h=$code&d=$del_code"
elif [ "$1" == "get" ]; then
if [ -z "$password" ]; then
echo "${url}?h=$code&d=$del_code"
elif [ "$1" == "get" ]; then
if [ -z "$password" ]; then
@@
-500,6
+507,9
@@
elseif (isset ($_GET['init_async']))
case 'month':
$time += JIRAFEAU_MONTH;
break;
case 'month':
$time += JIRAFEAU_MONTH;
break;
+ case 'quarter':
+ $time += JIRAFEAU_QUARTER;
+ break;
case 'year':
$time += JIRAFEAU_YEAR;
break;
case 'year':
$time += JIRAFEAU_YEAR;
break;
patrick-canterino.de