| @@ 2341-2342 (lines=2) @@ | ||
| 2338 | //Handle leap year |
|
| 2339 | $numberofdays = array (0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); |
|
| 2340 | ||
| 2341 | if(($year % 400 == 0) or ($year % 4 == 0 and $year % 100 <> 0)) |
|
| 2342 | $numberofdays[2] = 29; |
|
| 2343 | ||
| 2344 | //Get the first day of the month |
|
| 2345 | $dayone = getdate(mktime(0, 0, 0, $month, 1, $year)); |
|
| @@ 3698-3699 (lines=2) @@ | ||
| 3695 | 30, |
|
| 3696 | 31 |
|
| 3697 | ); |
|
| 3698 | if (($year % 400 == 0) or ($year % 4 == 0 and $year % 100 <> 0)) { |
|
| 3699 | $numberofdays[2] = 29; |
|
| 3700 | } |
|
| 3701 | //Get the first day of the month |
|
| 3702 | $dayone = getdate(mktime(0, 0, 0, $month, 1, $year)); |
|