forked from ldleman/hackpoint
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaccount.php
More file actions
23 lines (20 loc) · 975 Bytes
/
account.php
File metadata and controls
23 lines (20 loc) · 975 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php require_once __DIR__.DIRECTORY_SEPARATOR.'header.php'; ?>
<?php if (!$myUser->connected()) {
header('location: index.php');
} ?>
<div class="jumbotron">
<div class="jumbotron-contents">
<form method="POST" action="action.php?action=save_user&id=<?php echo $myUser->id;?>">
<h2>Mon profil</h2>
<label for="login">Identifiant</label>
<input type="text" id="login" name="login" value="<?php echo $myUser->login; ?>" class="form-control"/>
<label for="password">Nouveau mot de passe</label>
<input type="password" id="password" name="password" class="form-control"/>
<label for="confirmPassword">Nouveau mot de passe (Confirmation)</label>
<input type="password" id="confirmPassword" name="confirmPassword" class="form-control"/>
<br/>
<input class="btn btn-primary" type="submit" value="Enregistrer">
</form>
</div>
</div>
<?php require_once __ROOT__.'footer.php' ?>