"; //Error message to be displayed in case of error (modified below depending on error) if ($_POST['login']) { if ($_POST['username'] == "") { $errormsg .= "
"; $error = 1; } else if ($_POST['password'] == "") { $errormsg .= "
"; $error = 1; } else if ($error == 0) { $query = $db->execute("select `id`, `username` from `players` where `username`=? and `password`=?", array($_POST['username'], sha1($_POST['password']))); if ($query->recordcount() == 0) { $errormsg .= "
"; $error = 1; } else { $player = $query->fetchrow(); $query = $db->execute("update `players` set `last_active`=? where `id`=?", array(time(), $player['id'])); $hash = sha1($player['id'] . $_SERVER['REMOTE_ADDR'] . $secret_key); $_SESSION['userid'] = $player['id']; $_SESSION['hash'] = $hash; header("Location: news.php"); } } } $errormsg .= ""; include("templates/header.php"); ?>
| Bem Vindo Ao Naruto Quest Versão 2.0 ! A participação no jogo Naruto Quest 2.0 é totalmente gratuita. Temos como meta fazer nosso papel de fãs da série e ajudar na divulgação gratuita e propagação do anime. Naruto Quest é um fã site e os direitos autorais desta obra estão reservados ao criador da série japonesa. |