Jump to content
MakeWebGames

Recommended Posts

Posted

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

Posted

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

Guest Anonymous
Posted

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

Posted

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.

Posted

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.

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