19,8 → 19,8 |
// | License along with this library; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: inscription.fonct.php,v 1.12 2006-03-15 11:02:35 alexandre_tb Exp $ |
// CVS : $Id: inscription.fonct.php,v 1.12 2006-03-15 11:02:35 alexandre_tb Exp $ |
// CVS : $Id: inscription.fonct.php,v 1.13 2006-03-21 10:25:33 alexandre_tb Exp $ |
// CVS : $Id: inscription.fonct.php,v 1.13 2006-03-21 10:25:33 alexandre_tb Exp $ |
/** |
* Fonctions du module inscription |
* |
32,8 → 32,8 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.12 $ $Date: 2006-03-15 11:02:35 $ |
*@version $Revision: 1.12 $ $Date: 2006-03-15 11:02:35 $ |
*@version $Revision: 1.13 $ $Date: 2006-03-21 10:25:33 $ |
*@version $Revision: 1.13 $ $Date: 2006-03-21 10:25:33 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
78,14 → 78,26 |
// On envoie un email de confirmation pour l'utilisateur |
$GLOBALS['ins_url']->addQueryString ('id', $chaine) ; |
|
$corps = INS_MESSAGE_DEBUT_MAIL_INSCRIPTION ; |
|
if (INS_UTILISE_REECRITURE_URL) { |
$corps .= 'http://'.$GLOBALS['ins_url']->host.'/'.INS_URL_PREFIXE.$chaine ; |
$url = 'http://'.$GLOBALS['ins_url']->host.'/'.INS_URL_PREFIXE.$chaine ; |
} else { |
$corps .= str_replace ('&', '&', $GLOBALS['ins_url']->getURL()) ; |
$url = str_replace ('&', '&', $GLOBALS['ins_url']->getURL()) ; |
} |
$corps .= INS_MESSAGE_FIN_MAIL_INSCRIPTION ; |
mail ($GLOBALS['email'], 'Inscription', $corps, 'From: '.INS_MAIL_ADMIN_APRES_INSCRIPTION) ; |
|
require_once "HTML/Template/IT.php"; |
$tpl = new HTML_Template_IT() ; |
// Le gabarit du mail est dans un template |
// template 2 |
$requete = 'select it_template from inscription_template where it_id_template=2'. |
' and it_i18n like "%'.INS_LANGUE_DEFAUT.'"' ; |
|
if (!$tpl -> setTemplate($GLOBALS['ins_db']->getOne ($requete))) { |
echo 'erreur' ; |
} |
$tpl->setVariable('URL_INSCRIPTION', $url) ; |
|
mail ($GLOBALS['email'], 'Inscription', $tpl->get(), 'From: '.INS_MAIL_ADMIN_APRES_INSCRIPTION) ; |
} |
|
/** |
650,6 → 662,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.12 2006/03/15 11:02:35 alexandre_tb |
* ajout de l'insertion du prénom qui avait disparu |
* |
* Revision 1.11 2006/03/02 16:57:31 alexandre_tb |
* correction appel au générateur de nom wiki |
* |