BlueDevil23 Posted November 28, 2010 Posted November 28, 2010 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. Quote
Rasheed saeed Posted November 28, 2010 Posted November 28, 2010 Not bad at all mate. Nice to know your getting back into this(if you are) :) Quote
The Monk Posted November 28, 2010 Posted November 28, 2010 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! Quote
Jordan Palmer Posted November 28, 2010 Posted November 28, 2010 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! Explain what the point of this is Quote
Danny696 Posted November 28, 2010 Posted November 28, 2010 That made me laught. @The Mont: Why would h need to change that? Quote
Dominion Posted November 28, 2010 Posted November 28, 2010 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. :) Quote
The Monk Posted November 29, 2010 Posted November 29, 2010 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. Quote
BlueDevil23 Posted November 29, 2010 Author Posted November 29, 2010 It doesn't directly add security, just another way of calling the same file. It's more or less a preference thing :) Quote
sniko Posted November 29, 2010 Posted November 29, 2010 And is the Devil back? Hey Blue :) Cool addition, good use of the ternary's :) - i use them like that too :) -sniko Quote
Danny696 Posted November 29, 2010 Posted November 29, 2010 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 :) Quote
The Monk Posted November 30, 2010 Posted November 30, 2010 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. Quote
Djkanna Posted November 30, 2010 Posted November 30, 2010 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. Quote
Faz` Posted November 30, 2010 Posted November 30, 2010 Lol BD, this must be old. The days where you used to leave a line between each sentence :P Quote
Nicholas Posted December 1, 2010 Posted December 1, 2010 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. Quote
Dominion Posted December 2, 2010 Posted December 2, 2010 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. http://thedaneshproject.com/posts/what-does-dirname__file__-and-basenamedirname__file__-do/ Quote
Faz` Posted December 3, 2010 Posted December 3, 2010 Haha, Blue, I think I know who you threw it together for ;) Just found in my old files lmao :D 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.