diff --git a/index.php b/index.php
index 54ebc00..809ee3c 100644
--- a/index.php
+++ b/index.php
@@ -1,30 +1,179 @@
-
connect_error){ die("DB Error"); }
+
+$isLoggedIn = isset($_SESSION['username']);
+$username = $isLoggedIn ? htmlspecialchars($_SESSION['username']) : null;
?>
-
+
-
+
+
+ Breakout Game
+
+
+
+
+
+
+
+
-Breakout Game
-
-
-Score: 0
-
-
-
-
-
+
+ Breakout Game
+
+
+
+
+
+
+
+
+
Score: 0
+
+
+
+
+
+
+
+
+
+
-
\ No newline at end of file
+
diff --git a/leaderboard.php b/leaderboard.php
index 8726d99..911ecf5 100644
--- a/leaderboard.php
+++ b/leaderboard.php
@@ -2,18 +2,165 @@
session_start();
$conn = new mysqli("localhost","root","","breakout_db");
$lb = $conn->query("SELECT username, highscore FROM users ORDER BY highscore DESC LIMIT 10");
+
+$isLoggedIn = isset($_SESSION['username']);
+$username = $isLoggedIn ? htmlspecialchars($_SESSION['username']) : null;
?>
-
+
-
+
+Leaderboard
+
+
+
+
+
+
-Leaderboard
-
-fetch_assoc()){ ?>
-| = $r['username'] ?> | = $r['highscore'] ?> |
-
-
+
+ Leaderboard
+
+
+
+
+
+
+
+
+
+ | Username |
+ Highscore |
+
+
+
+ fetch_assoc()) { ?>
+
+ | = htmlspecialchars($r['username']) ?> |
+ = htmlspecialchars($r['highscore']) ?> |
+
+
+
+
+
+
+⬅ Back
+
-
\ No newline at end of file
+
diff --git a/login.php b/login.php
index f01c226..1b8c9c9 100644
--- a/login.php
+++ b/login.php
@@ -25,25 +25,81 @@ if(isset($_POST['login'])){
}
?>
-
+
+
+Login & Register
+
+
+
+
+
+
+
-
-
Login
-
-
Register
-
+
+
+
Login
+
+
+
+
+
Register
+
+
+
+ Back
+
+
+
-
\ No newline at end of file
+
+