Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* Game Engine: CrimeRPG v1.00
- * Engine Creator: NonStopCoding
- * Engine Programmer: NonStopCoding
- * Personal Contact Email: [email protected]
- * Layout Designer: DopeboyGFX AKA (Tyson Cruz)
- * Contact Email: [email protected]
- * Report Bugs / Glitches: [email protected]
- * Contact Sales Team: [email protected]
- * Contact Support: [email protected]
- * CrimeRPG is © nonstopcoding.com 2014
- */
- include(__DIR__.'/connect.php');
- # This function will clean the $_POST Data. #
- function mres($str) {
- return mysql_real_escape_string($str);
- }
- # Function End #
- if(isset($_POST['submit'])) {
- $username = mres(trim($_POST['username']));
- $password = md5(mres($_POST['password']));
- $res = mysql_query("SELECT * FROM `members` WHERE `username` = ".$_POST['username']);
- if(mysql_num_rows($res) == 1) {
- $error = "There is already a user with that username pick another.";
- }
- $row = mysql_fetch_array($res);
- if($row['password'] == $_POST['password']) {
- } else {
- $error = "You're username/password combo was wrong try again.";
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment