Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

what does this file do?

Initiate Mage
Joined
Feb 12, 2017
Messages
1
Reaction score
0
hello there so i have a script and i was just looking around it and i countered this file :
can someone explain what does it do? its kinda suspicious
thanks
PHP:
<?phpinclude('GameEngine/Protection.php');$gvresult = 2;include('GameEngine/Database.php');echo 'GVResult:\n';$server = isset($_POST['server'])?$_POST['server']:'';$username = isset($_POST['username'])?$_POST['username']:'';$gold = isset($_POST['gold'])?intval($_POST['gold']):'';$ref = isset($_POST['ref'])?$_POST['ref']:'';if(strlen($server)>0 && strlen($username)>0 && $gold>0 && strlen($ref)>0){	$sig = SECSIG;	$myref = sha1($username.':sig'.$sig.':'.$server.'server:'.$gold);	if($myref==$ref){		$userData = $database->getUser($username);		if (!empty($userData)) {			$database->modifyUser($userData['id'],'gold',$userData['gold']+$gold,0);			$database->modifyUser($userData['id'],'transferedgold',$userData['transferedgold']+$gold,0);			$gvresult = 21;		} else {			$gvresult = 5;		}	} else {		$gvresult = 4;	}} else {	$gvresult = 3;}echo 'resultcode='.$gvresult.'\n';?>
 
Newbie Spellweaver
Joined
Sep 2, 2012
Messages
19
Reaction score
1
It has to do something with referral system, because the code
PHP:
modifyUser($userData['id'],'gold',$userData['gold']+$gold,0);
; clearly updates users gold. Not 100% sure though.
 
Upvote 0
Back
Top