Location: PHPKode > projects > Twisty Forum > twisty-forum/forum/log.php
<?php 
session_start();
include('coords.inc.php');

ini_set('arg_separator.output','&amp;'); 
ini_set('url_rewriter.tags','get=fakeentry'); 
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Twisty Forum - Connexion</title>
<link rel="StyleSheet" type="text/css" href="index.css" />
</head>
<body>
<?php
include ('haut.inc');

$nom=$_POST['nom'];
$pass=$_POST['pass'];
$nom=strtolower($nom);
$pass=strtolower($pass);
$nom=trim($nom);
$pass=trim($pass);

$verif=mysql_query("select id, pass from fusers where nom='$nom'");
$verif3=mysql_num_rows($verif);
if($verif3==0){
echo '<div style="text-align:center;clear:left"><h3>Vous n\'êtes pas enregistré. Merci de faire le nécessaire.</h3></div>';
echo '<script type="text/javascript">location.href="record.php"</script>'."\n";
}
else{
$verif2=mysql_fetch_array($verif);
if($verif2[1]!=$pass){
echo '<div style="text-align:center;clear:left"><h3>Le mot de passe saisi est incorrect. Merci de corriger.</h3></div>';
echo '<script type="text/javascript">location.href="index.php"</script>'."\n";}
else{
echo '<div style="text-align:center;clear:left"><h3>';
echo 'Vous êtes maintenant connecté.</h3></div>';
echo '<script type="text/javascript">location.href="index.php"</script>'."\n";
if(!empty($nom)){
$_SESSION['nom']=$nom;};
};};
?>

<p style="margin-top:50px;color:white;clear:left">
<a class="liensite" href="http://javatwist.imingo.net">© Javatwist 2002</a> - JavaTwisting people
</p>
</body>
</html>
Return current item: Twisty Forum