forked from halo-battle/game
Version 1.9a
This commit is contained in:
parent
5f81f76b17
commit
d028822d0b
437 changed files with 27543 additions and 81793 deletions
21
game/jeu/options_change.php
Normal file
21
game/jeu/options_change.php
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
if(!defined('INDEX')) { header('Location: ../'); exit; }
|
||||
$titre = 'Changement des options';
|
||||
|
||||
if (isset($_GET['auth'])) {
|
||||
if (!empty($queryUser['mdpNOUV']) && !empty($queryUser['mdpNOUV']) && sha1($queryUser['mdpNOUV']) == $_GET['auth']) {
|
||||
$bdd->connexion();
|
||||
$bdd->query("UPDATE user SET mdp = mdpNOUV, mdpNOUV = '', mailNOUV = '' WHERE id = '$id_user';");
|
||||
$bdd->deconnexion();
|
||||
erreur('Votre nouveau mot de passe est en place.', "green");
|
||||
}
|
||||
elseif (!empty($queryUser['mailNOUV']) && !empty($queryUser['mailNOUV']) && sha1($queryUser['mailNOUV']) == $_GET['auth']) {
|
||||
$bdd->connexion();
|
||||
$bdd->query("UPDATE user SET mail = mailNOUV, mailNOUV = '', mdpNOUV = '' WHERE id = '$id_user';");
|
||||
$bdd->deconnexion();
|
||||
erreur('Votre nouvelle adresse électronique est en place.', "green");
|
||||
}
|
||||
else erreur('Impossible d\'authentifier le lien !');
|
||||
}
|
||||
else erreur('Le lien est incomplet !');
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue