devonbnice Posted February 10, 2011 Posted February 10, 2011 Hey everyone, Here i have yet another free mod. This is a investment bank, Users can invest their money for a selected amount of time, and receive a fixed interest rate. at the end of there investment time they will then be able to withdrawl their money. Simple eh? This mod includes: 1 PHP file 2 columns added to the users table Lets get started. First make a file called investbank.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Second, runs these SQL's [mysql] ALTER TABLE users ADD bankCASH BIGINT(11) NOT NULL DEFAULT 0 ALTER TABLE users ADD bankTIME INT(11) NOT NULL DEFAULT -1 [/mysql] Last, add to cron_day.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And thats all! Now for some pictures! http://www.imageurlhost.com/images/wr4ebdiiufwkwbt3nv7t.jpg http://www.imageurlhost.com/images/8bqqpmqwfi21r0w3dgo5.jpg http://www.imageurlhost.com/images/rt4i9r36c557u9oxiyvv.jpg http://www.imageurlhost.com/images/kmq8zyenug1ck5iusrlw.jpg http://www.imageurlhost.com/images/zprv916x103cy3fxx5vx.jpg If there are any problems please post them below! Thanks, Devon. Quote
Maniak Posted February 10, 2011 Posted February 10, 2011 It's a nice mod; but, imo, it'd have been made better with timestamps. Quote
rulerofzu Posted February 10, 2011 Posted February 10, 2011 Maniak.....make your own with it timestamped then? Its ok. Lack of security means I could firebug this all the way to the bank 8o and....more fields in the users table? really?? Cmon the users table by default has too much crapola in it. BIGINT(11) really? -9223372036854775808 to 9223372036854775807 Your players are really going to have that much cash? Quote
secret_life Posted February 10, 2011 Posted February 10, 2011 just use You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
rulerofzu Posted February 10, 2011 Posted February 10, 2011 Really so hows that going to work then? Ok the biggest input value is 10 digits. Ill change that from 1,000,000,000 to 9,999,999,999 its still 10 digits but im getting around the max which should be allowed. Quote
chicka Posted February 10, 2011 Posted February 10, 2011 is it just me or is there a security issue with this?? Looks to me like the $_POST variables need securing. Quote
secret_life Posted February 10, 2011 Posted February 10, 2011 is true but just change it to You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and set it to max 999,999,999 i dont think peaople cry for 1$ :) Quote
rulerofzu Posted February 10, 2011 Posted February 10, 2011 Thats just a lame and lazy attempt at a solution Quote
secret_life Posted February 10, 2011 Posted February 10, 2011 lol im not a coder i just give a solution if is lazy give your pro solution for help all to learn ;) Quote
rulerofzu Posted February 10, 2011 Posted February 10, 2011 The OP can contact me if he doesnt know how to I would rather him try and fix it first. You can tell your not a coder :P Quote
Maniak Posted February 10, 2011 Posted February 10, 2011 Zu, the game that I (well Me and my Partner) have on the web wouldn't be right with this Mod added in (hence why I haven't coded one); I was just stating that I think it would work better with timestamps. Quote
devonbnice Posted February 10, 2011 Author Posted February 10, 2011 Im aware it is in need of securing. Which i dont know how to do.. :( Quote
chicka Posted February 10, 2011 Posted February 10, 2011 Im aware it is in need of securing. Which i dont know how to do.. :( Securing your scripts is not hard to do nor is it hard to find out.. There is a pretty good tutorial someone posted on here which is pretty good. Search is a great feature. Google is an other great feature which can also help you learn about securing your scripts. Quote
devonbnice Posted February 11, 2011 Author Posted February 11, 2011 Im aware it is in need of securing. Which i dont know how to do.. :( Securing your scripts is not hard to do nor is it hard to find out.. There is a pretty good tutorial someone posted on here which is pretty good. Search is a great feature. Google is an other great feature which can also help you learn about securing your scripts. Well, considering this is free im not to worried about it, and talking to me like im a retarded isn't appreciated. Quote
Djkanna Posted February 11, 2011 Posted February 11, 2011 Change (Line 20 *unedited*): You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. To You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Just a visual enhancement, after all it isn't days if it's only one day. Place this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Before (Line 70 *unedited*): You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
chicka Posted February 11, 2011 Posted February 11, 2011 Quoted from "chicka" Quoted from "devonbnice" Im aware it is in need of securing. Which i dont know how to do.. :( Securing your scripts is not hard to do nor is it hard to find out.. There is a pretty good tutorial someone posted on here which is pretty good. Search is a great feature. Google is an other great feature which can also help you learn about securing your scripts. Well, considering this is free im not to worried about it, and talking to me like im a retarded isn't appreciated. Im aware it is in need of securing. Which i dont know how to do.. :( Securing your scripts is not hard to do nor is it hard to find out.. There is a pretty good tutorial someone posted on here which is pretty good. Search is a great feature. Google is an other great feature which can also help you learn about securing your scripts. Well, considering this is free im not to worried about it, and talking to me like im a retarded isn't appreciated. I was having a pretty crappy day yesterday and my have come off like an ass. My apologies 8) . Quote
Eurogangster Posted February 12, 2011 Posted February 12, 2011 Great Mod but you need to add a function if a players want to stop the investment to have an option Stop Invest and then receive his money back without interest Quote
Oo-Savage-oO Posted February 24, 2011 Posted February 24, 2011 Great Mod but you need to add a function if a players want to stop the investment to have an option Stop Invest and then receive his money back without interest Thats no use. When a player invests his muny he types of makes a contract that he wont be able to touch this money until investment time ends. Quote
devonbnice Posted February 27, 2011 Author Posted February 27, 2011 Great Mod but you need to add a function if a players want to stop the investment to have an option Stop Invest and then receive his money back without interest Thats no use. When a player invests his muny he types of makes a contract that he wont be able to touch this money until investment time ends. Yes, Your making a contract with the bank to hold your money and gain interest on it. If you invest in real life you cant just take your money out when ever your want. You have to choose an investment plan. Quote
Oo-Savage-oO Posted March 4, 2011 Posted March 4, 2011 Here it is with timestamps, not tested though it should work it also has a little edit You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
SundayForever Posted March 5, 2011 Posted March 5, 2011 Thanks a lot! I have learned a lot! Buy WoW Gold WoW Gold Cheap WoW Gold 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.