Jump to content
MakeWebGames

Decoding Ravan script files


noscript

Recommended Posts

S t o l e n ?

STOLEN?!

Are you serious? I actually paid real money for this =(

Well there goes 3 weeks work -Gutted , I am honestly not going to pay $200 for mccodes, as I will literally be rewriting most of the code base anyway, as was the case with ravan script.

Looks like I'll just have to build the engine myself, that way no one can sting me later on down the track for any reason :p.

Ah well lesson learned, The $15 I am already over, and the time spent working on the project has given me an idea of how such an engine works so Im not entirely out of pocket.

Cheers mate for the heads up.

/Thread

Link to comment
Share on other sites

STOLEN?!

Are you serious? I actually paid real money for this =(

Well there goes 3 weeks work -Gutted , I am honestly not going to pay $200 for mccodes, as I will literally be rewriting most of the code base anyway, as was the case with ravan script.

Looks like I'll just have to build the engine myself, that way no one can sting me later on down the track for any reason :p.

Ah well lesson learned, The $15 I am already over, and the time spent working on the project has given me an idea of how such an engine works so Im not entirely out of pocket.

Cheers mate for the heads up.

/Thread

You do not need to throw away your work! Just do not publically release the game without a valid mccode licence.

Link to comment
Share on other sites

Why recode the engine? It's a php text script, it's not like it's some super advanced 3D game code. Why not just write your own so it would actually standout as unique; since most browser games run either GRPG or MCCodes. Plus, it's a great opportunity to learn more.

Link to comment
Share on other sites

I actually think its illegal to decode the code as well. But I do remember someone saying there's a way, was either Paul or Crazy, and more likely it was Crazy, its ioncube encoded, and I'm sure there's lets say, 'methods' to getting a decrypter. To me it sounds like your going to recode it, if you do, its your own game. You just need to find the decrypter or a method to decrypt it.

Link to comment
Share on other sites

I wouldn't worry too much - there are possibly already 50,000 online anyway.

Besides, neither Raven or McCode have a copyright and furthermore, both claim as their work and neither have proof of creation, which would explain why nobody have been sued, if neither really made it.

If you have the time, make your own - McCode/Raven suck :)

Copyright is given to the maker of anything, and will be held to the maker until 75 years after death

Link to comment
Share on other sites

And copyright only falls to the creator, not an alias like, let's say, MCCodes.

Under a business, copyright has to be applied for. Just like patents.

 

If Mccodes is a "REGISTERED" business then copyright does apply to them. How ever if they are not a "REGISTERED" business then copyright must fall under the legal name of the creator. So basically all those "illegal" games out there really have nothing to worry about. I'm sure if there was something they can do about it they would have..

Link to comment
Share on other sites

If Mccodes is a "REGISTERED" business then copyright does apply to them. How ever if they are not a "REGISTERED" business then copyright must fall under the legal name of the creator. So basically all those "illegal" games out there really have nothing to worry about. I'm sure if there was something they can do about it they would have..

:rolleyes:

Link to comment
Share on other sites

Interpreted works is granted automatic copyright, unless otherwise stated. True.

But the point I'm making is that the alias(because that's all it is) "MCCodes" can not accept copyright.

If the code was created while MCCodes was already operational AND registered, it would be a different case.

But the sources were developed before MCCodes came into existence. The only way they could possibly transfer the copyright is to apply for it under the alias, or go legal ways to extend the rights thereof.

MCCodes isn't a Partnership, CC, Pty. or operated within a sole proprietor(deprecated, here at least). They have to take legal steps to confirm their existence as a company.

They are engaging in illegal business, because I can surely say they aren't paying tax in any way. Tax avoidance is illegal.

Let's that they there making about 25,000 a year, that's the least I would think they make.

Since 2006, that's 5 years. Trading tax(because they are to small to pay corporate tax), let's say 10% even(it is more, I know): 13,000 x 10/100

That's a minimum that 1,300 a year for tax: about 8,000. To be realistic it's more like 20-50%.

Small things about them don't add up. And even larger things just rises to infinity.

I'd be more than happy to actually file a document with the government of New Zealand and confirm my suspicions, but I'd hate to put everyone here in jeopardy.

Edited by Spudinski
Link to comment
Share on other sites

okay i've been searching in a different version of ravan.. also again.. idk if they work.. maybe testing later but here are the files i decoded for you.. (i hope thats all..) ;)

core.php

 

<?php

session_start();
if(!file_exists("license.php"))
{
die("License Not Found !!");
}
require "license.php";
include "language.php";
if (filesize("config.php") <= 150)
{
header("Location: install.php");
}
global $_CONFIG;
define("MONO_ON", 1);
require "class/class_db_{$_CONFIG['driver']}.php";
$db=new database;
$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'];
}
$q=$db->query("SELECT userid FROM users");
$membs=$db->num_rows($q);
$q=$db->query("SELECT userid FROM users WHERE bankmoney>-1");
$banks=$db->num_rows($q);
$q=$db->query("SELECT userid FROM users WHERE gender='Male'");
$male=$db->num_rows($q);
$q=$db->query("SELECT userid FROM users WHERE gender='Female'");
$fem=$db->num_rows($q);
$total=0;
// Users Online , Counts Users Online In Last 15 minutes                                                                           
$q=$db->query("SELECT * FROM users WHERE laston>unix_timestamp()-15*60 ORDER BY laston DESC");
$online=$db->num_rows($q);

?>

 

lfooter.php

 

<?php


// Do Not Remove Powered By Ravan Scripts without permission .

// However, if you would like to use the script without the powered by links you may do so by purchasing a Copyright removal license for a very low fee. 

print "<div class='footerpart'>
<p><center>Game Copyright © 2010 {$_SERVER['HTTP_HOST']}.  {$set['game_owner']}.    Powered by Ravan's Online <a href=http://ravan.info/_catalog/php_scripts/_mmorpg_game_script_v_1.2>Mafia Script</a></p>
</div>
</body>
</html> ";

?>

 

smenu.php

 

<?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.
|**************************************************************************************************/
global $db,$c,$ir, $set;

print "



<div class='navi_mid'><ul>

<br><li> <a class='link1' href='index.php'><b>Back To Game</b></a>
</div><div><img src='images/navi_btm.gif' alt='' /></div></div> 


