CaptainQuack Posted September 3, 2015 Posted September 3, 2015 Thanks mate, worked wonders. You wouldn't mind explaining how it secures a site exactly, for all those who want to secure their game as well. It just creates a list of all the files on your game and restricts any outside access to them. Quite simple but really effective. Quote
IllegalPigeon Posted September 3, 2015 Posted September 3, 2015 It just creates a list of all the files on your game and restricts any outside access to them. Quite simple but really effective. Worked for me! Thanks, Quack. You're the best. People could learn a lot from you. Quote
-BRAIDZ- Posted September 3, 2015 Author Posted September 3, 2015 It just creates a list of all the files on your game and restricts any outside access to them. Quite simple but really effective. You forgot to mention the part where it deletes the public_html folder.. Haha, not falling for that buddy ;) Quote
IllegalPigeon Posted September 3, 2015 Posted September 3, 2015 You forgot to mention the part where it deletes the public_html folder.. Haha, not falling for that buddy ;) But...it doesn't delete the public_html folder. Where do you see public_html referenced there? Quote
CaptainQuack Posted September 3, 2015 Posted September 3, 2015 You forgot to mention the part where it deletes the public_html folder.. Haha, not falling for that buddy ;) Erm, at what point does that code mention 'public_html' - Wow, try and post something to protect your game and that's what I get? I've used this on other peoples sites without issue. Quote
-BRAIDZ- Posted September 3, 2015 Author Posted September 3, 2015 But...it doesn't delete the public_html folder. Where do you see public_html referenced there? http://php.net/manual/en/function.rmdir.php [MENTION=71662]CaptainQuack[/MENTION] Quote
IllegalPigeon Posted September 3, 2015 Posted September 3, 2015 http://php.net/manual/en/function.rmdir.php [MENTION=71662]CaptainQuack[/MENTION] So...where's the public_html reference? Quote
-BRAIDZ- Posted September 3, 2015 Author Posted September 3, 2015 So...where's the public_html reference? It just deletes the current directory of the file.. I tested it on one of my old sites ;) So nice try Quote
~Rob0t Posted September 3, 2015 Posted September 3, 2015 I tested it on one of my old sites ;) Â Quote
lucky3809 Posted September 3, 2015 Posted September 3, 2015 mres is for alpha characters only, not numeric, also PDO is a lot better to use as stated, you can learn it here http://php.net/manual/en/book.pdo.php And you should know better not to copy and paste codes just because someone post them on here, actually research each code if you do not know what it does. Quote
Coly010 Posted September 3, 2015 Posted September 3, 2015 It just deletes the current directory of the file.. I tested it on one of my old sites ;) So nice try It actually deletes more than just the current directory, it deletes every sub directory and file. "So nice try"? I think that was a very successful try.. you actually ran the code without knowing what it did... Quote
-BRAIDZ- Posted September 4, 2015 Author Posted September 4, 2015 It actually deletes more than just the current directory, it deletes every sub directory and file. "So nice try"? I think that was a very successful try.. you actually ran the code without knowing what it did... I knew what it did. And I ran it on my old site, that I wanted to delete everything off anyway Quote
TheMasterGeneral Posted September 4, 2015 Posted September 4, 2015 If I post this reply, I'll feel part of the conversation!! :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.