Changed years expire time to 365 days instead of 52 weeks
This commit is contained in:
parent
cb4ebae191
commit
714e531303
2
mod.php
2
mod.php
@ -381,7 +381,7 @@
|
||||
if(preg_match('/^((\d+)\s?ye?a?r?s?)?\s?+((\d+)\s?we?e?k?s?)?\s?+((\d+)\s?da?y?s?)?((\d+)\s?ho?u?r?s?)?\s?+((\d+)?mi?n?u?t?e?s?)?\s?+((\d+)\s?se?c?o?n?d?s?)?$/', $_POST['length'], $m)) {
|
||||
if(isset($m[2])) {
|
||||
// Years
|
||||
$expire += $m[2]*60*60*24*7*52;
|
||||
$expire += $m[2]*60*60*24*365;
|
||||
}
|
||||
if(isset($m[4])) {
|
||||
// Weeks
|
||||
|
Loading…
Reference in New Issue
Block a user