<div class='navipart'>
<div class='navitop'>
<p><h2><strong>   General</strong></h2></p>
</div>
<div class='navi_mid'><ul>

<li> <a class='link1' href='staff.php'>Index</a></li>";
if($ir['user_level']==2)
{
print "

<li> <a class='link1' href='staff.php?action=basicset'>Basic Settings</a></li>
<li> <a class='link1' href='staff.php?action=announce'>Add Announcement</a></li>
<li> <a class='link1' href='staff.php?action=cmanual'>Manual Cron Jobs</a></li>

</div><div><img src='images/navi_btm.gif' alt='' /></div></div>  

";
}
if($ir['user_level'] <= 3)
{
print "
<div class='navipart'>
<div class='navitop'>
<p><h2><strong>   Users</strong></h2></p>
</div>
<div class='navi_mid'><ul>
";
if($ir['user_level']==2)
{
print "  
<li> <a class='link1' href='staff_users.php?action=newuser'>Create New User</a></li>
<li> <a class='link1' href='staff_users.php?action=edituser'>Edit User</a></li>
<li> <a class='link1' href='staff_users.php?action=deluser'>Delete User</a></li>";
}
print "<li> <a class='link1' href='staff_users.php?action=invbeg'>View User Inventory</a></li>
<li> <a class='link1' href='staff_users.php?action=creditform'>Credit User</a></li>";
if($ir['user_level']==2)
{
print "<li> <a class='link1' href='staff_users.php?action=masscredit'>Mass Payment</a></li>
<li> <a class='link1' href='staff_users.php?action=forcelogout'>Force User Logout</a></li>";
}
print " 
<li> <a class='link1' href='staff_users.php?action=reportsview'>Player Reports</a></li>
</div><div><img src='images/navi_btm.gif' alt='' /></div></div> 

";
print " 
<div class='navipart'><div class='navitop'><p><h2><strong>   Items</strong></h2></p></div><div class='navi_mid'><ul>
";
if($ir['user_level']==2)
{
print "<li> <a class='link1' href='staff_items.php?action=newitem'>Create New Item</a></li>";
}
if($ir['user_level']==2)
{
print "<li> <a class='link1' href='staff_items.php?action=edititem'>Edit Item</a></li>
<li> <a class='link1' href='staff_items.php?action=killitem'>Delete An Item</a></li>
<li> <a class='link1' href='staff_items.php?action=newitemtype'>Add Item Type</a></li>
";
}
print "<li> <a class='link1' href='staff_items.php?action=giveitem'>Give Item To User</a></li>
</div><div><img src='images/navi_btm.gif' alt='' /></div></div> ";
}
print "
<div class='navipart'><div class='navitop'><p><h2><strong>   Logs</strong></h2></p></div><div class='navi_mid'><ul>
<li> <a class='link1' href='staff_logs.php?action=atklogs'>Attack Logs</a></li>
<li> <a class='link1' href='staff_logs.php?action=cashlogs'>Cash Xfer Logs</a></li>
<li> <a class='link1' href='staff_logs.php?action=cryslogs'>Crystal Xfer Logs</a></li>
<li> <a class='link1' href='staff_logs.php?action=banklogs'>Bank Xfer Logs</a></li>
<li> <a class='link1' href='staff_logs.php?action=itmlogs'>Item Xfer Logs</a></li>";
if($ir['user_level'] == 2)
{
print "<li> <a class='link1' href='staff_logs.php?action=stafflogs'>Staff Logs</a></li>";
}
print " <li> <a class='link1' href='staff_logs.php?action=maillogs'>Mail Logs</a></li> 
</div><div><img src='images/navi_btm.gif' alt='' /></div></div> "; 

