Skip to content

Commit

Permalink
index: set rooms
Browse files Browse the repository at this point in the history
Without setting rooms in the case statement (room-105 for example) the following
queries would not show the speaker in the room (intended) but instead show the
entire schedule as if it were the RPi sign clients when room-105 was missing
in the case:

http://localhost/?room=room-105&year=2024&month=3&day=16&hour=11&minute=30
  • Loading branch information
sarcasticadmin committed Mar 10, 2024
1 parent b0f92c8 commit 28e3f28
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions server/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,26 +62,21 @@
} else {
if (!empty($_GET["room"])) {
switch ($_GET["room"]) {
case 'ballroom-de':
case 'ballroom-a':
case 'ballroom-b':
case 'ballroom-c':
case 'ballroom-de':
case 'ballroom-f':
case 'ballroom-g':
case 'ballroom-h':
case 'ballroom-gh':
case 'ballroom-i':
case 'ballroom-j':
case 'room-101':
case 'room-103':
case 'room-104':
case 'room-105':
case 'room-106':
case 'room-107':
case 'room-209':
case 'room-211':
case 'room-212':
case 'room-209':
case 'room-205':
case 'room-215':
$year = $month = $day = $hour = $minute = '';
if (!empty($_GET["year"])) {
$year = $_GET['year'];
Expand Down

0 comments on commit 28e3f28

Please sign in to comment.