diff --git a/spies/index.php b/spies/index.php index b07f1c2..3a4dee4 100644 --- a/spies/index.php +++ b/spies/index.php @@ -9,7 +9,6 @@ if (isset($_POST['username']) && isset($_POST['password'])) { $username = $_POST['username']; $password = $_POST['password']; if (array_key_exists($username, $users) && $users[$username] === $password) { - $_GET['error'] = false; $_SESSION['access'] = true; $_GET['file'] = 'includes/fbi.txt'; } else { @@ -35,40 +34,40 @@ if (isset($_GET['logout'])) {

View Confidential Information

- - - -
-
Access Denied.
-
- - -
-
- - -
-
- - -
-
- - -
-
Access Granted.
-
-
-
- - - -
-
- - +
Access Denied.
+ + '; + } + echo ' +
+
+ + +
+
+ + +
+
+ '; +} else if (isset($_GET['file']) && isset($_SESSION['access'])) { + echo ' +
+
Access Granted.
+
+
+
+ + + +
+
+ '; fileRead($_GET['file']); } ?>