if($ir['user_level'] <= 3)
{
print "

<div class='navipart'><div class='navitop'><p><h2><strong>   Gangs</strong></h2></p></div><div class='navi_mid'><ul>
<li> <a class='link1' href='staff_gangs.php?action=grecord'>Gang Record</a></li>
<li> <a class='link1' href='staff_gangs.php?action=gcredit'>Credit Gang</a></li>
<li> <a class='link1' href='staff_gangs.php?action=gwar'>Manage Gang Wars</a></li>
<li> <a class='link1' href='staff_gangs.php?action=gedit'>Edit Gang</a></li>
<li> <a class='link1' href='staff_gangs.php?action=gedel'>Delete Gang</a></li>
</div><div><img src='images/navi_btm.gif' alt='' /></div></div> ";
}
if($ir['user_level']==2)
{
print " 

<div class='navipart'><div class='navitop'><p><h2><strong>   Shops</strong></h2></p></div><div class='navi_mid'><ul>
<li> <a class='link1' href='staff_shops.php?action=newshop'>Create New Shop</a></li>
<li> <a class='link1' href='staff_shops.php?action=newstock'>Add Item To Shop</a></li>
<li> <a class='link1' href='staff_shops.php?action=delshop'>Delete Shop</a></li>
</div><div><img src='images/navi_btm.gif' alt='' /></div></div> 
<div class='navipart'><div class='navitop'><p><h2><strong>   Polls</strong></h2></p></div><div class='navi_mid'><ul>  
<li> <a class='link1' href='staff_polls.php?action=spoll'>Start Poll</a></li>
<li> <a class='link1' href='staff_polls.php?action=endpoll'>End A Poll</a></li>
</div><div><img src='images/navi_btm.gif' alt='' /></div></div>
<div class='navipart'><div class='navitop'><p><h2><strong>   Jobs</strong></h2></p></div><div class='navi_mid'><ul>  
<li> <a class='link1' href='staff_jobs.php?action=newjob'>Make a new Job</a></li>
<li> <a class='link1' href='staff_jobs.php?action=jobedit'>Edit a Job</a></li>
<li> <a class='link1' href='staff_jobs.php?action=jobdele'>Delete a Job</a></li>
<li> <a class='link1' href='staff_jobs.php?action=newjobrank'>Make a new Job Rank</a></li>
<li> <a class='link1' href='staff_jobs.php?action=jobrankedit'>Edit a Job Rank</a></li>
<li> <a class='link1' href='staff_jobs.php?action=jobrankdele'>Delete a Job Rank</a></li>
</div><div><img src='images/navi_btm.gif' alt='' /></div></div>
<div class='navipart'><div class='navitop'><p><h2><strong>   Houses</strong></h2></p></div><div class='navi_mid'><ul>  
<li> <a class='link1' href='staff_houses.php?action=addhouse'>Add House</a></li>
<li> <a class='link1' href='staff_houses.php?action=edithouse'>Edit House</a></li>
<li> <a class='link1' href='staff_houses.php?action=delhouse'>Delete House</a></li>
</div><div><img src='images/navi_btm.gif' alt='' /></div></div>
<div class='navipart'><div class='navitop'><p><h2><strong>   Cities</strong></h2></p></div><div class='navi_mid'><ul>  
<li> <a class='link1' href='staff_cities.php?action=addcity'>Add City</a></li>
<li> <a class='link1' href='staff_cities.php?action=editcity'>Edit City</a></li>
<li> <a class='link1' href='staff_cities.php?action=delcity'>Delete City</a></li>
</div><div><img src='images/navi_btm.gif' alt='' /></div></div>
<div class='navipart'><div class='navitop'><p><h2><strong>   Forums</strong></h2></p></div><div class='navi_mid'><ul>  
<li> <a class='link1' href='staff_forums.php?action=addforum'>Add Forum</a></li>
<li> <a class='link1' href='staff_forums.php?action=editforum'>Edit Forum</a></li>
<li> <a class='link1' href='staff_forums.php?action=delforum'>Delete Forum</a></li>
</div><div><img src='images/navi_btm.gif' alt='' /></div></div>
<div class='navipart'><div class='navitop'><p><h2><strong>   Courses</strong></h2></p></div><div class='navi_mid'><ul>  
<li> <a class='link1' href='staff_courses.php?action=addcourse'>Add Course</a></li>
<li> <a class='link1' href='staff_courses.php?action=editcourse'>Edit Course</a></li>
<li> <a class='link1' href='staff_courses.php?action=delcourse'>Delete Course</a></li>
</div><div><img src='images/navi_btm.gif' alt='' /></div></div>
<div class='navipart'><div class='navitop'><p><h2><strong>   Crimes</strong></h2></p></div><div class='navi_mid'><ul>  
<li> <a class='link1' href='staff_crimes.php?action=newcrime'>Create New Crime</a></li>
<li> <a class='link1' href='staff_crimes.php?action=editcrime'>Edit Crime</a></li>
<li> <a class='link1' href='staff_crimes.php?action=delcrime'>Delete Crime</a></li> 
<li> <a class='link1' href='staff_crimes.php?action=newcrimegroup'>Create New Crime Group</a></li>
<li> <a class='link1' href='staff_crimes.php?action=editcrimegroup'>Edit Crime Group</a></li>
<li> <a class='link1' href='staff_crimes.php?action=delcrimegroup'>Delete Crime Group</a></li>
<li> <a class='link1' href='staff_crimes.php?action=reorder'>Reorder Crime Groups</a></li>
</div><div><img src='images/navi_btm.gif' alt='' /></div></div>


<div class='navipart'><div class='navitop'><p><h2><strong>   Battle Tent</strong></h2></p></div><div class='navi_mid'><ul>  
<li> <a class='link1' href='staff_battletent.php?action=addbot'>Add Challenge Bot</a></li>
<li> <a class='link1' href='staff_battletent.php?action=editbot'>Edit Challenge Bot</a></li>
<li> <a class='link1' href='staff_battletent.php?action=delbot'>Remove Challenge Bot</a></li>
</div><div><img src='images/navi_btm.gif' alt='' /></div></div>

<div class='navipart'><div class='navitop'><p><h2><strong>   Battle Ladder</strong></h2></p></div><div class='navi_mid'><ul>  
<li> <a class='link1' href='staff_ladder.php?act=CreateLadder'>Create Ladder</a></li>
<li> <a class='link1' href='staff_ladder.php?act=DeleteLadder'>Remove Ladder</a></li>
</div><div><img src='images/navi_btm.gif' alt='' /></div></div>

";
}
print "
<div class='navipart'><div class='navitop'><p><h2><strong>   Punishments</strong></h2></p></div><div class='navi_mid'><ul>  
<li> <a class='link1' href='staff_punit.php?action=mailform'>Mail Ban User</a></li>
<li> <a class='link1' href='staff_punit.php?action=unmailform'>Un-Mailban User</a></li>
<li> <a class='link1' href='staff_punit.php?action=forumform'>Forum Ban User</a></li>
<li> <a class='link1' href='staff_punit.php?action=unforumform'>Un-Forumban User</a></li>
<li> <a class='link1' href='staff_punit.php?action=fedform'>Jail User</a></li>
<li> <a class='link1' href='staff_punit.php?action=fedeform'>Edit Fedjail Sentence</a></li>
<li> <a class='link1' href='staff_punit.php?action=unfedform'>Unjail User</a></li>
<li> <a class='link1' href='staff_punit.php?action=ipform'>Ip Search</a></li>
</div><div><img src='images/navi_btm.gif' alt='' /></div></div>
";
if($ir['user_level']==2)
{
print "
<div class='navipart'><div class='navitop'><p><h2><strong>   Specials</strong></h2></p></div><div class='navi_mid'><ul>  
<li> <a class='link1' href='staff_special.php?action=editnews'>Edit Newspaper</a></li>
<li> <a class='link1' href='staff_special.php?action=massmailer'>Mass mailer</a></li>
<li> <a class='link1' href='staff_special.php?action=stafflist'>Staff List</a></li>
<li> <a class='link1' href='staff_special.php?action=userlevelform'>Adjust User Level</a></li>
<li> <a class='link1' href='staff_special.php?action=givedpform'>Give User Donator Pack</a></li>";
}

print "
<div class='navipart'><div class='navitop'><p><h2><strong>   Staffs Online</strong></h2></p></div><div class='navi_mid'><ul>  
";
$q=$db->query("SELECT * FROM users WHERE laston>(unix_timestamp()-15*60) AND user_level>1 ORDER BY userid ASC");
while($r=$db->fetch_row($q))
{
$la=time()-$r['laston'];
$unit="secs";
if($la >= 60)
{
$la=(int) ($la/60);
$unit="mins";
}
if($la >= 60)
{
$la=(int) ($la/60);
$unit="hours";
if($la >= 24)
{
$la=(int) ($la/24);
$unit="days";
}
}
print "<br>          <a href='viewuser.php?u={$r['userid']}'>{$r['username']}</a> ($la $unit)<br>
</div><div><img src='images/navi_btm.gif' alt='' /></div></div>";
}

