Forgotten password:


"; require ("../communs/conf.php"); isset($_POST['k']) ? $k=$_POST['k'] : $k="default"; switch ($k) { case"1": print"

Forgotten password: Check of your data


"; $link=mysql_connect(SERVEUR,USER,PASSWD); if ( ! $link) die ("Connexion impossible à la base de données"); mysql_select_db(BDD, $link ) or die ( "Impossible d'ouvrir ".BDD.": ".mysql_error() ); $requete=mysql_query("select * from membres where login=\"$login\" and mail=\"$mail\"",$link) or die(mysql_error()); $num=mysql_num_rows($requete); if($num !==0) { $pass=mysql_result($requete,0,"password"); $sujet="Please find hereafter your parameters of connection to the members' room"; $message="Your number of member is : $login \n"; $message.="Your password is : $pass \n"; $message.="\n We counsel you to change regularly your password, and to preserve it in a safety place :.\n"; $message.="Do not answerd to this message. It has been send by a robot and no reply would be read.\n"; $message.=""; $headers="From : webmaster@cfctn.org\n"; $headers.="X-Priority: 1\n"; $headers.="X-Mailer: PHP".phpversion(); mail($mail,$sujet,$message,$headers); echo"Your parameters of connection have been addressed to you by email.
"; echo("Close the window"); exit; } else { print "
Votre N° d'adhérent ne correspond pas à l'adresse email indiquée lors de votre inscription.

"; print"Recommencer
"; print"
"; } break; default : print "
"; print "
Indiquez votre N° d'adhérent :

"; print "Indiquez votre Email :
"; print ""; print "
"; print "
"; break; } ?>