forked from monnerat/web_2025
36 lines
852 B
PHP
36 lines
852 B
PHP
<?php
|
|
include './include/fonction.php';
|
|
$alphabet = "@#!*^&azertyuiopqsdfghjkklmwxcvbnAZERTYUIOPLMKJHGFDSQWXCVBN1234567890";
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>Exercice 5</title>
|
|
<link
|
|
rel="stylesheet"
|
|
href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.classless.min.css"
|
|
>
|
|
</head>
|
|
<body>
|
|
<main>
|
|
<hgroup>
|
|
<h2>Exercice 5 : createPassword </h2>
|
|
<h3>
|
|
Test de la fonction createPassword
|
|
</h3>
|
|
</hgroup>
|
|
<article>
|
|
<ul>
|
|
<li><code><?php echo createPassword(5, $alphabet);?></code></li>
|
|
<li><code><?php echo createPassword(10,$alphabet);?></code></li>
|
|
<li><code><?php echo createPassword(15,$alphabet);?></code></li>
|
|
</ul>
|
|
</article>
|
|
</main>
|
|
</body>
|
|
</main>
|
|
</html>
|