Warning: This code is extremely old and essentially just being updated to record all changes that were made. It is not up to snuff security-wise and should just be a starting point for a workable web version, not an actual product. Can't stress this enough, this is just a dumping ground of oldness
This project hoped to bring the amazing game of Mafia (also known as Werewolf) to the web in a non-forum manner. It won't be as detailed as some of the forum run games can be, due to the sheer number of special cases in roles but all basic roles will be represented, as well as most common roles. Most of this was accomplished.
Instructions:
- Clone this repository
- Move
includes/mysql_config.php.sample
toincludes/mysql_config.php
- Fill in the pertinent database details for
includes/mysql_config.php
- Import the
create_database.sql
into your database, this will create the necessary tables and fill in default values. Delete this file after importing it. - Edit the
includes/site_functions.php
file to update the$site_domain
variable at the top with the domain you are using. - Be very aware that this will default to http and if you want to use https, edit the
includes/site_functions.php
file to update the$site_protocol
variable to "https" and put certs in the right places - Login with the
admin
user, usingadmin
as the password. Be sure to click 'Account' and change your password immediately. - If you have the
mail
command set up on your PHP host, then you can send invitation emails to friends directly if you navigate to /invite.php. Otherwise, create new users in MySQL and use MD5 (I said it was old) as the pssword hash.