diff --git a/index.php b/index.php index 1844d27..6b7bdcf 100644 --- a/index.php +++ b/index.php @@ -2,8 +2,16 @@ // PARAMS // -------- -$currentYear = "2024"; -$currentSemester = "spring"; + +$currentMonth = date('n'); +$currentYear = date('Y'); + +// Determine the current semester +if ($currentMonth >= 8) { + $currentSemester = "fall"; +} else { + $currentSemester = "spring"; +} $cellWidth = "10"; $cellHeight = "6";