add expiration in 3 years

This commit is contained in:
Uwe Steinmann 2020-09-22 10:03:30 +02:00
parent 0a4fcb4c00
commit 83fc0a59b1
2 changed files with 5 additions and 0 deletions

View File

@ -68,6 +68,10 @@ case "2y":
$tmp = explode('-', date('Y-m-d'));
$expires = mktime(0,0,0, $tmp[1], $tmp[2], $tmp[0]+2);
break;
case "3y":
$tmp = explode('-', date('Y-m-d'));
$expires = mktime(0,0,0, $tmp[1], $tmp[2], $tmp[0]+3);
break;
case "never":
default:
$expires = null;

View File

@ -74,6 +74,7 @@ $(document).ready( function() {
$options[] = array('1m', getMLText('expire_in_1m'));
$options[] = array('1y', getMLText('expire_in_1y'));
$options[] = array('2y', getMLText('expire_in_2y'));
$options[] = array('3y', getMLText('expire_in_3y'));
$this->formField(
getMLText("preset_expires"),
array(