Jump to content
MakeWebGames

[mccode] Simplify for V1 (and make it easier to use V2 mods)


Yuri_orlov

Recommended Posts

ok i got tired of having to add the garbage at the top of every file when i wanted to create a new one so i consolidated and made something im sure a few of you can use

 

create a file called standards.php:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

then to write a new page all you have to do is:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

obviously you need to put each page into the case statement and create a function for each type of transfer and universal things that you need to add to each page, but im sure by now you got the idea of what you can do with this.

Link to comment
Share on other sites

  • 3 months later...

Re: Simplify for V1 (and make it easier to use V2 mods)

I put

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

into a file called v1.php

I created another file called status.php

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Then just include v1.php in every file (or leave as it is..)

and include status.php in whichever files you want.

Or you could change

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

into

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

and include into the files you don't want your users to get into while in jail/hospital

A slightly longer way, but it works for me!

Link to comment
Share on other sites

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