remotes/origin/master
Leni BEAULATON 7 months ago
parent c3193fb015
commit a8e8ba6f16

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" width="50px" height="50px"><path d="M 46.574219 3.425781 C 45.625 2.476563 44.378906 2 43.132813 2 C 41.886719 2 40.640625 2.476563 39.691406 3.425781 C 39.691406 3.425781 39.621094 3.492188 39.53125 3.585938 C 39.523438 3.59375 39.511719 3.597656 39.503906 3.605469 L 4.300781 38.804688 C 4.179688 38.929688 4.089844 39.082031 4.042969 39.253906 L 2.035156 46.742188 C 1.941406 47.085938 2.039063 47.453125 2.292969 47.707031 C 2.484375 47.898438 2.738281 48 3 48 C 3.085938 48 3.171875 47.988281 3.257813 47.964844 L 10.746094 45.957031 C 10.917969 45.910156 11.070313 45.820313 11.195313 45.695313 L 46.394531 10.5 C 46.40625 10.488281 46.410156 10.472656 46.417969 10.460938 C 46.507813 10.371094 46.570313 10.308594 46.570313 10.308594 C 48.476563 8.40625 48.476563 5.324219 46.574219 3.425781 Z M 45.160156 4.839844 C 46.277344 5.957031 46.277344 7.777344 45.160156 8.894531 C 44.828125 9.222656 44.546875 9.507813 44.304688 9.75 L 40.25 5.695313 C 40.710938 5.234375 41.105469 4.839844 41.105469 4.839844 C 41.644531 4.296875 42.367188 4 43.132813 4 C 43.898438 4 44.617188 4.300781 45.160156 4.839844 Z M 5.605469 41.152344 L 8.847656 44.394531 L 4.414063 45.585938 Z"/></svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

@ -0,0 +1,57 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="../styles/styleProfil.css" media="screen">
<title>Wiki Fantasy : Profil</title>
<link id="favicon" rel="icon" href="../images/iconeSombre.ico"> <!-- Par défaut sombre -->
<link href="https://fonts.googleapis.com/css2?family=Lemon&display=swap" rel="stylesheet">
<script defer src="../script/theme-toggle.js"></script>
</head>
<body>
<div class="container">
<div class="header">
<div class="nav">
<img src="../images/coeur.svg" alt="coeur" width="67px" height="67px" onmousedown="return false">
<img id="theme-icon" src="../images/light.svg" alt="toggle theme" width="72px" height="37px" onmousedown="return false" onclick="toggleTheme()">
<img src="../images/quizz.svg" alt="quizz" width="51px" height="82px" onmousedown="return false">
</div>
<div class="logo">
<img src="../images/WIKIFANTASY.png" alt="Logo" width="227px" height="106px" onmousedown="return false" >
</div>
</div>
</div>
<div class="login">
<h1>▶ Profil ◀</h1>
<?php
include ('../script/user.php');
echo "<img src={$u->img} class='imageProfil' onmousedown='return false'/>";
echo "<p class='nameProfil'> <strong>{$u->username}</strong></p>";
echo "<p class='nameProfil'> <strong>{$u->email}</strong></p>";
$passwdhiden = hidenPassWd($u);
echo "<p class='nameProfil'> <strong>{$passwdhiden}</strong></p>";
?>
<div class="languageDiv">
<p class="languageTitle">Language :</p>
</div>
<img class="languageImage" src="../images/drapeauFrance.png" onmousedown="return false"/>
<div class="createQuote">
<a href="rien" class="createQuote">Ajouter une citation</a>
</div>
<div class="buttonSudmiteDiv">
<button class="buttonSudmite">Se déconnecter</button>
</div>
</div>
</body>
</html>

@ -13,4 +13,37 @@ class User{
}
}
$u = new User('Testeur', 'e', '../images/imageProfil.png', 'testeur.compte@wikifantasy.com'); /*Test*/
function hidenPassWd(User $u){
return str_repeat('*', strlen($u->passwd));
}
function modifyName(string $name){
if(!empty($name)){
$u->username = $name;
}
}
function modifyEmail(string $mail){
if(!empty($mail)){
$u->email = $mail;
}
}
function modifyPassWd(string $password1, string $password2){
if(!empty($password2) && !empty($password2)){
if($password1 == $password2){
$u->passwd = $password;
}
}
}
function modifyImage(string $image){
if(!empty($image)){
$u->img = $image;
}
}
?>
Loading…
Cancel
Save