Jump to content
MakeWebGames

Stopping IP Transfers


chaoswar4u

Recommended Posts

Some one posted this ages ago but its missing now. Here it is...

$m=mysql_query("SELECT * FROM users WHERE userid={$_POST['user']} LIMIT 1",$c);

$rm=mysql_fetch_array($m);

if($rm['lastip'] == $ir['lastip'])

{

Die("No sending to people on the same IP.");

}

 

Carnt seem to get this to work for V2. Even edited this as it is in V1 state at the moment. This is to be placed in send money.php for example. Any help would great. Many thx in advance for any replies.

Link to comment
Share on other sites

Re: Stopping IP Transfers

You didn't even fully convert it. This is how it's properly converted.

 

$m=db->query("SELECT * FROM users WHERE userid={$_POST['user']} LIMIT 1");
$rm=$db->fetch_row($m);
if($rm['ip'] == $ir['ip'])
{
Die("No sending to people on the same IP.");
}

 

And this doesn't work in v2 because I tried it before he even posted this on here.

Link to comment
Share on other sites

  • 5 months later...

Re: Stopping IP Transfers

For v2 this works. It works on mine 100% but you have to put it in all pages involving sending..example sendcash.php, sendcrystals.php..you get the idea.

 

$m=$db->query("SELECT * FROM users WHERE userid={$_GET['ID']} LIMIT 1",$c);
$rm=$db->fetch_row($m);
if($rm['lastip'] == $ir['lastip'])
{
print "No Sending money to people on same IP. Stop trying to cheat.

[url='index.php']> Back[/url]";
$h->endpage();
exit;
}
Link to comment
Share on other sites

Re: Stopping IP Transfers

 

For v2 this works. It works on mine 100% but you have to put it in all pages involving sending..example sendcash.php, sendcrystals.php..you get the idea.

 

$m=$db->query("SELECT * FROM users WHERE userid={$_GET['ID']} LIMIT 1",$c);
$rm=$db->fetch_row($m);
if($rm['lastip'] == $ir['lastip'])
{
print "No Sending money to people on same IP. Stop trying to cheat.

[url='index.php']> Back[/url]";
$h->endpage();
exit;
}

 

does this work mate

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