72 lines
2.6 KiB
PHP
72 lines
2.6 KiB
PHP
<html lang="fr">
|
|
<head>
|
|
<title>It's a don't meet ! | Don't meet me</title>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<link rel="stylesheet" type="text/css" class="css" href="styles/today/main.css"/>
|
|
<link rel="stylesheet" type="text/css" class="css" href="styles/today/success.css"/>
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Zen+Kurenaido&display=swap" rel="stylesheet">
|
|
<link rel="shortcut icon" href="img/favicon.png" type="image/x-icon">
|
|
|
|
<script src="js/nav.js" defer></script>
|
|
<script src="js/themeManager.js" defer></script>
|
|
</head>
|
|
<body>
|
|
|
|
<?php
|
|
include("header.php");
|
|
$seed = strlen($_POST['lechercoude'].$_POST['100m'].$_POST['solde'].$_POST['rib'].$_POST['os'].$_POST['serie']./*$_POST['pilote'] +*/$_POST['terre'].$_POST['viennoiserie'].$_POST['route'].$_POST['titanic'] );
|
|
srand($seed);
|
|
$genderdb;
|
|
// choix du genre de la personne que l'on cherche (femme par defaut )
|
|
if (isset($_GET["gender"]) && $_GET["gender"]=="man"){
|
|
$genderdb = "./db/man.json";
|
|
}
|
|
else {
|
|
$genderdb = "./db/woman.json";
|
|
}
|
|
|
|
$database = json_decode(file_get_contents($genderdb), true);
|
|
$choix = rand(0, count($database)-1);
|
|
$profile = $database[$choix];
|
|
$image = "./img/".$_GET['gender']."/".$choix.".jpeg";
|
|
?>
|
|
|
|
<main>
|
|
<h2>It's a don't meet !</h2>
|
|
<section id="succes">
|
|
<section id="sec_img">
|
|
<!--<img src="img/avis1.jpeg" alt="La tếte de votre vie">-->
|
|
<?php
|
|
echo '<img src="'.$image.'" alt="La tếte de votre vie">';
|
|
?>
|
|
</section>
|
|
<section id="info_bases">
|
|
<section id="prenom">
|
|
<h3>PRENOM</h2>
|
|
<p><?php echo $profile['prenom']; ?></p>
|
|
</section>
|
|
<section id="nom">
|
|
<h3>NOM</h2>
|
|
<p><?php echo $profile['nom']; ?></p>
|
|
</section>
|
|
<section id="age">
|
|
<h3>AGE</h2>
|
|
<p><?php echo $profile['age']; ?></p>
|
|
</section>
|
|
</section>
|
|
<section id="bio">
|
|
<p>
|
|
<?php
|
|
echo $profile['bio'];
|
|
?>
|
|
</p>
|
|
</section>
|
|
</section>
|
|
</main>
|
|
<?php include("footer.php") ?>
|
|
</body>
|
|
</html>
|