fixed bugs that prevented proper grading.

This commit is contained in:
Joshua Ashton
2025-02-14 05:08:06 -07:00
parent fcbe71e62b
commit 6f63a4afb8
30 changed files with 95 additions and 87 deletions
+2 -2
View File
@@ -12,12 +12,12 @@ echo '
function getLogoutButton()
{
if ($_SESSION['access'] === true)
if ($_SESSION['new-access'] === true)
return '<button name="logout" value="true" class="reset">Logout</button>';
}
if (isset($_GET['logout'])) {
$_SESSION['access'] = false;
$_SESSION['new-access'] = false;
session_destroy();
header('Location: .');
}