Location: PHPKode > projects > PHP My Ring > webring/oubli2.php
<?
/* ----------------------------------------------------------------------------
              E N V O I   M O T   D E   P A S S E   P A R   M A I L
          PHPMyRing (4.0) dernière modification du fichier [06-12-02]
   ---------------------------------------------------------------------------- */

require('include/config.php');
require('include/fonctions.php');
$conf=config();
InsertLang('',$conf['lang']);

// Connexion
$conn=connecte();

$res=requete("SELECT webmaster,email,mdp,pseudo,idsite FROM webring WHERE email='$email_oubli'");
$nb=mysql_num_rows($res);
if ($nb==1)
   {
   $row=mysql_fetch_array($res);
   $webmaster=$row['webmaster'];
   $email=$row['email'];
   $mdp=$row['mdp'];
   $pseudo=$row['pseudo'];
   // Bien, on a tout récupérer, on envoie le mail!
   $nom=$conf['nomwr'];
   $lien=$conf['adresse_site']."/".$conf['dossierwr'];
   $sign=$conf['signature'];
   courrier(recupemail(),$email,"[$nom] "._("Vos identifiants"),
   resolve($row['idsite'],$conf['rappel_ident'])
   );
   echo "<p align=\"center\"><font face=\"Arial\" size=\"2\">"._("Email envoy&eacute;")." !</font></p>";
   }
else
    {
    echo "<p align=\"center\"><font face=\"Arial\" size=\"2\">"._("Adresse inconnue, d&eacute;sol&eacute;.")." !</font></p>";
    }
?>
<p style="text-align:center;">
  <a href="JavaScript:window.close();"><? echo _("Fermer la fen&ecirc;tre"); ?></a>
</p>
Return current item: PHP My Ring