Jump to content
MakeWebGames

Recommended Posts

Posted

Hey This My Second Mod i've made i have tested it works but the only problem is securing it lol will look up some tutorials on securing Feel Free To Use :)

 

You're unable to view this code.

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

 

Create File reward.php(Name The file Any thing you want):

 

You're unable to view this code.

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

 

You're unable to view this code.

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

 

Enjoy Remeber This Is My Second Mod

Posted

Re: Daily Donators Reward [Mccode v2]

you really think this is your mod? maybe you should check the forum

I know you didn't do this killer :P

an edit maybe ..

Posted

Re: Daily Donators Reward [Mccode v2]

You think i never made this? well you can check my first mod Food Shop Mod and i did make this on my cpanel file Manager just was practicing ok

Posted

Re: Daily Donators Reward [Mccode v2]

 

lawl i know you didn't xD

But you keep on with your work

I know what he can and can't do.

This looks like his code.

Posted

Re: Daily Donators Reward [Mccode v2]

Yaz.... why secure this line like this?

$reward = sprintf("UPDATE users SET rewarddone = rewarddone + %u WHERE (userid = %u)", 1, $userid);

I'm 100% sure that no user can change there userid and they definitely cant change the number 1....

Posted

Re: Daily Donators Reward [Mccode v2]

someone should let everyone know

include (DIRNAME(__FILE__) ."/globals.php";

that does not add security. Its a personal prefrence of some people.

For example i use.

include_once ("globals.php");

Posted

Re: Daily Donators Reward [Mccode v2]

 

someone should let everyone know

include (DIRNAME(__FILE__) ."/globals.php";

that does not add security. Its a personal prefrence of some people.

For example i use.

include_once ("globals.php");

It's a more secure way to include the file, as it's a direct and definate path to the file..

Posted

Re: Daily Donators Reward [Mccode v2]

As for this

You're unable to view this code.

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

 

I would use include_once($_SERVER['DOCUMENT_ROOT'] . "globals.php");

i think thats right lol

  • 1 month later...
Posted

Re: Daily Donators Reward [Mccode v2]

For v1

 

You're unable to view this code.

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

 

but i am having the problem of it crediting even after the you click reward 3 times, you can just keep clicking it....

btw magic had a slight error in his code

v2

You're unable to view this code.

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

 

This part

You're unable to view this code.

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

 

was changed to this

You're unable to view this code.

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

 

i removed the ) at the end of the middle line it gave you an error

  • 2 months later...
Posted

Re: Daily Donators Reward [Mccode v2]

Magictallguy you used echo instead of die Im pretty sure this has to be it

You're unable to view this code.

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

  • 1 year later...

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