php_mafia

所属分类:内容生成
开发工具:PHP
文件大小:0KB
下载次数:0
上传日期:2019-11-22 02:05:40
上 传 者sh-1993
说明:  古老的黑手党游戏,也被称为狼人,你试图杀死所有其他人!呈现为PHP网站以供个人娱乐。...,
(The age old game of Mafia, also known as Werewolf, wherein you try to kill off everyone else! Rendered as a PHP website for personal fun. Please ask me before forking this code as its an on again/off again project for me.)

文件列表:
account.php (5584, 2019-11-21)
bugs.txt (0, 2019-11-21)
chat.php (5439, 2019-11-21)
create_database.sql (23547, 2019-11-21)
create_game.php (5820, 2019-11-21)
game_information.php (1434, 2019-11-21)
games.php (10732, 2019-11-21)
help.php (766, 2019-11-21)
images/ (0, 2019-11-21)
images/avatars/ (0, 2019-11-21)
images/avatars/face.png (1746, 2019-11-21)
images/favicon.gif (1437, 2019-11-21)
images/logo.gif (14360, 2019-11-21)
images/mafia_logo.png (34674, 2019-11-21)
images/mafia_logo.xcf (66166, 2019-11-21)
images/roles/ (0, 2019-11-21)
images/roles/cop.png (1201, 2019-11-21)
images/roles/doctor.gif (1049, 2019-11-21)
images/roles/game.png (623, 2019-11-21)
images/roles/mafia.gif (1437, 2019-11-21)
images/roles/mason.png (824, 2019-11-21)
images/roles/silent_killer.gif (911, 2019-11-21)
images/roles/system.png (507, 2019-11-21)
images/roles/unassigned.png (422, 2019-11-21)
includes/ (0, 2019-11-21)
includes/chat_functions.php (13393, 2019-11-21)
includes/functions.php (880, 2019-11-21)
includes/game_functions.php (51621, 2019-11-21)
includes/mysql_config.php.sample (221, 2019-11-21)
includes/mysqli_functions.php (1648, 2019-11-21)
includes/profile_functions.php (4471, 2019-11-21)
includes/site_functions.php (12826, 2019-11-21)
includes/style.css (9253, 2019-11-21)
includes/xml_functions.php (444, 2019-11-21)
index.php (2168, 2019-11-21)
invite.php (2963, 2019-11-21)
login.php (1496, 2019-11-21)
logout.php (386, 2019-11-21)
news.php (4976, 2019-11-21)
... ...

# 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.

近期下载者

相关文件


收藏者