survey_seahorse

Software Engineering Project - Fall 2018
Log | Files | Refs | README

commit b5c445f33dcfc3a44d87bf042593a20cf11eff1f
parent a178a7e1e1197fde28abe713bc1f463243beaefb
Author: John Kubach <johnkubach@gmail.com>
Date:   Mon, 17 Dec 2018 22:37:02 -0500

bug fix

fix bug where a non-admin user would be unable to see the logout button

Diffstat:
Mwebsite/index.php | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/website/index.php b/website/index.php @@ -55,13 +55,15 @@ if (isset($_SESSION['uid'])) { if ($check < 1) { + echo "<a class='off' href='logout.php'> Logout </a>"; exit(); } else { $_SESSION['admin'] = 1; echo "<a href='controlpanel.php'> Admin Control Panel </a> <br>"; + echo "<a class='off' href='logout.php'> Logout </a>"; } } +exit(); ?> - <a class="off" href="logout.php"> Logout </a> </div>