Compare commits
2 Commits
8d13f33978
...
a7921f6d5b
Author | SHA1 | Date | |
---|---|---|---|
a7921f6d5b | |||
34e5c44115 |
@ -17,14 +17,14 @@ foreach ($COMBINED_ACCESS as $name => $data) {
|
|||||||
$client['id'] = $name;
|
$client['id'] = $name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($_SERVER['PATH_INFO'] !== "/$client[id]/") {
|
if ($client === null) {
|
||||||
header('Status: 308');
|
|
||||||
header("Location: /access/$client[id]/");
|
|
||||||
exit();
|
|
||||||
} else if ($client === null) {
|
|
||||||
header('Status: 404');
|
header('Status: 404');
|
||||||
header('Content-Length: 0');
|
header('Content-Length: 0');
|
||||||
exit();
|
exit();
|
||||||
|
} else if ($_SERVER['PATH_INFO'] !== "/$client[id]/") {
|
||||||
|
header('Status: 308');
|
||||||
|
header("Location: /access/$client[id]/");
|
||||||
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($client['api']) {
|
if ($client['api']) {
|
||||||
|
@ -83,7 +83,8 @@ async function updateOverview(client) {
|
|||||||
const date = new Date(dateString);
|
const date = new Date(dateString);
|
||||||
const row = document.createElement('div');
|
const row = document.createElement('div');
|
||||||
row.className = 'day';
|
row.className = 'day';
|
||||||
if (now.getDate() === date.getDate()) row.classList.add('today');
|
if (now.getFullYear() === date.getFullYear() && now.getMonth() === date.getMonth() && now.getDate() === date.getDate())
|
||||||
|
row.classList.add('today');
|
||||||
row.innerHTML = `<div><span style="font-size: 0.75em; display: block">${fmtDateWeekday(date)}</span>${fmtDate(date)}</div>`;
|
row.innerHTML = `<div><span style="font-size: 0.75em; display: block">${fmtDateWeekday(date)}</span>${fmtDate(date)}</div>`;
|
||||||
const container = document.createElement('div');
|
const container = document.createElement('div');
|
||||||
container.className = 'schedule-container';
|
container.className = 'schedule-container';
|
||||||
|
Reference in New Issue
Block a user