Skip to content

Commit

Permalink
Merge pull request #7 from 3sannasia/self-update-year-semester
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTripleV authored May 22, 2024
2 parents 29e6991 + 25d6fe0 commit 5165ad3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 5165ad3

Please sign in to comment.