The Coder Posted June 20, 2012 Posted June 20, 2012 Hello all, I've recently been testing out a few things with V1 of Mccodes engine, and I want to completely change the index page for a member, I want to start off with something basic, how would you code a notepad for a member to save whatever content they wish to save? Thanks! :) Quote
Seker Posted June 20, 2012 Posted June 20, 2012 Take a look at the staffnotes on the viewuser page and tweak it to your needs. Though, as a general rule, notepads are advised against unless you know some security. They're a big danger for SQL injections. Quote
The Coder Posted June 20, 2012 Author Posted June 20, 2012 Thanks mate, stupid of me not knowing there is a such feature as staffnotes. :P And what do you mean by danger? I'm still learning, when I come across security, I'll look into these dangers. Thanks. :) Quote
Seker Posted June 20, 2012 Posted June 20, 2012 Thanks mate, stupid of me not knowing there is a such feature as staffnotes. :P And what do you mean by danger? I'm still learning, when I come across security, I'll look into these dangers. Thanks. :) http://php.net/manual/en/security.database.sql-injection.php Read up on injections. Basically, it means some asshole player alters the MYSQL query and changes something in your game. Could be anything from giving out millions of crystals to changing themselves to admins. Pretty much one of the biggest problems for all text-based games. Quote
rulerofzu Posted June 20, 2012 Posted June 20, 2012 Read up on mysqli and prepared statements would be better. Quote
The Coder Posted June 20, 2012 Author Posted June 20, 2012 Thanks mate, I see what you mean, this occurs in most successful mafia games. Thanks again bud. 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.