Jump to content
MakeWebGames

Recommended Posts

Posted

Hi

It seems that whenever anyone sends any game money or crystals to another member, it classes them as a MULTI in the cash and crystal logs.

I have the basic V2 sendcrys.php and the sendcash.php and I am not sure how to fix this problem.

Some help would be great. Thanks. :)

Posted

I remember inserting this into my header to stop admin hacks:

 

$ip = mysql_real_escape_string($ip);

if ( isset($_SESSION['HTTP_USER_AGENT']) ) {

if ( $_SESSION['HTTP_USER_AGENT'] != sha1( $_SERVER['HTTP_USER_AGENT'] )) {

session_unset();

session_destroy();

header("Location: login.php");

}

} else {

$_SESSION['HTTP_USER_AGENT'] = sha1( $_SERVER['HTTP_USER_AGENT'] );

}

Posted

But if I replace that with the code you said, will not prevent the admin hack?

Also I did it but still saying MULTI in the logs and I retested by sending accs money.

However it's because I followed a security tutorial on MWG.

Although in my authenticate.php I have this:

 

$_SESSION['userid']=$mem['userid'];

$IP = ($_SERVER['HTTP_X_FORWARDED_FOR'])

? $_SERVER['HTTP_X_FORWARDED_FOR']

: $_SERVER['REMOTE_ADDR'];

Posted

In my register I also have:

 

$IP = ($_SERVER['HTTP_X_FORWARDED_FOR'])

? $_SERVER['HTTP_X_FORWARDED_FOR']

: $_SERVER['REMOTE_ADDR'];

twice..

 

so may the problem because of this i have in my register authenticate.php ?

Posted
my staff protected file is only used on staff.php so it doesn't interfere with the logs + it doesnt have no $ip inside the file as it's only some html.

It may not be the send files could be the logs asking if $senderid is the same as $senderid or something silly like that we all do it now and then ;)

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