Permalink
Browse files

Merge pull request #184 from webSPELL/hotfix-date

fix(date) make dates usable in the future
  • Loading branch information...
2 parents 0a86c65 + 5d818a1 commit 68dced0dc64a968c1fa5bfaab330b13a3777da7c @Pascalmh Pascalmh committed Jan 27, 2015
Showing with 12 additions and 12 deletions.
  1. +2 −2 awards.php
  2. +5 −5 calendar.php
  3. +1 −1 challenge.php
  4. +2 −2 clanwars.php
  5. +2 −2 demos.php
View
@@ -98,7 +98,7 @@
else $month.='<option value="'.$i.'">'.date("M", mktime(0,0,0,$i,1,2000)).'</option>';
}
$year = "";
- for($i=2000; $i<2016; $i++) {
+ for($i=2000; $i<=date('Y', strtotime('+1 year')); $i++) {
if($i==date("Y", time())) $year.='<option value="'.$i.'" selected="selected">'.date("Y", time()).'</option>';
else $year.='<option value="'.$i.'">'.$i.'</option>';
}
@@ -130,7 +130,7 @@
else $month.='<option value="'.$i.'">'.date("M", mktime(0,0,0,$i,1,2000)).'</option>';
}
$year = "";
- for($i=2000; $i<2016; $i++) {
+ for($i=2000; $i<=date('Y', strtotime('+1 year')); $i++) {
if($i==date("Y", $ds['date'])) $year.='<option selected="selected">'.$i.'</option>';
else $year.='<option>'.$i.'</option>';
}
View
@@ -523,7 +523,7 @@ function print_termine($tag,$month,$year) {
if($i==date("n", time())) $month.='<option value="'.$i.'" selected="selected">'.date("M", time()).'</option>';
else $month.='<option value="'.$i.'">'.date("M", mktime(0,0,0,$i,1,2000)).'</option>';
}
- for($i=2000; $i<2016; $i++) {
+ for($i=2000; $i<=date('Y', strtotime('+1 year')); $i++) {
if($i==date("Y", time())) $year.='<option value="'.$i.'" selected="selected">'.date("Y", time()).'</option>';
else $year.='<option value="'.$i.'">'.$i.'</option>';
}
@@ -603,7 +603,7 @@ function print_termine($tag,$month,$year) {
if($i==date("n", $ds['date'])) $month.='<option value="'.$i.'" selected="selected">'.date("M", $ds['date']).'</option>';
else $month.='<option value="'.$i.'">'.date("M", mktime(0,0,0,$i,1,2000)).'</option>';
}
- for($i=2000; $i<2016; $i++) {
+ for($i=2000; $i<=date('Y', strtotime('+1 year')); $i++) {
if($i==date("Y", $ds['date'])) $year.='<option selected="selected">'.$i.'</option>';
else $year.='<option>'.$i.'</option>';
}
@@ -650,7 +650,7 @@ function print_termine($tag,$month,$year) {
if($i==date("n", time())) $month.='<option value="'.$i.'" selected="selected">'.date("M", time()).'</option>';
else $month.='<option value="'.$i.'">'.date("M", mktime(0,0,0,$i,1,2000)).'</option>';
}
- for($i=2000; $i<2016; $i++) {
+ for($i=2000; $i<=date('Y', strtotime('+5 year')); $i++) {
if($i==date("Y", time())) $year.='<option value="'.$i.'" selected="selected">'.date("Y", time()).'</option>';
else $year.='<option value="'.$i.'">'.$i.'</option>';
}
@@ -689,7 +689,7 @@ function print_termine($tag,$month,$year) {
if($i==date("n", $ds['date'])) $month.='<option value="'.$i.'" selected="selected">'.date("M", $ds['date']).'</option>';
else $month.='<option value="'.$i.'">'.date("M", mktime(0,0,0,$i,1,2000)).'</option>';
}
- for($i=2000; $i<2016; $i++) {
+ for($i=2000; $i<=date('Y', strtotime('+5 year')); $i++) {
if($i==date("Y", $ds['date'])) $year.='<option selected="selected">'.$i.'</option>';
else $year.='<option>'.$i.'</option>';
}
@@ -701,7 +701,7 @@ function print_termine($tag,$month,$year) {
if($i==date("n", $ds['enddate'])) $endmonth.='<option value="'.$i.'" selected="selected">'.date("M", $ds['enddate']).'</option>';
else $endmonth.='<option value="'.$i.'">'.date("M", mktime(0,0,0,$i,1,2000)).'</option>';
}
- for($i=2000; $i<2016; $i++) {
+ for($i=2000; $i<=date('Y', strtotime('+5 year')); $i++) {
if($i==date("Y", $ds['enddate'])) $endyear.='<option selected="selected">'.$i.'</option>';
else $endyear.='<option>'.$i.'</option>';
}
View
@@ -126,7 +126,7 @@
else $month.='<option value="'.$i.'">'.date("M", mktime(0,0,0,$i,1,2000)).'</option>';
}
$year = '';
- for($i=2009; $i<2016; $i++) {
+ for($i=date('Y'); $i<=date('Y', strtotime('+5 year')); $i++) {
if($i==date("Y", time())) $year.='<option value="'.$i.'" selected="selected">'.date("Y", time()).'</option>';
else $year.='<option value="'.$i.'">'.$i.'</option>';
}
View
@@ -77,7 +77,7 @@
if($i==date("n", time())) $month.='<option value="'.$i.'" selected="selected">'.date("M", time()).'</option>';
else $month.='<option value="'.$i.'">'.date("M", mktime(0,0,0,$i,1,2000)).'</option>';
}
- for($i=2000; $i<2015; $i++) {
+ for($i=2000; $i<=date('Y', strtotime('+1 year')); $i++) {
if($i==date("Y", time())) $year.='<option value="'.$i.'" selected="selected">'.date("Y", time()).'</option>';
else $year.='<option value="'.$i.'">'.$i.'</option>';
}
@@ -396,7 +396,7 @@
if($i==date("n", $ds['date'])) $month.='<option value="'.$i.'" selected="selected">'.date("M", $ds['date']).'</option>';
else $month.='<option value="'.$i.'">'.date("M", mktime(0,0,0,$i,1,2000)).'</option>';
}
- for($i=2000; $i<2015; $i++) {
+ for($i=2000; $i<=date('Y', strtotime('+1 year')); $i++) {
if($i==date("Y", $ds['date'])) $year.='<option selected="selected">'.$i.'</option>';
else $year.='<option>'.$i.'</option>';
}
View
@@ -277,7 +277,7 @@ function top5() {
else $month.='<option value="'.$i.'">'.date("M", mktime(0,0,0,$i,1,2000)).'</option>';
}
$year = "";
- for($i=2000; $i<2016; $i++) {
+ for($i=2000; $i<=date('Y', strtotime('+1 year')); $i++) {
if($i==date("Y", time())) $year.='<option value="'.$i.'" selected="selected">'.date("Y", time()).'</option>';
else $year.='<option value="'.$i.'">'.$i.'</option>';
}
@@ -303,7 +303,7 @@ function top5() {
else $month.='<option value="'.$i.'">'.date("M", mktime(0,0,0,$i,1,2000)).'</option>';
}
$year = "";
- for($i=2000; $i<2016; $i++) {
+ for($i=2000; $i<=date('Y', strtotime('+1 year')); $i++) {
if($i==date("Y", $ds['date'])) $year.='<option selected="selected">'.$i.'</option>';
else $year.='<option>'.$i.'</option>';
}

0 comments on commit 68dced0

Please sign in to comment.