mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-31 05:57:34 +00:00
add expiration in 3 years
This commit is contained in:
parent
0a4fcb4c00
commit
83fc0a59b1
|
@ -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;
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue
Block a user