SERNY Sacha
3 years ago
20 changed files with 608 additions and 127 deletions
After Width: | Height: | Size: 33 KiB |
After Width: | Height: | Size: 56 KiB |
After Width: | Height: | Size: 430 KiB |
After Width: | Height: | Size: 20 KiB |
@ -0,0 +1,87 @@ |
|||||
|
<!DOCTYPE html> |
||||
|
<html lang="fr"> |
||||
|
|
||||
|
<head> |
||||
|
<title>PopOp</title> |
||||
|
<meta charset="UTF-8"> |
||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
||||
|
<link href="style/style_index.css" rel="stylesheet"> |
||||
|
<link href="style/style_fun.css" rel="stylesheet"> |
||||
|
<link href="style/style_main.css" rel="stylesheet"> |
||||
|
<link rel="icon" type="image/x-icon" href="_content/favicon-32x32.png"> |
||||
|
</head> |
||||
|
|
||||
|
<body> |
||||
|
<header> |
||||
|
<h1><a class="_title" href="home.html"><span class="word1">Pop</span><span class="word3">Op</span></a></h1> |
||||
|
<ul> |
||||
|
<li><a href="fun.html">Fun</a></li> |
||||
|
<li><a href="index.html">Musiques</a></li> |
||||
|
<li><a href="reading.html">Lectures</a></li> |
||||
|
</ul> |
||||
|
<div> |
||||
|
<a href="sign_in.php">Se connecter</a> |
||||
|
<a href="sign_up.php">S'inscrire</a> |
||||
|
</div> |
||||
|
</header> |
||||
|
<main> |
||||
|
<div class="star-wars"> |
||||
|
<div> |
||||
|
<marquee behavior="" direction="left"><img src="_content/42.png" alt=""><img src="_content/42.png" |
||||
|
alt=""><img src="_content/42.png" alt=""><img src="_content/42.png" alt=""><img |
||||
|
src="_content/42.png" alt=""><img src="_content/42.png" alt=""><img src="_content/42.png" |
||||
|
alt=""></marquee> |
||||
|
<p> |
||||
|
D'après https://simple.wikipedia.org/wiki/42_(answer) |
||||
|
<br><br> |
||||
|
42 is the "Answer to the Ultimate Question of Life, the |
||||
|
Universe, and Everything" in The |
||||
|
Hitchhiker's Guide to the Galaxy books. It was computed by Deep Thought, the second greatest |
||||
|
computer ever. The descendants of Deep Thought's creators are upset by the numeric nature of the |
||||
|
answer, not understanding what to do with it or what to tell the people who had commissioned the |
||||
|
7.5-million year project. |
||||
|
<br><br> |
||||
|
When asked to produce The Ultimate Question to go |
||||
|
with the answer "42", Deep Thought admits it |
||||
|
is |
||||
|
not capable of computing that itself, but that it can help to design an even more powerful |
||||
|
computer, |
||||
|
which can. This new computer will incorporate living beings into the "computational matrix" and |
||||
|
will |
||||
|
run for ten million years. It is the planet Earth. |
||||
|
</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="main-contents"> |
||||
|
<aside> |
||||
|
<h2>À propos...</h2> |
||||
|
<p>Voici un site très peu utile et pertinent afin de rendre un travail un minimum |
||||
|
complété. Voilà Voilà, <a href="https://minivoltrush.alwaysdata.net/signup.php" target="_blank"> |
||||
|
cliquez ici</a> pour découvrir l'envers du décor (ou pas). <br><br> |
||||
|
Le rhinopharyngitolaryngographologie et cyclopentanoperhydrophénanthrène met en avant la |
||||
|
contraventionnalisation anticonstitutionnelle mis en avant les apports en |
||||
|
aminométhylpyrimidinylhydroxyéthylméthylthiazolium.</p> |
||||
|
</aside> |
||||
|
<aside> |
||||
|
<h2>Fun Fact</h2> |
||||
|
<p>Je me suis souvenu qu'il fallait faire <a href="index.html" target="_blank">ce site</a> uniquement |
||||
|
Mardi 30 Novembre.</p> |
||||
|
<p>Faire un lien un minimum esthétique c'est long. -_-</p> |
||||
|
</aside> |
||||
|
<aside> |
||||
|
<h2>Image aléatoire</h2> |
||||
|
<p>Un site du nom de <a href="https://picsum.photos" target="_blank">picsum</a> affiche une image |
||||
|
aléatoire. Rien de |
||||
|
plus. |
||||
|
</p> |
||||
|
<img src="https://picsum.photos/400/240" alt="random-pic" height="240" width="400"> |
||||
|
</aside> |
||||
|
</div> |
||||
|
</main> |
||||
|
<footer> |
||||
|
<a href="#mentions-legales" target="_blank">Mentions légales + points d'amélioration.</a> <br> Mise en page par |
||||
|
SERNY Sacha. Données par <a href="https://www.wikipedia.org">Wikipedia</a> |
||||
|
</footer> |
||||
|
</body> |
||||
|
|
||||
|
</html> |
@ -1,43 +0,0 @@ |
|||||
<!-- Traitement PHP --> |
|
||||
<?php |
|
||||
|
|
||||
|
|
||||
|
|
||||
?> |
|
||||
<!DOCTYPE html> |
|
||||
<html lang="fr"> |
|
||||
|
|
||||
<head> |
|
||||
<title>Conenxion</title> |
|
||||
<meta charset="UTF-8"> |
|
||||
<link href="style/style_log.css" rel="stylesheet"> |
|
||||
<link rel="icon" type="image/x-icon" href="_content/favicon-32x32.png"> |
|
||||
</head> |
|
||||
|
|
||||
<body> |
|
||||
<div class="log-area"> |
|
||||
<p>Connecte-toi pour accéder à plus de foncitonnalités</p> |
|
||||
<form action="" method="POST"> |
|
||||
<div class="f_inputs"> |
|
||||
<div> |
|
||||
<label for="f_email">Adresse mail : </label><input type="email" id="f_email" maxlength="70" |
|
||||
placeholder="Adresse mail"> |
|
||||
</div> |
|
||||
<div> |
|
||||
<label for="f_password">Mot de passe : </label><input type="password" id="f_password" maxlength="40" |
|
||||
placeholder="Mot de passe"> |
|
||||
</div> |
|
||||
</div> |
|
||||
<div class="buttons"> |
|
||||
<div class="sign_up"> |
|
||||
<a href="sign_up.html">Pas de compte ?</a> |
|
||||
</div> |
|
||||
<div class="sign_in"> |
|
||||
<input type="submit" name="" value="Se connecter" id="submit"> |
|
||||
</div> |
|
||||
</div> |
|
||||
</form> |
|
||||
</div> |
|
||||
</body> |
|
||||
|
|
||||
</html> |
|
@ -0,0 +1,157 @@ |
|||||
|
<<<<<<< HEAD |
||||
|
<!-- Traitement PHP --> |
||||
|
<?php |
||||
|
|
||||
|
$servername = 'mysql-serny-nsi.alwaysdata.net'; |
||||
|
$username = 'serny-nsi'; |
||||
|
$mdp = 'ecole9090*'; |
||||
|
|
||||
|
$bdd = new PDO('mysql:host=mysql-serny-nsi.alwaysdata.net;dbname=serny-nsi_main', $username, $mdp); |
||||
|
|
||||
|
|
||||
|
if (isset($_POST['submit'])) { |
||||
|
$response ="here2"; |
||||
|
if (isset($_POST['f_email']) AND !empty($_POST['f_email']) AND isset($_POST['f_password']) AND !empty($_POST['f_password'])) { |
||||
|
$email = htmlspecialchars($_POST['f_email']); |
||||
|
$password = htmlspecialchars($_POST['f_password']); |
||||
|
$look = $bdd->prepare("SELECT * FROM membres WHERE mail = ?"); |
||||
|
$look->execute(array($email)); |
||||
|
$check = $look->fetch(); |
||||
|
var_dump($check['password']); |
||||
|
var_dump($password); |
||||
|
var_dump(password_verify($password, $check['password'])); |
||||
|
$response ="here"; |
||||
|
if ($check['mail'] != $email) { |
||||
|
$response = "Ce compte n'existe pas."; |
||||
|
} |
||||
|
else { |
||||
|
if (password_verify($password, $check['password'])) { |
||||
|
$response = "Vous êtes maintenant connecté."; |
||||
|
header('location: https://serny-nsi.alwaysdata.net'); |
||||
|
} else { |
||||
|
$response = "Le mot de passe n'est pas valide."; |
||||
|
} |
||||
|
} |
||||
|
} else { |
||||
|
$response ="Veuillez remplir les champs ci-dessus."; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
?> |
||||
|
<!DOCTYPE html> |
||||
|
<html lang="fr"> |
||||
|
|
||||
|
<head> |
||||
|
<title>Conenxion</title> |
||||
|
<meta charset="UTF-8"> |
||||
|
<link href="style/style_log.css" rel="stylesheet"> |
||||
|
<link rel="icon" type="image/x-icon" href="_content/favicon-32x32.png"> |
||||
|
</head> |
||||
|
|
||||
|
<body> |
||||
|
<div class="log-area"> |
||||
|
<p>Connecte-toi pour accéder à plus de foncitonnalités</p> |
||||
|
<form action="" method="POST"> |
||||
|
<div class="f_inputs"> |
||||
|
<div> |
||||
|
<label for="f_email">Adresse mail : </label><input type="email" name="f_email" id="f_email" maxlength="70" |
||||
|
placeholder="Adresse mail"> |
||||
|
</div> |
||||
|
<div> |
||||
|
<label for="f_password">Mot de passe : </label><input type="password" name="f_password" id="f_password" maxlength="40" |
||||
|
placeholder="Mot de passe"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="buttons"> |
||||
|
<div class="sign_up"> |
||||
|
<a href="sign_up.php">Pas de compte ?</a> |
||||
|
</div> |
||||
|
<div class="sign_in"> |
||||
|
<input type="submit" name="submit" value="Se connecter" id="submit"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p><?= $response ?></p> |
||||
|
</form> |
||||
|
</div> |
||||
|
</body> |
||||
|
|
||||
|
======= |
||||
|
<!-- Traitement PHP --> |
||||
|
<?php |
||||
|
/* |
||||
|
Faire de la sécurité et de l'optimisation |
||||
|
Ce code est pourri mais VRAIMENT |
||||
|
*/ |
||||
|
$servername = 'mysql-serny-nsi.alwaysdata.net'; |
||||
|
$username = 'serny-nsi'; |
||||
|
$mdp = 'ecole9090*'; |
||||
|
|
||||
|
$bdd = new PDO('mysql:host=mysql-serny-nsi.alwaysdata.net;dbname=serny-nsi_main', $username, $mdp); |
||||
|
|
||||
|
if (isset($_POST['submit'])) { |
||||
|
if (isset($_POST["f_email"]) AND !empty($_POST["f_email"]) AND isset($_POST["f_password"]) AND !empty($_POST["f_password"])) { |
||||
|
$password = htmlspecialchars($_POST['password']); |
||||
|
$mail = htmlspecialchars($_POST['f_email']); |
||||
|
|
||||
|
$look = $bdd->prepare("SELECT * FROM membres WHERE email = :mail"); |
||||
|
$look->bindParam(":mail", $mail); |
||||
|
$look->execute(); |
||||
|
$userexist = -1; |
||||
|
$userexist = $look->rowCount(); |
||||
|
if ($userexist == 0) { |
||||
|
$data = $look->fetch(); |
||||
|
var_dump($password,$data['password']); |
||||
|
if (password_verify($password,$data['password'])) { |
||||
|
$erreur = "Vous avez été correctement connecté."; |
||||
|
} else { |
||||
|
$erreur = "Les mots de passe ne correspondent pas."; |
||||
|
} |
||||
|
} else { |
||||
|
$erreur = "Le mail utilisé est inconnu."; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
?> |
||||
|
<!DOCTYPE html> |
||||
|
<html lang="fr"> |
||||
|
|
||||
|
<head> |
||||
|
<title>Conenxion</title> |
||||
|
<meta charset="UTF-8"> |
||||
|
<link href="style/style_log.css" rel="stylesheet"> |
||||
|
<link rel="icon" type="image/x-icon" href="_content/favicon-32x32.png"> |
||||
|
</head> |
||||
|
|
||||
|
<body> |
||||
|
<div class="log-area"> |
||||
|
<p>Connecte-toi pour accéder à plus de foncitonnalités</p> |
||||
|
<form action="" method="POST"> |
||||
|
<div class="f_inputs"> |
||||
|
<div> |
||||
|
<label for="f_email">Adresse mail : </label><input type="email" id="f_email" maxlength="70" |
||||
|
placeholder="Adresse mail" |
||||
|
name="f_email"> |
||||
|
</div> |
||||
|
<div> |
||||
|
<label for="f_password">Mot de passe : </label><input type="password" id="f_password" maxlength="40" |
||||
|
placeholder="Mot de passe" |
||||
|
name="f_password"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="buttons"> |
||||
|
<div class="sign_up"> |
||||
|
<a href="sign_up.html">Pas de compte ?</a> |
||||
|
</div> |
||||
|
<div class="sign_in"> |
||||
|
<input type="submit" name="submit" value="Se connecter" id="submit"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div> |
||||
|
<?= $erreur ?> |
||||
|
</div> |
||||
|
</form> |
||||
|
</div> |
||||
|
</body> |
||||
|
|
||||
|
>>>>>>> 24db56327fed9097898d28c291f7d01a5d9802b1 |
||||
|
</html> |
@ -0,0 +1,51 @@ |
|||||
|
@keyframes defilement { |
||||
|
0% { |
||||
|
top: 0; |
||||
|
transform: rotateX(15deg) translateZ(2200px); |
||||
|
} |
||||
|
100% { |
||||
|
top: -10000px; |
||||
|
transform: rotateX(20deg) translateZ(-2200px); |
||||
|
} |
||||
|
} |
||||
|
@keyframes rainbow { |
||||
|
0% { |
||||
|
color: yellow; |
||||
|
} |
||||
|
25% { |
||||
|
color: yellowgreen; |
||||
|
} |
||||
|
50% { |
||||
|
color: red; |
||||
|
} |
||||
|
75% { |
||||
|
color: blue; |
||||
|
} |
||||
|
100% { |
||||
|
color: yellow; |
||||
|
} |
||||
|
} |
||||
|
.main-contents { |
||||
|
z-index: 9999; |
||||
|
} |
||||
|
|
||||
|
.star-wars { |
||||
|
background-color: black; |
||||
|
height: 100vh; |
||||
|
margin-right: 10px; |
||||
|
transform: perspective(400px) rotateX(20deg); |
||||
|
overflow: hidden; |
||||
|
background-image: url("../_content/star.png"); |
||||
|
background-repeat: repeat; |
||||
|
background-size: 400px; |
||||
|
padding: 0 10%; |
||||
|
} |
||||
|
.star-wars div { |
||||
|
font-family: "Pathway Gothic One", sans-serif; |
||||
|
text-align: center; |
||||
|
font-size: 28px; |
||||
|
animation: defilement 40s linear infinite; |
||||
|
color: yellow; |
||||
|
} |
||||
|
|
||||
|
/*# sourceMappingURL=style_fun.css.map */ |
@ -0,0 +1 @@ |
|||||
|
{"version":3,"sourceRoot":"","sources":["styles_fun.scss"],"names":[],"mappings":"AAAA;EACI;IACE;IACA;;EAEF;IACE;IACA;;;AAGN;EACI;IACI;;EAEJ;IACI;;EAEJ;IACI;;EAEJ;IACI;;EAEJ;IACI;;;AAGN;EACE;;;AAEJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACI;EACA;EACA;EACA;EACA","file":"style_fun.css"} |
@ -1 +0,0 @@ |
|||||
{"version":3,"sourceRoot":"","sources":["styles_index.scss"],"names":[],"mappings":"AAAQ;AACA;AACA;AACR;EACC;;;AAED;EACC;;;AAED;EACC;IACC;;;AAGF;EACC;EACA;EACA;EACA;EACA;EACA;;AAGC;EACC;EACD;;AAID;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACC;;AAED;EACC;EACA;EACA;;AAIA;EACC;;AAED;EACC;;AAED;EACC;;AAGF;EACC;EACA;;AAED;EASC;EACA;EACA;EACA;;AAXA;EACC;EACA;EACA;;AASD;EACC;;AAKH;EACC;EACA;EACA;EACA;EACA;;AACA;EACC;EACA;EAqEA;EACA;EACA;EACA;EACA;;AAxEA;EACC;EACA;;AAED;EACC;EACA;EACA;;AAEC;EACC;EACA;EACA;EACA;EACA;EACA;;AAIH;EACC;EACA;EACA;;AACA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;EACC;EACA;;AAED;EACC;;AACA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;;AAED;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGA;EACC;EACA;;AAaL;EACC;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACC;EACA;;AAED;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;EACA;EACA","file":"style_index.css"} |
|
@ -1 +0,0 @@ |
|||||
{"version":3,"sourceRoot":"","sources":["styles_log.scss"],"names":[],"mappings":"AAAO;AACA;AAGP;AACA;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEJ;EACI;EACA;EACA;;;AAEJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEJ;EACI;EACA;;;AAEJ;AACA;EACI;EACA;;AAEA;EACI;EACA;EACA;EACA;EACA;EACA;;;AAIR;EACI;EACA;;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEJ;EACI;;;AAEJ;EACI;;;AAEJ;EACI;;;AAEJ;EACI;;;AAEJ;EACI;EACA;EACA;EACA;;;AAEJ;EACI;;;AAEJ;EACI;;;AAEJ;EACI;EACA;EACA;;;AAGJ;EACI;EACA","file":"style_log.css"} |
|
@ -0,0 +1,49 @@ |
|||||
|
@keyframes defilement { |
||||
|
0% { |
||||
|
top: 0; |
||||
|
transform: rotateX(15deg) translateZ(2200px); |
||||
|
} |
||||
|
100% { |
||||
|
top: -10000px; |
||||
|
transform: rotateX(20deg) translateZ(-2200px); |
||||
|
} |
||||
|
} |
||||
|
@keyframes rainbow { |
||||
|
0% { |
||||
|
color: yellow; |
||||
|
} |
||||
|
25% { |
||||
|
color: yellowgreen; |
||||
|
} |
||||
|
50% { |
||||
|
color: red; |
||||
|
} |
||||
|
75% { |
||||
|
color: blue; |
||||
|
} |
||||
|
100% { |
||||
|
color:yellow; |
||||
|
} |
||||
|
} |
||||
|
.main-contents { |
||||
|
z-index: 9999; |
||||
|
} |
||||
|
.star-wars { |
||||
|
background-color: black; |
||||
|
height: 100vh; |
||||
|
margin-right: 10px; |
||||
|
transform: perspective(400px) rotateX(20deg); |
||||
|
overflow: hidden; |
||||
|
background-image: url("../_content/star.png"); |
||||
|
background-repeat: repeat; |
||||
|
background-size: 400px; |
||||
|
padding: 0 10%; |
||||
|
div { |
||||
|
font-family: 'Pathway Gothic One', sans-serif; |
||||
|
text-align: center; |
||||
|
font-size: 28px; |
||||
|
animation: defilement 40s linear infinite; |
||||
|
color: yellow; |
||||
|
} |
||||
|
|
||||
|
} |
Loading…
Reference in new issue