Jump to content
MakeWebGames

sendcash.php / Same IP Stop


AlabamaHit

Recommended Posts

Re: [mccodes v2] sendcash.php / Same IP Stop

Look's good!

Change line 60

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

To this

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

There was an extra ) there.

Link to comment
Share on other sites

Re: [mccodes v2] sendcash.php / Same IP Stop

You replace your sendcash.php with this i believe.

I tried the mod...it works. There is just one problem...when I was sending, it said I had $32 when I had $32,634. So i played around with it and found that putting number_format($ir['money'] in a variable and then displaying it will fix the problem. So here is the new code with Rioters and my changes to fix the money displaying problem and extra bracket problem that Rioter found.

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Link to comment
Share on other sites

Re: [mccodes v2] sendcash.php / Same IP Stop

Small Update. This should fix that problem that Rioter found and the problem ishmell is having with number format.

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

At Strats. No, this is just the sendcash.php You will have to add to your sendbank.php and such. This was made mostly as an example. THis is snippet of code youwill have to add.

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

To know where it goes just look at the page i made. :wink:

Link to comment
Share on other sites

Re: [mccodes v2] sendcash.php / Same IP Stop

$_POST['money'] = abs(@intval($_POST['money']));

$do_1 = sprintf("UPDATE users SET money = money - %u WHERE userid = %u",abs(@intval($_POST['money'])),($userid));

Why are you double securing?

Link to comment
Share on other sites

Re: [mccodes v2] sendcash.php / Same IP Stop

 

$_POST['money'] = abs(@intval($_POST['money']));

$do_1 = sprintf("UPDATE users SET money = money - %u WHERE userid = %u",abs(@intval($_POST['money'])),($userid));

Why are you double securing?

Are you serious?

 

Thanks, I will have a try at this.

I think it's a really good idea, people wont bother making so many Ip's if they cant send money ect to and from them.

 

+1

Glad it helps :)

Link to comment
Share on other sites

Re: [mccodes v2] sendcash.php / Same IP Stop

this is a deterrant and will stop a large amount of the multi's... i have similar on my games...

however it will not stop the experienced cheating player...

simple login through a proxy do dailies on multi's send to main account...

what i have done as well as this is put a level restriction on being able to send crystals and money...

 

another problem i have come across which is harder to prevent the cheats is the gang vault...

eg. i make my gang go on proxy make a load of multi's join same gang as main... donate dailies to vault... main account takes them out... much harder to detect...

anyone with a good idea how to limit this happening would be appreciated...

only idea i have had is to run a check on gang members ip's when they join gang and do a if num row > 1 print sorry a member of this gang has your ip you cannot join...

at least they would need to use various proxies to over come this issue...

any better ideas please reply and i will have a go at coding it and posting back here...

Link to comment
Share on other sites

Re: [mccodes v2] sendcash.php / Same IP Stop

 

$get_check = sprintf("SELECT lastip FROM users WHERE userid = %u",abs(@intval($_GET['ID'])));

$do_check = $db->query($get_check);

$ch = $db->fetch_row($do_check);

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

{

echo "Sorry, sending on same IP is not allowed.";

echo "> Go Home";

}

O.o why

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

and

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

o.O

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Is just simpler^

Link to comment
Share on other sites

Re: [mccodes v2] sendcash.php / Same IP Stop

Sorry to say, but i think the above code fails. You are selecting a lastip from the users where the userid is your id, not resulting in the id of the other person.

I personally prefer this:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Link to comment
Share on other sites

Re: [mccodes v2] sendcash.php / Same IP Stop

 

Sorry to say, but i think the above code fails. You are selecting a lastip from the users where the userid is your id, not resulting in the id of the other person.

Please Test before you Doubt.

My code works 100%. I would not have posted other wise.

Link to comment
Share on other sites

  • 4 years later...
Small Update. This should fix that problem that Rioter found and the problem ishmell is having with number format.

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

At Strats. No, this is just the sendcash.php You will have to add to your sendbank.php and such. This was made mostly as an example. THis is snippet of code youwill have to add.

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

To know where it goes just look at the page i made. :wink:

Will this work on send items too?

Link to comment
Share on other sites

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Staff log thing something deffo wrong Im on my phone atm sorry. And I started to learn coding 2 weeks ago.

the staff log is not a constant :p

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

please note that may not be the correct function and its un tested as I too am on my phone but you get the gyst

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