summaryrefslogtreecommitdiff
path: root/mod.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-01-03 02:04:32 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2011-01-03 02:04:32 +1100
commit714e531303d6406a41c9b3b82c7f14964028d133 (patch)
treef0402fe459306930d56eb8b23321bc902ecda5ac /mod.php
parentcb4ebae191db86ab8bdb4414af9b0ea340a61caf (diff)
Changed years expire time to 365 days instead of 52 weeks
Diffstat (limited to 'mod.php')
-rw-r--r--mod.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod.php b/mod.php
index 150ab6a5..7c910a4a 100644
--- a/mod.php
+++ b/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