diff --git a/about.html b/about.html index 9630cf9..8ea7f7e 100755 --- a/about.html +++ b/about.html @@ -36,6 +36,8 @@

le pain dans seulement une couleurbleu

Fondé en 1987 par les frères Hernandez, notre établissement sert du pain bleu riche provenant d'agriculteurs artisanaux de diverses régions d'Amérique du Sud et d'Amérique centrale. Nous nous engageons à parcourir le monde, à trouver le meilleur pain bleu et à vous ramener ici dans notre boutique de pain bleue.

Nous vous garantissons que vous tomberez dans la convoitise avec nos mélanges décadents au moment où vous entrerez jusqu'à ce que vous ayez terminé votre dernière bouchée de pain bleu. Rejoignez-nous pour votre routine quotidienne, une sortie entre amis, ou tout simplement pour profiter d'un moment seul entre pains bleus.

+


Pour toute autre questions, vous pouvez rejoindre notre vendeur étoile Allain Dex au numéro suivant:

514-765-9295 Ext:1001 +

@@ -50,4 +52,4 @@ - \ No newline at end of file + diff --git a/api/client.php b/api/client.php index cba6f8a..c6994d9 100755 --- a/api/client.php +++ b/api/client.php @@ -1,38 +1,21 @@ - - - - - - Le pain bleu - - - - - - - - - - -

LE PAIN BLEUSEULEMENT BLEU  

- - '.$file.''; + } + } + closedir($handle); + } + $dog; + $cat; $user_sql = "SELECT user FROM users where user LIKE '". $dog ."'"; $pass_sql = "SELECT pass FROM users where user LIKE '". $dog ."'"; $rus = mysqli_query($conn, $user_sql); @@ -42,56 +25,82 @@ while($row = $rps->fetch_assoc()) { if ($cat == $row["pass"]) { + echo << + + + + Le pain bleu + + + + + + + + + + +

LE PAIN BLEUSEULEMENT BLEU  

+ +
+
+
+ +
+
+
+
+
+
+
+ Procédure utilisateur +

+

Fichiers:

+
    + $thelist +
+

+
+
+
+
+
+ + + + + + GFG; + } else { - echo $cat; - echo "_____ IN BETWEEN _____"; - echo $row["pass"]; + echo "YOU DONT BELONG HERE YOU BLUE BREAD EATER"; die("DENIED"); } } } else { - echo "no result :("; + echo "you shall not pass at this time, sorry :("; } - $conn->close(); - ?> -
-
-
-
-
- -
- '.$file.''; - } - } - closedir($handle); - } - ?> -

Fichiers:

-
-
-
-
-
-
- - - + $conn->close(); + + + ?> - \ No newline at end of file diff --git a/api/client_files/Pass.txt b/api/client_files/Pass.txt new file mode 100644 index 0000000..9296feb --- /dev/null +++ b/api/client_files/Pass.txt @@ -0,0 +1,4 @@ +admin:password123 +woof:miaw +ez:clap +slayer:rainingblood diff --git a/api/client_files/fds.txt b/api/client_files/fds.txt deleted file mode 100755 index e69de29..0000000 diff --git a/api/client_files/fdsa.txt b/api/client_files/fdsa.txt deleted file mode 100755 index e69de29..0000000 diff --git a/api/client_files/fdsfds.txt b/api/client_files/fdsfds.txt deleted file mode 100755 index e69de29..0000000 diff --git a/api/client_files/p0m.jpg.png.txt b/api/client_files/p0m.jpg.png.txt new file mode 100644 index 0000000..90624cb --- /dev/null +++ b/api/client_files/p0m.jpg.png.txt @@ -0,0 +1,4 @@ + +oof + +10/10 diff --git a/api/db.php b/api/db.php index aa48d3b..817f06a 100755 --- a/api/db.php +++ b/api/db.php @@ -1,11 +1,11 @@ connect_errno) { diff --git a/api/mmn.js b/api/mmn.js index f10d60d..3f73f23 100755 --- a/api/mmn.js +++ b/api/mmn.js @@ -1,5 +1,19 @@ var str = "Aucun pain bleu ici, malheureusement. keep looking tho, may find something."; console.log(str); +console.log(getCookie("user")); +console.log(getCookie("pass")); + +function redirect() { + if (getCookie("user") !== null && getCookie("pass") !== null) + { + console.log("Redirect oof"); + window.location = "./api/client.php"; + } + else + { + console.log("nope"); + } +} function chkLogin(woof, miaw) { $.post( "./api/yeet.php", { dog: woof, cat: miaw }, function(data) { @@ -15,4 +29,42 @@ function chkLogin(woof, miaw) { }); } +function getCookie(name) { + var value = "; " + document.cookie; + var parts = value.split("; " + name + "="); + if (parts.length == 2) return parts.pop().split(";").shift(); + else return null; +} + function setCookie(name, value, options = {}) { + + options = { + path: '/', + // add other defaults here if necessary + ...options + }; + + if (options.expires instanceof Date) { + options.expires = options.expires.toUTCString(); + } + + let updatedCookie = encodeURIComponent(name) + "=" + encodeURIComponent(value); + + for (let optionKey in options) { + updatedCookie += "; " + optionKey; + let optionValue = options[optionKey]; + if (optionValue !== true) { + updatedCookie += "=" + optionValue; + } + } + + document.cookie = updatedCookie; + } + + function deleteCookies(name) { + console.log("no more cookies"); + setCookie(name, "", { + 'max-age': -1 + }) + window.location = '../index.html'; + } \ No newline at end of file diff --git a/api/yeet.php b/api/yeet.php index ae88bf9..ed4dadf 100755 --- a/api/yeet.php +++ b/api/yeet.php @@ -54,4 +54,4 @@ return $ip; /// Source - https://www.codexworld.com/how-to/get-user-ip-address-php/ } -?> \ No newline at end of file +?> diff --git a/login.html b/login.html index aa52767..5c6a26a 100755 --- a/login.html +++ b/login.html @@ -11,14 +11,9 @@ + -