Software for editing/testing puzzles for the MIT Mystery Hunt
Currently being hacked by Random Fish in preparation for the 2015 Hunt.
-
Log into your mysql database server with full administrative priviliges.
-
Create a puzzletron user
-
Create a puzzletron database
-
Grant the puzzletron user access to that database
mysql -u <mysqlusername> -s <servername> -p <databasename> < schema.sql
(enter password for the puzzletron DB user when prompted)
- Copy
config.php.EXAMPLE
toconfig.php
and edit appropriately. - Make sure HTML Purifier is installed and referenced appropriately in
config.php
DB_NAME
is the name of the database you created aboveURL
is the URL what links referring back to this puzzletron instance should beTRUST_REMOTE_USER
disables the internal puzzletron user database and trusts the apacheREMOTE_USER
variable (only do this if you have apache auth set up and a separate authentication database) (warning: Random Fish doesn't have this turned on and doesn't know if our changes have broken Puzzletron if it does get turned on)DEVMODE
--- is the server in Development/Test mode?PRACMODE
--- is the server in Practice / pre-hunt-writing mode?- Copy
secret.php.EXAMPLE
tosecret.php
and edit appropriately
priv
table contains list of roles and what privileges they havepstatus
table contains list of possible puzzle statuses and what can happen at each status
In order for puzzletron to actually send its email queue (comments on puzzles, etc.)
there needs to be a cron job that runs email_cronjob.php
script with your php interpreter
at some regular frequency.
Make sure the uploads directory (and everything underneath it) is writable and searchable by your web server
Last person to touch this code (2014 mystery hunt) if you need help: benoc@alum.mit.edu