Giter Site home page Giter Site logo

php_mafia's Introduction

PHP_Mafia

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

Goal

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:

  1. Clone this repository
  2. Move includes/mysql_config.php.sample to includes/mysql_config.php
  3. Fill in the pertinent database details for includes/mysql_config.php
  4. 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.
  5. Edit the includes/site_functions.php file to update the $site_domain variable at the top with the domain you are using.
  6. 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
  7. Login with the admin user, using admin as the password. Be sure to click 'Account' and change your password immediately.
  8. 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.

php_mafia's People

Contributors

thesnarky1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.