more deduping

This commit is contained in:
Shish
2015-09-27 21:09:27 +01:00
parent 1ac88e8923
commit d30665d274
9 changed files with 203 additions and 209 deletions

View File

@ -107,15 +107,15 @@ class NumericScore extends Extension {
if(!empty($_GET['day'])){
$D = (int) $_GET['day'];
if($D >= 1 && $D <= 31) $day = $D;
$day = clamp($D, 1, 31);
}
if(!empty($_GET['month'])){
$M = (int) $_GET['month'];
if($M >= 1 && $M <= 12) $month = $M;
$month = clamp($M, 1 ,12);
}
if(!empty($_GET['year'])){
$Y = (int) $_GET['year'];
if($Y >= 1970 && $Y < 2100) $year = $Y;
$year = clamp($Y, 1970, 2100);
}
$totaldate = $year."/".$month."/".$day;