yaz94 Posted May 30, 2013 Posted May 30, 2013 Hey MWG! I thought I would make another modification for you guys! Secured bank + Bank robbery - This mod is basically a bank robbery were users can rob the bank, they have a 1 in 4 chance. If they do succeed in the bank robbery everyone can not use the bank for the time that you choose (you must do this by putting the correct code into the cron file of your *own* choice) SQL You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. bank.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Call this file - robbank.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. cron minute, five minutes or hour cron file - You can put this at the bottom of the file just before ?> You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Hope your enjoy this modification, I have not tested it yet. Please update me with any problems or bugs I will fix them as soon as possible! Quote
vlad Posted June 18, 2013 Posted June 18, 2013 (edited) SQL You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Just a heads up, that wont work, try this - You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Not much of a difference but its the only error I got. Edited June 18, 2013 by vlad Quote
Raven1992 Posted June 18, 2013 Posted June 18, 2013 Hey MWG! I thought I would make another modification for you guys! Secured bank + Bank robbery - This mod is basically a bank robbery were users can rob the bank, they have a 1 in 4 chance. If they do succeed in the bank robbery everyone can not use the bank for the time that you choose (you must do this by putting the correct code into the cron file of your *own* choice) SQL You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. bank.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Call this file - robbank.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. cron minute, five minutes or hour cron file - You can put this at the bottom of the file just before ?> You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Hope your enjoy this modification, I have not tested it yet. Please update me with any problems or bugs I will fix them as soon as possible! um for bank.php do we add it undereth or replace it with this code for bank.php Quote
Alan Posted June 18, 2013 Posted June 18, 2013 You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. I would have a closer look at that if I were you. Not only is it open to race condition errors (difficult to reproduce, but nevertheless something that can be considered a violation of basic security principals), but more importantly - suspect. Don't you mean... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. (Assertions about the value of $userid left as an exercise for the reader). Quote
Magictallguy Posted June 20, 2013 Posted June 20, 2013 bank.php Note: This code has been tested for parse errors only. I have not tested its functionality. The code is provided as is with no warranty or guarantee that it will work You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
SRB Posted June 22, 2013 Posted June 22, 2013 Without a database... not tested. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. 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.