Mafia-Club Posted March 1, 2009 Posted March 1, 2009 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 Quote
Eternal Posted March 1, 2009 Posted March 1, 2009 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 .. Quote
Mafia-Club Posted March 1, 2009 Author Posted March 1, 2009 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 Quote
Eternal Posted March 1, 2009 Posted March 1, 2009 Re: Daily Donators Reward [Mccode v2] lawl i know you didn't xD But you keep on with your work Quote
Karlos Posted March 1, 2009 Posted March 1, 2009 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. Quote
Mafia-Club Posted March 1, 2009 Author Posted March 1, 2009 Re: Daily Donators Reward [Mccode v2] i swear down my life and familys life i did make this 100% :| Quote
yaz123 Posted March 1, 2009 Posted March 1, 2009 Re: Daily Donators Reward [Mccode v2] Nice +1 Secured reward.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Dave Posted March 1, 2009 Posted March 1, 2009 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.... Quote
Karlos Posted March 1, 2009 Posted March 1, 2009 Re: Daily Donators Reward [Mccode v2] as for the rand() in there try mt_rand() Quote
gurpreet Posted March 1, 2009 Posted March 1, 2009 Re: Daily Donators Reward [Mccode v2] You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Joel Posted March 1, 2009 Posted March 1, 2009 Re: Daily Donators Reward [Mccode v2] I let him recode it... Quote
AlabamaHit Posted March 1, 2009 Posted March 1, 2009 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"); Quote
Magictallguy Posted March 1, 2009 Posted March 1, 2009 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.. Quote
Magictallguy Posted March 1, 2009 Posted March 1, 2009 Re: Daily Donators Reward [Mccode v2] Properly secured You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
John99 Posted March 1, 2009 Posted March 1, 2009 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 Quote
gurpreet Posted March 2, 2009 Posted March 2, 2009 Re: Daily Donators Reward [Mccode v2] i swear down my life and familys life i did make this 100% :| And Joel says he let him RECODE it..Not making it 100%? Quote
Assault Posted April 17, 2009 Posted April 17, 2009 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 Quote
Galahad Posted June 22, 2009 Posted June 22, 2009 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. Quote
eido Posted June 24, 2009 Posted June 24, 2009 Re: Daily Donators Reward [Mccode v2] Wouldn't there be a cron for this :-P Quote
Galahad Posted June 24, 2009 Posted June 24, 2009 Re: Daily Donators Reward [Mccode v2] Wouldn't there be a cron for this :-P Add this in day cron You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
MaddDogg49 Posted July 5, 2010 Posted July 5, 2010 if($ir['rewarddone'] > 1 ) needs to be 0.... 1 isnt greater then 1... if($ir['rewarddone'] > 0 ) <<< that should work Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.