Jump to content
MakeWebGames

Recommended Posts

Posted

I believe this is a gym I secured and threw together for someone back in the day, or maybe just something I did for fun. I don't remember anymore haha. It's nothing special, a little more aesthetically pleasing and secure to my knowledge. Thought I'd release it for the hell of it, it's just sitting around.

Thanks to Lilith and dominion for testing it out for me on their test servers, to make sure it wasn't bugged :)

 

You're unable to view this code.

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

Posted

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.

 

I'll try to remember to test this after I sleep, nice work!

Posted

the only difference is -

You're unable to view this code.

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

will include it even if globals is in a file of its own. e.g. includes/globals.php

no need to change it here...

@bluedevil23 - You're welcome, and nice mod. :)

Posted

I've always done it, I was talking to someone a while back on the 'Chat', they said something about it adding security, since then i've always declared my globals that way.

If it makes no difference then continue require_once'ing it, either will work.

Posted
I've always done it, I was talking to someone a while back on the 'Chat', they said something about it adding security, since then i've always declared my globals that way.

If it makes no difference then continue require_once'ing it, either will work.

That made me lol. Sounds a little like you know what your on about, then the last line f'd it up..

Require and include does have a difference, Include gives you a friendly warning, then carries on with its job like nothing has happened. Require however, stops the script, gives you a nice message, and wait's 'till you do something about it :)

Posted
That made me lol. Sounds a little like you know what your on about, then the last line f'd it up..

Require and include does have a difference, Include gives you a friendly warning, then carries on with its job like nothing has happened. Require however, stops the script, gives you a nice message, and wait's 'till you do something about it :)

I wasn't referring to include or require, just:

You're unable to view this code.

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

Posted

That is no different from

You're unable to view this code.

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

Just gets the direct path which the previous does anyway, so really it isn't useful in this situation yet people (myself included) use it.

Posted

new gym mate :)

also can i ask a question? whats the difference between...

You're unable to view this code.

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

and

You're unable to view this code.

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

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