Mafia Game Script v2 is a massively multiplayer online browser-based RPG Game Engine that allows game owners to develop a fully functional gaming website and to have total control over their game by equipping them with tools to edit the obtainable items, jobs, gangs, cities, battle ladders, business casinos, streets and much much more.
![](/uploads/1/2/6/3/126328329/844166175.jpg)
Permalink
Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up
![Ravan Ravan](/uploads/1/2/6/3/126328329/826139197.png)
Find file Copy path
Cannot retrieve contributors at this time
<?php |
/************************************************************************************************** |
| Software Name : Ravan Scripts Online Mafia Game |
| Software Author : Ravan Soft Tech |
| Software Version : Version 2.0.1 Build 2101 |
| Website : http://www.ravan.info/ |
| E-mail : [email protected] |
|************************************************************************************************** |
| The source files are subject to the Ravan Scripts End-User License Agreement included in License Agreement.html |
| The files in the package must not be distributed in whole or significant part. |
| All code is copyrighted unless otherwise advised. |
| Do Not Remove Powered By Ravan Scripts without permission . |
|************************************************************************************************** |
| Copyright (c) 2010 Ravan Scripts . All rights reserved. |
|**************************************************************************************************/ |
session_start(); |
if(get_magic_quotes_gpc() 0) |
{ |
foreach($_POSTas$k=>$v) |
{ |
$_POST[$k]=addslashes($v); |
} |
foreach($_GETas$k=>$v) |
{ |
$_GET[$k]=addslashes($v); |
} |
} |
include'config.php'; |
include'language.php'; |
global$_CONFIG; |
define('MONO_ON', 1); |
require'class/class_db_{$_CONFIG['driver']}.php'; |
$db=newdatabase; |
$db->configure($_CONFIG['hostname'], |
$_CONFIG['username'], |
$_CONFIG['password'], |
$_CONFIG['database'], |
$_CONFIG['persistent']); |
$db->connect(); |
$c=$db->connection_id; |
$set=array(); |
$settq=$db->query('SELECT*FROM settings'); |
while($r=$db->fetch_row($settq)) |
{ |
$set[$r['conf_name']]=$r['conf_value']; |
} |
if ($_POST['username'] ''||$_POST['password'] '') |
{ |
die('<h3>{$set['game_name']} Error</h3> |
$nofill<br> |
<a href=login.php>> Back</a>'); |
} |
$uq=$db->query('SELECT userid FROM users WHERE login_name='{$_POST['username']}'AND`userpass`=md5('{$_POST['password']}')'); |
if ($db->num_rows($uq)0) |
{ |
die('<h3>{$set['game_name']} Error</h3> |
$invalid<br> |
<a href=login.php>> $lerrortry</a>'); |
} |
else |
{ |
$_SESSION['loggedin']=1; |
$mem=$db->fetch_row($uq); |
$_SESSION['userid']=$mem['userid']; |
$IP=$_SERVER['REMOTE_ADDR']; |
$IP=addslashes($IP); |
$IP=mysql_real_escape_string($IP); |
$IP=strip_tags($IP); |
$db->query('UPDATE users SET lastip_login='$IP',last_login=unix_timestamp() WHERE userid={$mem['userid']}'); |
$db->query('UPDATE users SET active=1WHERE userid={$mem['userid']}'); |
if($set['validate_period'] 'login'&&$set['validate_on']) |
{ |
$db->query('UPDATE users SET verified=0WHERE userid={$mem['userid']}'); |
} |
header('Location: index.php'); |
} |
?> |
- Copy lines
- Copy permalink
Now a days Text-Based/Browser-Based RPG Games making tons of revenue every month, its a very profitable business to be in. Just imagine having the ability to create, manage, and generate revenue from a browser-based RPG, without having to know any programming languages or write a single line of code Have fun with your friends, live out your Mafia fantasies.Ravan Scripts proudly present MMORPG V1,which is our Online Mafia MMORPG Game Script. Our Script is a fully functional game engine that allows game owners to have total control over their game by equipping them with tools to edit the obtainable items, jobs, cities, and much more. With this code you can completely create your own game. Bring in users, get a good community going, and make some real $$. The script is easily customizable via CSS, and with the ability to edit most of the in-game settings, you could be running your very own RPG (any genre) in minutes!
You can completely modify every aspect of the theme.
![](/uploads/1/2/6/3/126328329/844166175.jpg)