44 lines
1.0 KiB
PHP
Executable File
44 lines
1.0 KiB
PHP
Executable File
<?php
|
|
session_start();
|
|
/* test si la session est lancée */
|
|
if((isset($_SESSION['Admin'])==true) && ($_SESSION['Admin']==2))
|
|
{
|
|
$titre="Administration";
|
|
include ("enTete.php");
|
|
?>
|
|
<center>
|
|
<form action="modif_mdp_ja_suite.php" method="post">
|
|
<table>
|
|
<tr>
|
|
<td><b>Ancien mot de passe :</b></td>
|
|
<td><input type="password" name="anc_mdp"></td>
|
|
</tr>
|
|
<tr>
|
|
<td><b>Nouveau mot de passe :</b></td>
|
|
<td><input type="password" name="nouv_mdp"></td>
|
|
</tr>
|
|
<tr>
|
|
<td><b>Nouveau mot de passe (vérification) :</b></td>
|
|
<td><input type="password" name="nouv_mdp2"></td>
|
|
</tr>
|
|
<br /><br />
|
|
<tr>
|
|
<td><input type="submit" name="valider" value="Modifier"></td>
|
|
<td><input type="submit" name="effacer" value="Effacer"></td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</center>
|
|
<?php
|
|
include("deco_ja.php");
|
|
include("piedDePage.php");
|
|
/* sinon si la personne n'est pas autorisé la renvoyer àla page de login */
|
|
}
|
|
else
|
|
{
|
|
echo("Non autorisé - Redirection vers la page d'identification dans 2 secondes");
|
|
sleep(2);
|
|
include("admin_ja.php");
|
|
}
|
|
?>
|