diff --git a/casino.php b/casino.php new file mode 100644 index 0000000..bb9c189 --- /dev/null +++ b/casino.php @@ -0,0 +1,80 @@ +Règles +
+ +
+
+ Banque : 1000 +
+ tirette + +
+
+
0
+
1
+
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
+
+
+
+
0
+
1
+
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
+
+
+
+
0
+
1
+
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
+
+ + +
+ Vous : +
+ + + HTML; +?> \ No newline at end of file diff --git a/index.php b/index.php new file mode 100644 index 0000000..0469f1e --- /dev/null +++ b/index.php @@ -0,0 +1,31 @@ + + + + + + Bellagio + + +

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); + ?> + + diff --git a/login.css b/login.css new file mode 100644 index 0000000..b48055a --- /dev/null +++ b/login.css @@ -0,0 +1,5 @@ +input{ + padding: 0.8em 0.6em; + border-radius: 20px; + background-color: red; +} \ No newline at end of file diff --git a/login.php b/login.php new file mode 100644 index 0000000..3afd061 --- /dev/null +++ b/login.php @@ -0,0 +1,20 @@ +Erreur: Votre mot de passe n'est pas correct

+ HTML;; + } + echo << +
+ + +
+
+ + +
+ + + HTML; +?> diff --git a/master.css b/master.css index d1c7d61..e36928d 100644 --- a/master.css +++ b/master.css @@ -6,6 +6,7 @@ body{ margin: 0; color: white; position: fixed; + overflow: hidden; } .rouleau { @@ -129,6 +130,10 @@ body{ background-color: white; width: 40vw; } +.button-rules{ + margin: auto; + display: block; +} .button{ border: none; position: absolute; @@ -157,3 +162,15 @@ body{ h1, p{ margin-top: 0; } + +.input{ + padding: 0.6em 0.8em; + border: 1px black solid; + border-radius: 10px; +} +#form{ + text-align: center; +} +.form-chunk{ + margin-bottom: 0.2em; +}