?>
Edited by H4x0r666
Link to comment
Share on other sites

staff.php

 

<?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.
|**************************************************************************************************/
include "sglobals.php";
//This contains general thingies
switch($_GET['action'])
{
case 'basicset': basicsettings(); break;
case 'announce': announcements(); break;
case 'cmanual': cronmanual(); break; 
default: index(); break;
}
function basicsettings()
{
global $db,$ir,$c,$h,$userid,$set;
if($ir['user_level'] != 2)
{
die("403");
}
if($_POST['submit'])
{
unset($_POST['submit']);
foreach($_POST as $k => $v)
{
$db->query("UPDATE `settings` SET conf_value='$v' WHERE conf_name='$k'");
}
print "Settings updated!<br />
<a href='staff.php?action=basicset'>Back</a>";
stafflog_add("Updated the basic game settings");
}
else
{
print "

<div class='generalinfo_txt'>
<div><img src='images/info_left.jpg' alt='' /></div>
<div class='info_mid'><h2 style='padding-top:10px;'> Basic Settings</h2></div>
<div><img src='images/info_right.jpg' alt='' /></div> </div>
<div class='generalinfo_simple'><br> <br><br>



<br>
<form action='staff.php?action=basicset' method='post'>
<input type='hidden' name='submit' value='1' />
Game Name: <input type='text' STYLE='color: black;  background-color: white;' name='game_name' value='{$set['game_name']}' /><br />
Game Owner: <input type='text' STYLE='color: black;  background-color: white;' name='game_owner' value='{$set['game_owner']}' /><br />
Game Description:<br />
<textarea rows='15' cols='55' name='game_description'>{$set['game_description']}</textarea><br />
Paypal Address: <input type='text' STYLE='color: black;  background-color: white;' name='paypal' value='{$set['paypal']}' /><br />
Gym/Crimes Validation: <select name='validate_on' type='dropdown'>";
$opt=array(
"1" => "On",
"0" => "Off"
);
foreach($opt as $k => $v)
{
if($k == $set['validate_on'])
{
print "<option value='{$k}' selected='selected'>{$v}</option>";
}
else
{
print "<option value='{$k}'>{$v}</option>";
}
}
print "</select><br />
Validation Period: <select name='validate_period' type='dropdown'>";
$opt=array(
"5" => "Every 5 Minutes",
"15" => "Every 15 Minutes",
"60" => "Every Hour",
"login" => "Every Login"
);
foreach($opt as $k => $v)
{
if($k == $set['validate_period'])
{
print "<option value='{$k}' selected='selected'>{$v}</option>";
}
else
{
print "<option value='{$k}'>{$v}</option>";
}
}
print "</select><br />
Registration CAPTCHA: <select name='regcap_on' type='dropdown'>";
$opt=array(
"1" => "On",
"0" => "Off"
);
foreach($opt as $k => $v)
{
if($k == $set['regcap_on'])
{
print "<option value='{$k}' selected='selected'>{$v}</option>";
}
else
{
print "<option value='{$k}'>{$v}</option>";
}
}
print "</select><br />
Send Crystals: <select name='sendcrys_on' type='dropdown'>";
$opt=array(
"1" => "On",
"0" => "Off"
);
foreach($opt as $k => $v)
{
if($k == $set['sendcrys_on'])
{
print "<option value='{$k}' selected='selected'>{$v}</option>";
}
else
{
print "<option value='{$k}'>{$v}</option>";
}
}
print "</select><br />
Bank Xfers: <select name='sendbank_on' type='dropdown'>";
$opt=array(
"1" => "On",
"0" => "Off"
);
foreach($opt as $k => $v)
{
if($k == $set['sendbank_on'])
{
print "<option value='{$k}' selected='selected'>{$v}</option>";
}
else
{
print "<option value='{$k}'>{$v}</option>";
}
}
print "</select><br />
Energy Refill Price (crystals): <input type='text' STYLE='color: black;  background-color: white;' name='ct_refillprice' value='{$set['ct_refillprice']}' /><br />
IQ per crystal: <input type='text' STYLE='color: black;  background-color: white;' name='ct_iqpercrys' value='{$set['ct_iqpercrys']}' /><br />
Money per crystal: <input type='text' STYLE='color: black;  background-color: white;' name='ct_moneypercrys' value='{$set['ct_moneypercrys']}' /><br />
Will Potion Item: ".item_dropdown($c, "willp_item", $set['willp_item'])."<br />
<input type='submit' STYLE='color: black;  background-color: white;' value='Update Settings' /></form></div><div><img src='images/generalinfo_btm.jpg' alt='' /></div><br></div></div></div></div></div>";
}
}
function announcements()
{
global $db,$ir,$c,$h,$userid,$set;
if($ir['user_level'] != 2)
{
die("403");
}
if($_POST['text'])
{
$db->query("INSERT INTO announcements VALUES('{$_POST['text']}', unix_timestamp())");
$db->query("UPDATE users SET new_announcements=new_announcements+1");
print "Announcement added!<br />
> <a href='staff.php'>Back</a>";
stafflog_add("Added a new announcement");
}
else
{
print "

<div class='generalinfo_txt'>
<div><img src='images/info_left.jpg' alt='' /></div>
<div class='info_mid'><h2 style='padding-top:10px;'> Adding an announcement...</h2></div>
<div><img src='images/info_right.jpg' alt='' /></div> </div>
<div class='generalinfo_simple'><br> <br><br>

Please try to make sure the announcement is concise and covers everything you want it to.<form action='staff.php?action=announce' method='post'>
Announcement text:<br />
<textarea name='text' rows='10' cols='60'></textarea><br />
<input type='submit' STYLE='color: black;  background-color: white;' value='Add Announcement' /></form></div><div><img src='images/generalinfo_btm.jpg' alt='' /></div><br></div></div></div></div></div>";
}
}


