CASINO BELLAGIO
"admin", "user"=>"yahou")
//euh ça marche pas ici à régler après
$user_scores = array("admin"=>100, "user"=>200)
if(isset($_POST["username"]) and isset($_POST["password"])){
if(in_array($_POST["username"], $users) and $_POST["password"] == $users[$_POST["username"]]){
$_GET['score'] = $user_scores[$_POST["username"]];
$return_path = "casino.php";
}
else{
$_GET['error'] = 1;
$return_path = "login.php";
}
}
else{
$return_path = "login.php";
}
include($return_path);
?>