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 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
| <?php
include("include/config.inc.php");
if($action == "verif")
{
$email = $HTTP_POST_VARS["email"];
if($email == "")
{
echo "<META HTTP-EQUIV=\"refresh\" CONTENT=\"0; URL = ?msg=Veuillez+saisir+votre+adresse+email+!\">";
exit;
}
$db = mysql_connect($sql_host,$sql_user,$sql_pass);
mysql_select_db($sql_bdd);
$res = mysql_db_query($sql_bdd,"SELECT email FROM $tb_membres WHERE email='$email'",$db) or die(mysql_error());
$num = mysql_num_rows($res);
if($email == "")
{
echo"<META HTTP-EQUIV=\"refresh\" CONTENT=\"0; URL = ?msg=Veuillez+saisir+votre+adresse+email+!\">";
exit;
}
if($num==0)
{
echo "<META HTTP-EQUIV=\"refresh\" CONTENT=\"0; URL = ?msg=Cette+Adresse+Email+est+inexistante+!\">";
exit;
}
$sql = "SELECT User_Login, User_Pwd FROM $tb_membres WHERE User_Login='$login' AND User_Pwd='$password' WHERE email='$email'";
$result = mysql_query($sql);
$row = mysql_fetch_array($result);
$User_Login = $row["User_Login"];
$User_Pwd = $row["User_Pwd"];
if($email!="")
{
$from = "$ad_email";
$sendto = "$email";
$subject = "[Act'ing Paintball] Récupération de vos Identifiants";
$body = "Bonjour !\n\nVous avez demandés à recevoir vos identifiants de connexion !\nVoici vos identifiants :\n\nLogin : $User_Login\nPassword : $User_Pwd\n\nPensez à changer votre password régulièrement !\n____________________________________________________________________________________________\n\nCECI EST UN EMAIL AUTOMATIQUE ! NE REPONDEZ PAS ! AUCUNE REPONSE NE VOUS SERA RETOURNEE !\n\n____________________________________________________________________________________________\nTS Secure CS Version 4.0";
mail($sendto,$subject,$body,$from);
print "<META HTTP-EQUIV=\"refresh\" CONTENT=\"0; URL = ?msg=Vos+informations+ont+été+envoyés+à+$email+!\">";
}
mysql_close($db);
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>TS Secure CS Version 4.0 - Récupération du Mot de Passe</title>
<link href="design.css" rel="stylesheet" type="text/css">
</head>
<body>
<p> </p>
<p> </p>
<form action="?action=verif" method="post" name="lost_pwd" id="lost_pwd">
<table width="28%" height="57" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="19"> </td>
</tr>
<tr>
<tr>
<td class="Style1">Adresse Email </td>
</tr>
<tr>
<td><input name="email" type="text" class="txt_box" id="email" size="45"></td>
</tr>
<tr>
<td height="25"><div align="right">
<input name="Submit" type="submit" class="txt_box" value=" Valider "></div></td>
</tr>
<tr><td height="35"><?php
if($msg)
{
echo '<div align="center"><span class="Style5">'.stripslashes($msg).'</span></div>';
}
?></td>
</tr>
<tr>
<td class="Style1"><div align="center"><a href="inscription.php">Inscription</a> - <a href="index.php">Identification</a></div></td>
</tr>
</table></td>
</tr>
<tr>
</tr>
</table>
</form>
<p><br>
</p>
<p></p>
<p align="center" class="Style15 Style18 Style4">Copyright © 2004/2005 - Act'ing Paintball - Tous Droits Réservés</p>
</body>
</html> |