From b1058a8cda5c9a8618acddf9d5244c7268f740df Mon Sep 17 00:00:00 2001 From: "alexandre.aboulin" Date: Mon, 11 Apr 2022 09:50:12 +0200 Subject: [PATCH] =?UTF-8?q?d=C3=A9but=20php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- casino.php | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ index.php | 31 +++++++++++++++++++++ login.css | 5 ++++ login.php | 20 ++++++++++++++ master.css | 17 ++++++++++++ 5 files changed, 153 insertions(+) create mode 100644 casino.php create mode 100644 index.php create mode 100644 login.css create mode 100644 login.php 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 a461ef1..903c592 100644 --- a/master.css +++ b/master.css @@ -5,6 +5,7 @@ body{ font-family: "Fredorka", sans-serif; margin: 0; color: white; + overflow: hidden; } .rouleau { @@ -127,6 +128,10 @@ body{ background-color: white; width: 40vw; } +.button-rules{ + margin: auto; + display: block; +} .button{ border: none; padding: 0.6em 0.8em; @@ -152,3 +157,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; +} \ No newline at end of file