diff --git a/admin/data_management/add_game.php b/admin/data_management/add_game.php
index 3dd3d59..b713471 100644
--- a/admin/data_management/add_game.php
+++ b/admin/data_management/add_game.php
@@ -6,7 +6,7 @@
-
+
no title
diff --git a/admin/data_management/add_tourney.php b/admin/data_management/add_tourney.php
index 641cbaf..0ed3323 100644
--- a/admin/data_management/add_tourney.php
+++ b/admin/data_management/add_tourney.php
@@ -6,7 +6,7 @@
-
+
no title
diff --git a/admin/data_management/game_form.php b/admin/data_management/game_form.php
index 8a5e80d..e6e929d 100644
--- a/admin/data_management/game_form.php
+++ b/admin/data_management/game_form.php
@@ -63,7 +63,7 @@ try { // Try opening the SQL database connection
-
+
diff --git a/admin/data_management/tourney_form.php b/admin/data_management/tourney_form.php
index dbf7589..0f522b5 100644
--- a/admin/data_management/tourney_form.php
+++ b/admin/data_management/tourney_form.php
@@ -60,7 +60,7 @@ try { // Try opening the SQL database connection
-
+
diff --git a/admin/db_config.php b/admin/db_config.php
index 0a3a6e4..5422fdf 100644
--- a/admin/db_config.php
+++ b/admin/db_config.php
@@ -27,7 +27,6 @@ include ("dev_db_config.php");
$userTableName = "users"; // name of the table containing user data
$gameDataTableName = "games"; // table containing replay data
$tournamentDataTableName = "tournaments"; // tournament data table
-$trophyTableName = "trophies"; // trophy data table
$adminUserTableName = "safeadmins";
$passwordLength = 8; // default minimum random password length
@@ -126,16 +125,4 @@ updated TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
)";
-// TROPHY DATA TABLE
-$sqlCreateTrophyTable = "
-CREATE TABLE " . $trophyTableName . " (
-trophyID INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
-replayID INT UNSIGNED,
-trophyType VARCHAR(25),
-winner1 VARCHAR(30),
-winner2 VARCHAR(30),
-winner3 VARCHAR(30),
-numPlayers TINYINT UNSIGNED,
-notes VARCHAR(1000)
-)";
?>
\ No newline at end of file
diff --git a/admin/db_management/conn_check.php b/admin/db_management/conn_check.php
index 464bb46..2722fd5 100644
--- a/admin/db_management/conn_check.php
+++ b/admin/db_management/conn_check.php
@@ -5,7 +5,7 @@
-
+
TROJAN'S GENERAL DATA SHIT
diff --git a/admin/db_management/initialize.php b/admin/db_management/initialise.php
similarity index 78%
rename from admin/db_management/initialize.php
rename to admin/db_management/initialise.php
index f4dbe60..95d9a88 100644
--- a/admin/db_management/initialize.php
+++ b/admin/db_management/initialise.php
@@ -5,7 +5,7 @@
-
+
no title
@@ -131,44 +131,9 @@
}
}
-
-/*
- //////// TROPHY DATA ////////
- echo "
Creating trophy data table...
";
-
- // Check if the replay data table exists already
- $sqlCheckTrophyTable = $conn->prepare("SHOW TABLES LIKE '" . $trophyTableName . "'");
-
- // Run the query
- $sqlCheckTrophyTable->execute();
-
- //Check if any rows exist - if not, create the table, if yes, destroy it first, then create it
- $count = $sqlCheckTrophyTable->rowCount();
-
- if ($count != 0) {
- echo "
";
- // Create the query to drop the table
- $sqlDropDataTable = "DROP TABLE " . $trophyTableName;
- $conn->exec($sqlDropDataTable); // drop the table
- echo "
Deleted!
Creating new table '" . $trophyTableName . "'...
";
- try { // Create the new table
- $conn->query($sqlCreateTrophyTable);
- echo "
Table '" . $trophyTableName . "' successfully created (trophy data)
";
- } catch (PDOException $e) {
- echo $sqlCreateTrophyTable . " " . $e->getMessage();
- }
- } else { // If the table doesn't already exist, we'll just create it
- try {
- $conn->query($sqlCreateTrophyTable);
- echo "
Table '" . $trophyTableName . "' successfully created (trophy data)
";
- } catch (PDOException $e) {
- echo $sqlCreateTrophyTable . " " . $e->getMessage();
- }
- }
-*/
$conn = null; // Close the connection
- // Tell the use we're done
+ // Tell the user we're done
echo "
DONE!
";
?>
diff --git a/admin/db_management/reinitialize.php b/admin/db_management/reinitialise.php
similarity index 88%
rename from admin/db_management/reinitialize.php
rename to admin/db_management/reinitialise.php
index d0815cd..71eb4a7 100644
--- a/admin/db_management/reinitialize.php
+++ b/admin/db_management/reinitialise.php
@@ -6,7 +6,7 @@
-
+
TROJAN'S GENERAL DATA SHIT
@@ -25,7 +25,7 @@
Table '" . $adminUserTableName . "' successfully created (user data)
";
+ echo "
Table '" . $adminUserTableName . "' successfully created (safe admins)
";
+ echo "
After we finish creating your user, you will need to use the \"Initialize Databases\" option in the admin panel before you can begin to use your server