Analog Posted April 6, 2008 Share Posted April 6, 2008 This mod enhances the courses for McCodes Version 2. It adds the ability to require users to meet certain requirements in order to take the course. Follow the steps below to add this mod to your game. BACKUP FILES BEFORE MAKING ANY CHANGES Mod suggested by DeathCookie of Amendment Mafia 1. Run the following query You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. 2a. Open staff_courses.php (looking at function addcourse()) 2b. Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. 2c. After add: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. 2d. Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. 2e. Replace with: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. 2f. Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. 2g. After add: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. 2h. Save staff_courses.php 3a. Open education.php 3b Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. 3c After add: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. 3d. Save education.php 4. Upload files to server Quote Link to comment Share on other sites More sharing options...
Analog Posted April 6, 2008 Author Share Posted April 6, 2008 Re: Enhance course for V2 Continued...Mod for editing courses BACKUP FILES BEFORE MAKING ANY CHANGES Open staff_courses.php (looking at function editcourse()) Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. After add: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Replace with: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. After add: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Save and upload Quote Link to comment Share on other sites More sharing options...
zbirc3 Posted April 6, 2008 Share Posted April 6, 2008 Re: Enhance course for V2 THANKS SO MUCH FOR CODING IT! ^_^ Quote Link to comment Share on other sites More sharing options...
Richard Posted April 6, 2008 Share Posted April 6, 2008 Re: Enhance course for V2 Nice mod :) Quote Link to comment Share on other sites More sharing options...
Godhand Posted April 6, 2008 Share Posted April 6, 2008 Re: Enhance course for V2 Well done... It almost looked like you screwed up the tests... but I read on a little bit further. Not too shabby. Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted April 6, 2008 Share Posted April 6, 2008 Re: Enhance course for V2 Good one TF... A perfect demonstration of how a little time spent learning the system and the application of a little work can produce a nice simple extension Quote Link to comment Share on other sites More sharing options...
KDawg08 Posted April 6, 2008 Share Posted April 6, 2008 Re: Enhance course for V2 Very Nicely Coded... I even see a few sql injection security piece in the code... (I'm still learnin) But while learning i'm learning alot more about security right now than anything as i feel it is most necessary in game coding let alone php in general. Quote Link to comment Share on other sites More sharing options...
Analog Posted April 6, 2008 Author Share Posted April 6, 2008 Re: Enhance course for V2 Good one TF... A perfect demonstration of how a little time spent learning the system and the application of a little work can produce a nice simple extension Yes, that project of mine is helping quite a bit. That and slowing down to look things over helps extremely. Very Nicely Coded... I even see a few sql injection security piece in the code... (I'm still learnin) But while learning i'm learning alot more about security right now than anything as i feel it is most necessary in game coding let alone php in general. Yes there is a bit, but really sql injection is as much of a problem is this case as its a staff function that was added. Had it been something accessible but players I would have checked for injections in a different manner. Quote Link to comment Share on other sites More sharing options...
cruz Posted April 6, 2008 Share Posted April 6, 2008 Re: Enhance course for V2 Great idea and good work, Thanks. Quote Link to comment Share on other sites More sharing options...
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.