fxEscape($strCourriel) . "' AND com_actif = 0"; $tabComptes = $objDatabase->fxGetResults($sqlComptes); } else { $sqlComptes = "SELECT com_id, com_nom, com_prenom, com_courriel, com_login, com_password, com_langue FROM inscriptions_comptes WHERE com_id = " . intval($intCompte); $tabComptes = $objDatabase->fxGetRow($sqlComptes); } return $tabComptes; } function fxSendConfirmation($tabCompte, $strCourriel) { // envoyer un courriel de confirmation // FRAN�AIS if ($tabCompte['com_langue'] == 'fr') { $subject = "Activation de votre nouveau compte client"; $body = "Bonjour " . $tabCompte['com_prenom'] . ",\n\nafin d'activer votre compte MS-1, veuillez cliquer sur le lien suivant:\n\n" . $vDomaine . "/compte.php?valider&courriel=" . $tabCompte['com_courriel'] . "&id=" . $tabCompte['com_id'] . "\n\nSi vous ne pouvez cliquer le lien, copiez-le et collez-le dans votre navigateur.\n\nVoici les informations pour acc�der � votre compte:\n\nNom d'usager: " . $tabCompte['com_login'] . "\nMot de passe: " . $tabCompte['com_password'] . "\n\nVeuillez conserver ces informations.\nMerci\n\n\nMessage envoy� automatiquement par " . $GLOBALS['vClient'] . " le: " . fxRemoveHtml(fxShowDate(fxGetDate(), $tabCompte['com_langue'])) . " @ " . fxGetTime(); } // ANGLAIS else { $subject = "Activation of your new client account"; $body = "Hello " . $tabCompte['com_prenom'] . ",\n\nto complete your " . $GLOBALS['vClient'] . " client account's registration, please click the following link:\n\n" . $vDomaine . "/compte.php?valider&lang=en&courriel=" . $tabCompte['com_courriel'] . "&id=" . $tabCompte['com_id'] . "\n\nIf you can't click it, copy/paste it in your web browser.\n\nHere are your login deails to access your client account:\n\nUsername: " . $tabCompte['com_login'] . "\nPassword: " . $tabCompte['com_password'] . "\n\nPlease keep those details safe.\nThank you\n\n\nAuto-message sent by " . $GLOBALS['vClient'] . " on: " . fxRemoveHtml(fxShowDate(fxGetDate(), $tabCompte['com_langue'])) . " @ " . fxGetTime(); } return fxSendMail($subject, $body, $strCourriel, $tabCompte['com_prenom'] . ' ' . $tabCompte['com_nom'], $GLOBALS['vEmail'], $GLOBALS['vClient'], 1, 0); } header('Content-type: text/html; charset=UTF-8'); if (!isset($_POST['btn_search']) && !isset($_POST['btn_send'])) { ?>
Aucun compte pour ce courriel.
Accès refusé!'; }