Migration

This commit is contained in:
2016-02-21 01:33:05 +01:00
commit 6db8a86a48
386 changed files with 17311 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
<h3>Modification mot de passe</h3>
<p>Vous pouvez modifier <EFBFBD> partir de cette page le mot de passe d'acc<63>s au panel.</p>
<?php
if ( (VerifPOST("pass-new", "#^[a-z0-9]+$#", 5, 9) == "ChaineValide" AND VerifPOST("pass-new-confirm", "#^[a-z0-9]+$#", 5, 9) == "ChaineValide") AND ($_POST['pass-new'] == $_POST['pass-new-confirm']))
{
$pass = md5(md5($_POST['pass-new']));
$MajPanel = $MySql->Update ("utilisateur", "Password", "$pass", "Utilisateur='".$_SESSION['Utilisateur']."'");
if ( $MajPanel != FALSE )
{
echo '<p>Mot de passe modifi<EFBFBD> avec succ<EFBFBD>s</p>';
$_SESSION['Hash'] = $pass;
}
else
{
echo '<p>Une erreur est survenue</p>';
}
}
else
{
echo '<div style="width: 500px; margin: auto">
<form action="Page-Compte-MotdePasse.html" method="post">
<table width="500" cellpadding="5">
<tr>
<td style="width:170px">Nouveau mot de passe :</td>
<td><input name="pass-new" type="password" style="border: 0; border-bottom: #006633 1px solid; width:50%" maxlength="9" /></td>
</tr>
<tr>
<td>Confirmation :</td>
<td><input name="pass-new-confirm" type="password" style="border: 0; border-bottom: #006633 1px solid; width:50%" maxlength="9" /></td>
</tr>
</table>
<div style="text-align: center; width: 100%; margin-top: 20px;">
<input type="submit" name="Submit" value="Valider" style=" border: #006633 1px solid; " />
</div>
</form>
</div>';
} ?>