-
Notifications
You must be signed in to change notification settings - Fork 0
/
pdo_profil.php
61 lines (58 loc) · 1.9 KB
/
pdo_profil.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php session_start(); ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="/master.css">
<link rel="shortcut icon" href="../Image/Emote_Scout_Approve.ico">
<title> Profil | Zanga E-sport </title>
</head>
<body>
<!-- HEADER -->
<?php include("assets/entete.php"); ?>
<br/>
<?php
if($_POST['mdp1']!=''){
if($_POST['mdp1']==$_POST['mdp2']){
if ($_SESSION['mdp']!=$_POST['mdp1']) {
echo '
<h2 class="centrer">Mot de passe Modifié</h2>
';
$_SESSION['mdp']=$_POST['mdp1'];
}
}
}
?>
<form class="centrer" name="Profil" action="pdo_profil.php" method="post">
<fieldset class="box">
<fieldset class="box">
<legend><h2 class="centrer">Profil</h2></legend>
<label>
Pseudo: <br/><input class="input centrer" type="text" name="pseudo" <?php echo 'value="'.$_SESSION['pseudo'].'"';?> required="required">
</label>
<br/>
<label>
Adresse Mail: <br/><input class="input centrer" type="email" name="mail" <?php echo 'value="'.$_SESSION['mail'].'"';?> required="required" readonly>
</label>
<br/>
</fieldset>
<br/>
<br/>
<fieldset class="box">
<legend><h2 class="centrer">Modification Mot de Passe </h2></legend>
<label>
Mot de passe: <br/><input class="input centrer" type="password" name="mdp1" placeholder="Entrez un mot de passe">
</label>
<br/>
<label>
Confirmation: <br/><input class="input centrer" type="password" name="mdp2" placeholder="Entrez le même mot de passe">
</label>
<?php include 'assets/pdo_modif.php'; ?>
</fieldset>
<input class="submit centrer" type="submit" name="submit" value="Valider">
</fieldset>
</form>
<!-- FOOTER -->
<?php include("assets/footer.php")?>
</body>
</html>