Quote:(04-21-2012, 08:35 PM)Frooxius Wrote: [To see links please register here]
Also there's no reason to put code in curly brackets if you don't have more than one statement. It could be rewritten as this:
Actually there are good reasons to use curly brackets, even if you have only one statement.
People tend to forget them, when they add new statements and do something like this, wondering why it doesn't work:
Hidden Content
You must
[To see links please register here]
or
[To see links please register here]
to view this content.
Or people do something like this, also wondering why that doesn't work:
Hidden Content
You must
[To see links please register here]
or
[To see links please register here]
to view this content.
@KillerOfCode, NERO: A hardcoded plaintext password is useless. Usually you use a cryptographic hash function for the password the user put in and compare the hash value with a saved one. This way you have no plaintext saved anywhere.