diff --git a/admin/index.php b/admin/index.php
index a9fd501..3f34586 100644
--- a/admin/index.php
+++ b/admin/index.php
@@ -60,14 +60,18 @@ session_start();
} else if (isset($_SESSION["userID"]) && $_SESSION["isAdmin"] == 1) {
echo "";
} else {
- echo "";
+ echo "";
}
}
?>
-
ADMIN HOME
+ ADMIN HOME";
+ }
+ ?>
MAIN HOME
+
+
+
+
+
+
+
+
+
+
+
+
NOT AN ADMIN
+
+
+
+
You're not allowed to be here!
+
You don't have the necessary privileges to view this content
+
If you believe this to be an error, contact another admin, or your systems administrator.
+
+
+
+
\ No newline at end of file
diff --git a/admin/user_management/add_user.php b/admin/user_management/add_user.php
index f268137..5532618 100644
--- a/admin/user_management/add_user.php
+++ b/admin/user_management/add_user.php
@@ -36,34 +36,24 @@
$isAdmin = 1;
}
-
- echo "
";
- echo $username . "
";
- echo $password . "
";
- echo $discord . "
";
- echo $twitch . "
";
- echo $youtube . "
";
-
- echo $isAdmin . "
";
- echo "lock 0";
-
$insert = $conn->prepare("INSERT INTO " . $userTableName . " (username, password, discord, twitch, youtube, isAdmin) VALUES (:username, :password, :discord, :twitch, :youtube, :isAdmin)");
- echo "lock 1";
$insert->bindParam(":username", $username);
$insert->bindParam(":password", $password);
$insert->bindParam(":discord", $discord);
$insert->bindParam(":twitch", $twitch);
$insert->bindParam(":youtube", $youtube);
- echo "lock 2";
$insert->bindParam(":isAdmin", $isAdmin);
- echo "lock 3";
$insert->execute();
- echo "New records created successfully?";
+ if ($isAdmin == 1) {
+ echo "New admin user \"" . $username . "\" created successfully";
+ } else {
+ echo "New user \"" . $username . "\" created successfully";
+ }
diff --git a/index.html b/index.html
deleted file mode 100644
index a7334a2..0000000
--- a/index.html
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
-
-
-
-
-
Trojan's Trophy Room
-
-
-
-
-
Trojan's Trophy Room
-
Choose a division to see results!
-
-
-
-
-
-
\ No newline at end of file
diff --git a/styles/admin.css b/styles/admin.css
index 94080fd..734e9e9 100644
--- a/styles/admin.css
+++ b/styles/admin.css
@@ -41,3 +41,8 @@
box-shadow: 0px 0px 2px;
transform: translateY(2px);
}
+
+#notAnAdmin {
+ width: 300px;
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
+}
\ No newline at end of file