X-Git-Url: https://git.p6c8.net/jirafeau_project.git/blobdiff_plain/00b364b18e137260dd0445ac903010eddafc3df0..f58031f40640cc7c243a32d2c3515210ef4ed282:/lib/functions.js?ds=inline diff --git a/lib/functions.js b/lib/functions.js index ccd13d3..e380015 100644 --- a/lib/functions.js +++ b/lib/functions.js @@ -158,6 +158,8 @@ function classic_upload (url, file, time, password, one_time, upload_password) d.setSeconds (d.getSeconds() + 604800); else if (time == 'month') d.setSeconds (d.getSeconds() + 2419200); + else if (time == 'year') + d.setSeconds (d.getSeconds() + 29030400); else return; show_link (url, res[0], res[1], res[2], d.toString()); @@ -316,6 +318,8 @@ function async_upload_end (code) d.setSeconds (d.getSeconds() + 604800); else if (async_global_time == 'month') d.setSeconds (d.getSeconds() + 2419200); + else if (async_global_time == 'year') + d.setSeconds (d.getSeconds() + 29030400); else return; show_link (async_global_url, res[0], res[1], res[2], d.toString());