Changed years expire time to 365 days instead of 52 weeks

This commit is contained in:
Savetheinternet 2011-01-03 02:04:32 +11:00
parent cb4ebae191
commit 714e531303

View File

@ -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