diff --git a/README.md b/README.md index d7f86a9..50c01b0 100644 --- a/README.md +++ b/README.md @@ -20,18 +20,14 @@ The web app for running a semi-automated game of Assassins. Install Instructions ------------------------------------- -1) Mission Control requires PHP and MySQL to run. Make sure you've got those installed on your web server. - -2) In base.php you need to set your own database details. - -3) Using the admin tools in admin.php, create the users table. - -4) Your users can now begin to register using register.php - I'd recommend sending out a direct link using a URL shortener, although on the main page there is a link to registering just above the login box. +1. Mission Control requires PHP and MySQL to run. Make sure you've got those installed on your web server. +2. In base.php you need to set your own database details. +3. Using the admin tools in admin.php, create the users table. +4. Your users can now begin to register using register.php - I'd recommend sending out a direct link using a URL shortener, although on the main page there is a link to registering just above the login box. Once all your users have registered ------------------------------------- -5) At this point you do not want anyone else to register so, as I haven't thought of a way to prevent adding any more data to an SQL table, you're going to duplicate the users table to a table called usersfinal which won't get edited by the registration form, thereby preventing anyone else from signing up. To do this head over to the admin tools in admin.php and close the registration. - -6) Once you are ready to begin the game you need to go to admin.php and assign all players their targets by starting the game. +5. At this point you do not want anyone else to register so, as I haven't thought of a way to prevent adding any more data to an SQL table, you're going to duplicate the users table to a table called usersfinal which won't get edited by the registration form, thereby preventing anyone else from signing up. To do this head over to the admin tools in admin.php and close the registration. +6. Once you are ready to begin the game you need to go to admin.php and assign all players their targets by starting the game. diff --git a/adminer-4.0.3-mysql-en.php b/admin-tools/adminer-sql.php similarity index 100% rename from adminer-4.0.3-mysql-en.php rename to admin-tools/adminer-sql.php diff --git a/admin.php b/admin.php index 1a3e944..0c48745 100644 --- a/admin.php +++ b/admin.php @@ -7,29 +7,20 @@ -
- -
-
- -
-
+
+

Mission Control Admin Tools

+
+

Create users table

-
-
- -
-
- -
-
- -
-
- - - - +

Close registration

+ +

Start the game

+
+ +
+

Log in to the database and modify the table directly +
N.B. You will need to know the database server, user, password and database name. The table to modify is 'usersfinal' once the game has started.

+
diff --git a/base assassins-srv.php b/base assassins-srv.php deleted file mode 100644 index e6f5b89..0000000 --- a/base assassins-srv.php +++ /dev/null @@ -1,18 +0,0 @@ - \ No newline at end of file diff --git a/base jcreek-co-uk.php b/base jcreek-co-uk.php deleted file mode 100644 index fcdaa53..0000000 --- a/base jcreek-co-uk.php +++ /dev/null @@ -1,11 +0,0 @@ - \ No newline at end of file diff --git a/startgame.php b/startgame.php deleted file mode 100644 index 1da0254..0000000 --- a/startgame.php +++ /dev/null @@ -1,82 +0,0 @@ - -num_rows; -return $total; -} -//call that stuff to do what I want -$numberofrows = GetNumberOfRows(); //*THIS WORKS -$IDarray = UniqueRandomNumbersWithinRange(1,$numberofrows,$numberofrows); - -echo "Here begins the tempIDs output by the for loop:" ; -echo "
" ; -//print_r ($IDarray); -for ($counter = 1; $counter <= $numberofrows; $counter += 1) { //*THIS WORKS - $assassinID = $IDarray[$counter - 1] ; //*THIS WORKS - if ($assassinID == $numberofrows) { - $targetID = 1 ; - } - else { - $targetID = $assassinID + 1 ; - } - - echo "a: " ; - echo $assassinID ; - echo "
" ; - echo "t: " ; - echo $targetID ; - echo "
" ; - - - //set tempID as the assassinID of the user in the row $counter - - //set tempID+1 as the target ID of the user in the row $counter - //mysql_query( "NSERT INTO users (AssassinID, TargetID) VALUES ($assassinID, $targetID)" ); - echo "Start AssassinSQL " ; - //UPDATE Users SET weight = 160, desiredWeight = 145 WHERE id = 1; - mysql_query( "UPDATE users SET AssassinID = $assassinID WHERE UserID = $counter" ) ; - echo $counter ; - echo "
" ; - echo "Start TargetSQL " ; - //UPDATE Users SET weight = 160, desiredWeight = 145 WHERE id = 1; - mysql_query( "UPDATE users SET TargetID = $targetID WHERE UserID = $counter" ) ; - echo $counter ; - echo "
" ; - - mysql_query( "UPDATE users SET Status = 'Alive' WHERE UserID = $counter" ) ; - mysql_query( "UPDATE users SET Kills = 0 WHERE UserID = $counter" ) ; - - } - -?> - - - - - \ No newline at end of file diff --git a/upload/ie215.jpg b/upload/ie215.jpg deleted file mode 100644 index ed11823..0000000 Binary files a/upload/ie215.jpg and /dev/null differ diff --git a/upload/tim.jpg b/upload/tim.jpg deleted file mode 100644 index 2fc389e..0000000 Binary files a/upload/tim.jpg and /dev/null differ