function cronmanual()
{
global $db,$ir,$c,$h,$userid,$set;
if($ir['user_level'] != 2)
{
die("403");
}
print "



<div class='generalinfo_txt'>
<div><img src='images/info_left.jpg' alt='' /></div>
<div class='info_mid'><h2 style='padding-top:10px;'> Manual Cron Jobs</h2></div>
<div><img src='images/info_right.jpg' alt='' /></div> </div>
<div class='generalinfo_simple'><br> <br><br>


<style type='text/css'>
.style1 {
   color: #FF0000;
}
.style2 {
   text-decoration: underline;
   color: #008000;
}
</style>

You can manually run cron jobs from here.<br><br>
<span class='style1'><b>Warning</b></span>: Use only for testing. Statistics are updated 
every time you run a corresponding cron instead of time limit.
<br><br>
<a href='cron_srun_minute.php'>Run 1 Minute Cron Jobs</a> [ Updates Jail and 
Hospital Time ]<br><br>
<a href='cron_srun_five.php'>Run 5 Minute Cron Jobs</a> [ Updates User 
Statistics ]<br><br>

<a href='cron_srun_hour.php'>Run Hourly Cron Jobs</a>  [ Updates Hourly 
Cron ]<br><br>

<a href='cron_srun_day.php'>Run Daily Cron Jobs</a>  [ Updates Daily Cron ]<br><br>


<a href='battle_cron.php'>Run Battle Ladder Cron</a>  [ Updates Battle Ladder Cron Job ] <br><br> 

Run Battle Ladder cron , every week , month or so ! <br>Running this job credit the table leader with cash and points and also reset the battle ladder for new tournament !

</div><div><img src='images/generalinfo_btm.jpg' alt='' /></div><br></div></div></div></div></div>


";
}



function index()
{
global $db,$ir,$c,$h,$userid,$set, $_CONFIG;
$pv=phpversion();
$mv=$db->fetch_single($db->query("SELECT VERSION()"));
$dv=$_CONFIG['driver'];
if($ir['user_level']==2)
{
$versionno=2101;
$version="2.1.01";
print "

<div class='generalinfo_txt'>
<div><img src='images/info_left.jpg' alt='' /></div>
<div class='info_mid'><h2 style='padding-top:10px;'> Game Engine Information</h2></div>
<div><img src='images/info_right.jpg' alt='' /></div> </div>
<div class='generalinfo_simple'><br> <br><br>



<table width='75%' cellspacing='1' class='table'>
<tr>
<th>PHP Version:</th>
<td>$pv</td>
</tr>
<tr>
<th>MySQL Version:</th>
<td>$mv</td>
</tr>
<tr>
<th>MySQL Driver:</th>
<td>$dv</td>
</tr>
<tr>
<th>Ravan's MMORPG Script  </th>
<td>2.1.01 (Build: 2101)</td>
</tr>
</table></div><div><img src='images/generalinfo_btm.jpg' alt='' /></div><br></div></div></div></div></div>


<div class='generalinfo_txt'>
<div><img src='images/info_left.jpg' alt='' /></div>
<div class='info_mid'><h2 style='padding-top:10px;'> Last 10 Staff Actions</h2></div>
<div><img src='images/info_right.jpg' alt='' /></div> </div>
<div class='generalinfo_simple'><br> <br><br>     



<table width='90%' cellspacing='1' class='table'>
<tr>
<th>Staff</th>
<th>Action</th>
<th>Time</th>
<th>IP</th>
</tr>";
$q=$db->query("SELECT s.*, u.* FROM stafflog AS s LEFT JOIN users AS u ON s.user=u.userid ORDER BY s.time DESC LIMIT 10");
while($r=$db->fetch_row($q))
{
print "<tr><td>{$r['username']} [{$r['user']}]</td> <td>{$r['action']}</td> <td>".date('F j Y g:i:s a', $r['time'])."</td> <td>{$r['ip']}</td></tr>";
}
print "</table></div><div><img src='images/generalinfo_btm.jpg' alt='' /></div><br></div></div></div></div></div>";
}
print "   

<div class='generalinfo_txt'>
<div><img src='images/info_left.jpg' alt='' /></div>
<div class='info_mid'><h2 style='padding-top:10px;'> Staff Notepad</h2></div>
<div><img src='images/info_right.jpg' alt='' /></div> </div>
<div class='generalinfo_simple'><br> <br><br>";
if($_POST['pad'])
{
$db->query("UPDATE settings SET conf_value='{$_POST['pad']}' WHERE conf_name='staff_pad'");
$set['staff_pad']=stripslashes($_POST['pad']);
print "<b>Staff Notepad Updated!</b><hr />";
}
print "<form action='staff.php' method='post'>
<textarea rows='10' cols='60' name='pad'>".htmlspecialchars($set['staff_pad'])."</textarea><br />
<input type='submit' STYLE='color: black;  background-color: white;' value='Update Notepad' /></form></div><div><img src='images/generalinfo_btm.jpg' alt='' /></div><br></div></div></div></div></div>";
}
$h->endpage();
?>

 

there comes more xD

Link to comment
Share on other sites

install.php

 

<?php
session_start();
ob_start(); 
function valid_email($email) {
// First, we check that there's one @ symbol, and that the lengths are right
if (!ereg("^[^@]{1,64}@[^@]{1,255}$", $email)) {
// Email invalid because wrong number of characters in one section, or wrong number of @ symbols.
return false;
}
// Split it into sections to make life easier
$email_array = explode("@", $email);
$local_array = explode(".", $email_array[0]);
for ($i = 0; $i < sizeof($local_array); $i++) {
if (!ereg("^(([A-Za-z0-9!#$%&'*+/=?^_`{|}~-][A-Za-z0-9!#$%&'*+/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$", $local_array[$i])) {
return false;
}
}  
if (!ereg("^\[?[0-9\.]+\]?$", $email_array[1])) { // Check if domain is IP. If not, it should be valid domain name
$domain_array = explode(".", $email_array[1]);
if (sizeof($domain_array) < 2) {
return false; // Not enough parts to domain
}
for ($i = 0; $i < sizeof($domain_array); $i++) {
if (!ereg("^(([A-Za-z0-9][A-Za-z0-9-]{0,61}[A-Za-z0-9])|([A-Za-z0-9]+))$", $domain_array[$i])) {
return false;
}
}
}
return true;
}  
?>





