mirror of
https://github.com/jcreek/Assassins-Mission-Control.git
synced 2026-07-12 18:43:43 +00:00
Begun adding the full admin backend
Admin users can now create the users table (means whoever sets up the site only needs to create a database then non-tech admin users can continue from there), close registration and start the game.
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?php include "../base.php";
|
||||
|
||||
|
||||
// Create table
|
||||
$sql = "CREATE TABLE users (
|
||||
UserID INT(25) NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||
AssassinID INT(25) NOT NULL,
|
||||
TargetID INT(25) NOT NULL,
|
||||
Username VARCHAR(65) NOT NULL,
|
||||
Password VARCHAR(32) NOT NULL,
|
||||
FullName VARCHAR(255) NOT NULL,
|
||||
YearGroup VARCHAR(65) NOT NULL,
|
||||
Subject VARCHAR(65) NOT NULL,
|
||||
Societies text NOT NULL,
|
||||
RegularHaunts text NOT NULL,
|
||||
Ninjaness int NOT NULL,
|
||||
Address VARCHAR(255) NOT NULL,
|
||||
Kills int NOT NULL,
|
||||
Status VARCHAR(65) NOT NULL
|
||||
)";
|
||||
|
||||
// Check table has been created
|
||||
// THIS IS NEEDED TO RUN THE SQL AND WHO WOULD NOT USE ERROR CHECKING ANYWAY?!
|
||||
if (mysql_query($sql))
|
||||
{
|
||||
echo "Users table created.";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "Failed to create users table - check your database details in base.";
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user