Jump to content
MakeWebGames

webster2001

Members
  • Posts

    98
  • Joined

  • Last visited

Everything posted by webster2001

  1. Re: My authenticate.php does not work! help?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!??!? Try it your self the game is called bloodycity.sitesfree.com. register with your name as test1 and any password. Then log on m8 You can see the problems.
  2. Re: Register But i have now changed the code so it shows somthing different. This is what it shows. Access denied for user 'root'@'localhost' (using password: YES)
  3. authenticate I go on log in and then on the next page when its loaded it shows the code up on screen. try it the game is called bloodycity.sitesfree.com register with name as test an any pass then log in
  4. My authenticate.php does not work! help me please some1?1?!? When i put the code in and log on when it goes to authenticate it shows the code... I had to take the code off. Can someboy help me or give me a code that wont do that?
  5. My authenticate.php does not work i need help on i tplease reply in this forum!or email me at [email protected]
  6. Re: Authenticate.php SQL Error help i have got exactly the same problem but it comes up showing the code i have put in. Anybody help? :|
  7. It just shows the code when i try and log on to authenticate.php it shows this: $v) { $_POST[$k]=addslashes($v); } foreach($_GET as $k => $v) { $_GET[$k]=addslashes($v); } } include "config.php"; global $_CONFIG; define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; $set=array(); $settq=$db->query("SELECT * FROM settings"); while($r=$db->fetch_row($settq)) { $set[$r['conf_name']]=$r['conf_value']; } if ($_POST['username'] == "" || $_POST['password'] == "") { die(" {$set['game_name']} Error You did not fill in the login form! > Back"); } $uq=$db->query("SELECT userid FROM users WHERE login_name='{$_POST['username']}' AND `userpass`=md5('{$_POST['password']}')"); if ($db->num_rows($uq)==0) { die(" {$set['game_name']} Error Invalid username or password! > Back"); } else { $_SESSION['loggedin']=1; $mem=$db->fetch_row($uq); $_SESSION['userid']=$mem['userid']; $IP = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; $db->query("UPDATE users SET lastip_login='$IP',last_login=unix_timestamp() WHERE userid={$mem['userid']}"); if($set['validate_period'] == "login" && $set['validate_on']) { $db->query("UPDATE users SET verified=0 WHERE userid={$mem['userid']}"); } header("Location: loggedin.php"); } ?>
×
×
  • Create New...