<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title> Ravan Scripts - Mafia Game Installer v2.1 </title>
<meta name="keywords" content="RPG, Online Games, Online Mafia Game" />
<meta name="description" content=" Ravan Scripts - Mafia Game Installer v2.1 " />
<meta name="author" content="Ravan Scripts " />
<meta name="copyright" content="Copyright Ravan Scripts " />
<link rel="SHORTCUT ICON" href="favicon.ico" />
<link rel="stylesheet" href="css/stylenew.css" type="text/css" />
<link rel='stylesheet' href='css/lightbox.css' type='text/css' media='screen' />

</head>
<body>
<div id="pagecontainer">
<!-- Header Part Starts -->
<div class="headerpart">
<div ></div>
<div class="toplist">

</div>
</div>
<!--<script language="JavaScript" type="text/javascript">
function countd(){
var wesinurodz= new Date("10/15/2009 13:30:00");
var wesinnow = new Date();
var wesinile = wesinurodz.getTime() - wesinnow.getTime();
var nday = Math.floor(wesinile / 86400000);
if(nday<=0){nday=0;}
var nhor = Math.floor((wesinile-nday*86400000)/3600000);
if(nhor<=0){nhor=0;}
var nmin = Math.floor((wesinile-nday*86400000-nhor*3600000)/60000);
if(nmin<=0){nmin=0;}
var nsec = Math.floor((wesinile-nday*86400000-nhor*3600000-nmin*60000)/1000);
if(nsec<=0){nsec=0;}
var ttttt = nday+' days '+nhor+' hours '+nmin+' minutes '+nsec+' seconds';
document.getElementById('countdown').innerHTML = ttttt;  
}
setInterval("countd()",200);
</script>
-->



<script type="text/javascript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_nbGroup(event, grpName) { //v6.0
var i,img,nbArr,args=MM_nbGroup.arguments;
if (event == "init" && args.length > 2) {
if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
nbArr[nbArr.length] = img;
for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = args[i+1];
nbArr[nbArr.length] = img;
} }
} else if (event == "over") {
document.MM_nbOver = nbArr = new Array();
for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
nbArr[nbArr.length] = img;
}
} else if (event == "out" ) {
for (i=0; i < document.MM_nbOver.length; i++) {
img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
} else if (event == "down") {
nbArr = document[grpName];
if (nbArr)
for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
document[grpName] = nbArr = new Array();
for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
nbArr[nbArr.length] = img;
} }
}
//-->
</script>




<!-- //Header Part End -->        
<!-- Flash Part Starts -->


<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="1000" height="260" title="Ravan Scripts">
<param name="movie" value="images/mafia.swf" />
<param name="quality" value="high" />
<param name="wmode" value="Transparent" />
<embed src="images/mafia.swf" quality="high"  wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1000" height="260"></embed>
</object>
</div>
<!-- //Falsh Part End -->
<script language="JavaScript">       
<!--                                
function getCookieVal (offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}
function SetCookie (name,value,expires,path,domain,secure) {
document.cookie = name + "=" + escape (value) +
((expires) ? "; expires=" + expires.toGMTString() : "") +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
((secure) ? "; secure" : "");
}
function DeleteCookie (name,path,domain) {
if (GetCookie(name)) {
document.cookie = name + "=" +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
"; expires=Thu, 01-Jan-70 00:00:01 GMT";
}
}
// -->
</script>
<script language="JavaScript">
var usr;
var pw;
var sv;
function getme()
{
usr = document.login.username;
pw = document.login.password;
sv = document.login.save;
if (GetCookie('player') != null)
{
usr.value = GetCookie('username')
pw.value = GetCookie('password')
if (GetCookie('save') == 'true')
{
sv[0].checked = true;
}
}
}
function saveme()
{
if (usr.value.length != 0 && pw.value.length != 0)
{
if (sv[0].checked)
{
expdate = new Date();
expdate.setTime(expdate.getTime()+(365 * 24 * 60 * 60 * 1000));
SetCookie('username', usr.value, expdate);
SetCookie('password', pw.value, expdate);
SetCookie('save', 'true', expdate);
}
if (sv[1].checked)
{
DeleteCookie('username');
DeleteCookie('password');
DeleteCookie('save');
}
}
else
{
alert('You must enter a username/password.');
return false;
}
}
</script>
<style type="text/css">
<!--
-->
</style></head>
<body onload="getme();">
<center> 

<div class='generalinfo_txt'>
<div><img src='images/info_left.jpg' alt='' /></div>
<div class='info_mid'><h2 style='padding-top:10px;'> Installer</h2></div>
<div><img src='images/info_right.jpg' alt='' /></div> </div>
<div class='generalinfo_simple'><br> <br><br>   

</script>
<style type="text/css">
<!-- 

a:visited,a:active,a:hover,a:link { color: red;text-decoration: underline; font-weight: bold; }
table,tr,td { font-family:helvetica, arial, geneva, sans-serif;font-size: 12px; }
img { border:none; }
textarea { font-family:helvetica, arial, geneva, sans-serif;font-size:12px;color: black; }
.table2 {
}

.center {
width:932px;
background-color:#FFFFFF;
vertical-align:top;
text-align:center;
}
.table {
background-color:#000000;
}
.table3 {
background-color:#000000;
}
.table td {
background-image: url("images/generalinfo_mid.jpg");
height:22px;
}
.table3 td {
background-color:#CCCCCC;
}
td .alt {
background-color:#EEEEEE;
height:22px;
}
td .h {
background-image:white;
background-repeat:repeat-x;
font-weight: bold;
background-color: #D6D6D6;
}
.table th {
background-image:white;
background-repeat:repeat-x;
font-weight: bold;
background-color: #121212;
}
-->
</style></head>
<body onload="getme();">



<!-- Begin Main Content -->
<?php
switch($_GET['code'])
{
case "install":
install(); 
break;
case "config":
config();
break;
default:
diagnostics();
break;
}
function menuprint($highlight)
{
$items=array(
'diag' => '1. Diagnostics',
'input' => '2. Configuration',
'sql' => '3. Installation & Extras',
);
$c=0;
print "<hr />";
foreach($items as $k => $v)
{
$c++;
if($c > 1) { print " >> "; }
if($k==$highlight)
{
print "<font color='green'>{$v}</font>";
}
else
{
print "<font color='gray'>{$v}</font>";
}
}
print "<hr />";
}
function diagnostics()
{
menuprint("diag");
if (version_compare(phpversion(), '4.1.2') < 0)
{
$pv="<font color='red'>Failed</font>";
$pvf=0;
}
else
{
$pv="<font color='green'>OK</font>";
$pvf=1;
}
if(is_writable('./'))
{
$wv="<font color='green'>OK</font>";
$wvf=1;
}
else
{
$wv="<font color='red'>Failed</font>";
$wvf=0;
}
if(function_exists('mysql_connect') || function_exists('mysqli_connect'))
{
$dv="<font color='green'>OK</font>";
$dvf=1;
}
else
{
$dv="<font color='red'>Failed</font>";
$dvf=0;
}
if(str_replace('install.php','',$_SERVER['SCRIPT_NAME']) == "/")
{
$av=" <font color='green'>OK</font> ";
$avf=1;
}
else
{
$av="<font color='red'>Failed</font>";
$avf=0;
}
print "

<br/>
<h3>Basic Diagnostic Results:</h3>  
<table width='100%' class='table' cellspacing='1'> 

<tr>
<td>PHP version >= 4.1.2</td>
<td>{$pv}</td>
</tr>
<tr>
<td>Game folder writable</td>
<td>{$wv}</td>
</tr>
<tr>
<td>MySQL support in PHP present</td>
<td>{$dv}</td>
</tr>
<tr>
<td>Game installed at root level of domain or subdomain</td>
<td>{$av}</td>
</tr>
</table>";
if($pvf+$wvf+$dvf+$avf < 4)
{
print "<font color='red'>One of the basic diagnostics failed, so Setup cannot continue. Please fix the ones that failed and try again.</font><hr />";
}
else
{
print "<br/><a href='install.php?code=config'><b> Next Step</b></a>";
}
}
function config()
{
menuprint("input");
print "
<br/><h3>Configuration:</h3><br/>
<center>
<form action='install.php?code=install' method='post'>
<table width='75%' class='table' cellspacing='1'>
<tr>
<th colspan='2'>Database Config</th>
</tr>
<tr>
<td align='center'>MySQL Driver</td>
<td><select name='driver' type='dropdown'>";
if(function_exists('mysql_connect')) { print "<option value='mysql'>MySQL Standard</option>"; }
if(function_exists('mysqli_connect')) { print "<option value='mysql'>MySQLi Enhanced</option>"; }
print "</select></td>
</tr>
<tr>
<td align='center'>Hostname<br />
<small>This is usually localhost</small></td>
<td><input type='text' name='hostname' value='localhost' /></td>
</tr>
<tr>
<td align='center'>Username<br />
<small>The user must be able to use the database</small></td>
<td><input type='text' name='username' value='' /></td>
</tr>
<tr>
<td align='center'>Password</td>
<td><input type='text' name='password' value='' /></td>
</tr>
<tr>
<td align='center'>Database Name<br />
<small>The database should not have any other software using it.</small></td>
<td><input type='text' name='database' value='' /></td>
</tr>
<tr>
<th colspan='2'>Game Config</th>
</tr>
<tr>
<td align='center'>Game Name</td>
<td><input type='text' name='game_name' /></td>
</tr>
<tr>
<td align='center'>Game Owner<br />
<small>This can be your nick, real name, or a company</small></td>
<td><input type='text' name='game_owner' /></td>
</tr>
<tr>
<td align='center'>Game Description<br />
<small>This is shown on the login page.</small></td>
<td><textarea rows='6' cols='40' name='game_description'></textarea></td>
</tr>
<tr>
<td align='center'>PayPal Address<br />
<small>This is where the payments for game DPs go. Must be at least Premier.</small></td>
<td><input type='text' name='paypal' /></td>
</tr>
<tr>
<th colspan='2'>Admin User</th>
</tr>
<tr>
<td align='center'>Username</td>
<td><input type='text' name='a_username' /></td>
</tr>
<tr>
<td align='center'>Password</td>
<td><input type='password' name='a_password' /></td>
</tr>
<tr>
<td align='center'>Confirm Password</td>
<td><input type='password' name='a_cpassword' /></td>
</tr>
<tr>
<td align='center'>E-Mail</td>
<td><input type='text' name='a_email' /></td>
</tr>
<tr>
<td align='center'>  Gender </td> 
<td><select name='a_gender' type='dropdown'>
<option value='Male'>Male</option>
if<option value='Female'>Female</option>
</select></td>
</tr>
<tr>
<td colspan='2' align='center'><input type='submit' value='Install' /></td>
</tr>
</table></form></center>";
}
function install()
{
menuprint("sql");
if($_POST['a_password'] != $_POST['a_cpassword'])
{
print "The admin passwords did not match.";
}
else if(!valid_email($_POST['a_email']))
{
print("<br/>Sorry, the email used for the admin user is invalid. <br/> <a href='install.php?code=config'>Back</a>  ");
}
else if(!valid_email($_POST['paypal']))
{
print("Sorry, the email used for the PayPal is invalid.<br/> <a href='install.php?code=config'>Back</a>");
}
else if(strlen($_POST['a_username']) < 4)
{
die("Sorry, the admin username is too short.<br/> <a href='install.php?code=config'>Back</a>");
}
else
{
print "Write Config...<br>";
$code=md5(rand(1,100000000000));
if(file_exists("config.php")) { unlink("config.php"); }
$f=fopen("config.php", "w");
fwrite($f, "<?php
\$_CONFIG = array(
'hostname' => '{$_POST['hostname']}',
'username' => '{$_POST['username']}',
'password' => '{$_POST['password']}',
'database' => '{$_POST['database']}',
'persistent' => 0,
'driver' => '{$_POST['driver']}',
'code' => '{$code}'
);
?>");
fclose($f);
print "Config written.<br>
Attempting DB connection<br>";
define('MONO_ON', 1);
require "class/class_db_{$_POST['driver']}.php";
$db=new database;
$db->configure($_POST['hostname'],
$_POST['username'],
$_POST['password'],
$_POST['database'],
0);
$db->connect();
$c=$db->connection_id;
print "Connection Successful.<br>
Writing Main MySQL data.<br>";
$fo=fopen("dbdata.sql","r");
$query="";
$lines=explode("\n",fread($fo,1024768));
fclose($fo);
foreach($lines as $line)
{
if(!(strpos($line,"--") === 0) && trim($line) != "") //check for commented lines or blankies
{
$query.=$line;
if(!(strpos($line,";") === FALSE))
{
$db->query($query);
$query="";
}
}
}
print "Main MySQL data was written.<br />
Now write Extra MySQL data.<br />";
$username=$_POST['a_username'];
$IP = $_SERVER['REMOTE_ADDR'];
$IP=addslashes($IP);
$IP=mysql_real_escape_string($IP);
$IP=strip_tags($IP);
$db->query("INSERT INTO users (username, display_pic, login_name, userpass, level, money, crystals, donatordays, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney, lastip, lastip_signup) VALUES( '{$username}', 'http://{$_SERVER['HTTP_HOST']}/images/avatar.gif', '{$username}', md5('{$_POST['a_password']}'), 1, 100, 0, 0, 2, 12, 12, 100, 100, 5, 5, 100, 100, 1, '{$_POST['a_gender']}', unix_timestamp(), '{$_POST['a_email']}', -1, '$IP', '$IP')");
$i=$db->insert_id();
$db->query("INSERT INTO userstats VALUES($i, 10, 10, 10, 10, 10, 5)");
$db->query("INSERT INTO settings VALUES(NULL, 'game_name', '{$_POST['game_name']}')");
$db->query("INSERT INTO settings VALUES(NULL, 'game_owner', '{$_POST['game_owner']}')");
$db->query("INSERT INTO settings VALUES(NULL, 'paypal', '{$_POST['paypal']}')");
$db->query("INSERT INTO settings VALUES(NULL, 'game_description', '{$_POST['game_description']}')");
$path=$_SERVER['HTTP_HOST'];
print "

<style type='text/css'>
.style1 {
color: #008000;
font-weight: bold;
}
</style>


<span class='style1'>Installation Complete!</span><hr />  <br/>
<center><strong><font color='red'>Warning:For Security Issues Please Delete the install.php file from script folder.</a> </font></strong></center><br>
<center><strong><font color='#0000FF'><a href='login.php'>Click here to Login ..</a> </font></strong></center> <br/> <hr />
<u>Cron Info<br><br>Note: <br><br></u>Time based things will work only if the 
cron jobs has properly set up .<br><br>Time based things depends upon cron-jobs 
such as recovery time , jail function etc ,energy refill etc .<br><br />
<pre>
*/5 * * * * curl http://$path/cron_run_five.php<br />
* * * * * curl http://$path/cron_run_minute.php<br />
0 * * * * curl http://$path/cron_run_hour.php<br />
0 0 * * * curl http://$path/cron_run_day.php</pre>

";
}
}
?>
</td>
</tr>
<tr>
<td colspan="3">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>

</tr>
</table>
</td>
</tr>
</table> </div><div><img src='images/generalinfo_btm.jpg' alt='' /></div><br></div></div></div></div></div>
</body>
</html>

 

footer.php

 

<?php

 print "

<!--  Do Not Remove Powered By Ravan Scripts without permission .

However, if you would like to use the script without the powered by links you may do so by purchasing a Copyright removal license for a very low fee.   -->

</table> <br>     <br> <br> <br> <br> <br> 
<table width='982' border='0' align='center' cellpadding='0' cellspacing='0'>

   <div id='footerpart'>
            <div id='pagecontainer'>

               <div class='ifooter'>


                   <br><br><br> <center>  Copyright © 2010 {$_SERVER['HTTP_HOST']}, All Rights Reserved</center>  <br>


                  <center> Powered By Ravans <a href=http://ravan.info/_catalog/php_scripts/_mmorpg_game_script_v_1.2>Online Mafia Script</a>   </center>  <br>  <br> 
                   <br>    <br>   <br>  

                    <center> <h3> Current Server Time: " .date ('F j, Y')."    ".date('g:i:s a'). " </h3> </center>  

                   </div>


               </div>




</table>
</body>
</html>

</html>

";

?>

 

and the last one..

license.php

 

<?php

if(!file_exists("config.php"))
{
die("Configuration file not found !");
}

if(!file_exists("footer.php"))
{
die("Footer file not found !");
}

if(!file_exists("lfooter.php"))
{
die("Footer file not found !");
}

require "config.php";

?>

 

good luck with it :)

incase these decoded files will be deleted.. feel free to pm me for an download link or such thing.. :)

Edited by H4x0r666
Link to comment
Share on other sites

PHP is freely used, mccodes is not a register business or it would be on bbb.org, however just because there is no patent on their codes does not mean it is copyrighted, copyright does not necessary need to be done through registration. But the thing is php can't be copyright fully only an idea that is used using php such as layout and coding techniques, one change in an engine by the owner who bought the engine, can own the engine and have the copyright rather it was bought or taken illegally. I learned this through the law office I worked for. And this is the main reason why you do not hear of mccodes suing the millions of games that is using the somewhat remake of their engine, once the coding is change it no longer belongs to mccodes point blank.

Link to comment
Share on other sites

Since when PHP code doesn't have copyrights? As soon as you write a code, whatever language do you use, you own the copyright for it. Changing a bit of a work done by somebody else will not make it your work. If it was the case you could take windows, change the name (it already change a bit right?) and start to sell it as yours... nope sorry doesn't work.

The fact it is a scripting language or not makes NO DIFFERENCE either. Now about the fact that McCode appears as being a company of some sort change little to nothing about the fact the authors of the script are the owner of that script.

For what McCode owners can do or not, this is a different story. First of all lawyers are far from being cheap, and trying to sue somebody is not always as easy as you may think at first, specially if you need to do it in another country as where you live. Also, suing somebody more or less unknown behind "Ravan" may lead to nothing as normally you sue to get money back... you can't send the other person to jail. Which means if the sued one has no money, then... you will get nothing out of this.

I really wonder why every now and then a subject like that starts on this forum. Ravan is selling illegal software, it's a fact. It's a fact also that CB and Dabs can do little to nothing against it... beside working on a new version and try to avoid to give away to all the new version as well...

Link to comment
Share on other sites

If it was the case you could take windows, change the name (it already change a bit right?) and start to sell it as yours... nope sorry doesn't work.

ehm yes it does.. if i bought the window first xD then its absolute mine , but not made by me.. unless i change so much on it.. that you wouldnt recognize it.. so your not fully 100% right with that.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...