Line 17... |
Line 17... |
17 |
// | |
|
17 |
// | |
|
18 |
// | You should have received a copy of the GNU Lesser General Public |
|
18 |
// | You should have received a copy of the GNU Lesser General Public |
|
19 |
// | License along with this library; if not, write to the Free Software |
|
19 |
// | License along with this library; if not, write to the Free Software |
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
22 |
// CVS : $Id: inscription.fonct.php,v 1.12 2006-03-15 11:02:35 alexandre_tb Exp $
|
22 |
// CVS : $Id: inscription.fonct.php,v 1.13 2006-03-21 10:25:33 alexandre_tb Exp $
|
23 |
// CVS : $Id: inscription.fonct.php,v 1.12 2006-03-15 11:02:35 alexandre_tb Exp $
|
23 |
// CVS : $Id: inscription.fonct.php,v 1.13 2006-03-21 10:25:33 alexandre_tb Exp $
|
24 |
/**
|
24 |
/**
|
25 |
* Fonctions du module inscription
|
25 |
* Fonctions du module inscription
|
26 |
*
|
26 |
*
|
27 |
* Fonctions du module inscription
|
27 |
* Fonctions du module inscription
|
28 |
*
|
28 |
*
|
Line 30... |
Line 30... |
30 |
//Auteur original :
|
30 |
//Auteur original :
|
31 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
31 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
32 |
//Autres auteurs :
|
32 |
//Autres auteurs :
|
33 |
*@author Aucun
|
33 |
*@author Aucun
|
34 |
*@copyright Tela-Botanica 2000-2004
|
34 |
*@copyright Tela-Botanica 2000-2004
|
35 |
*@version $Revision: 1.12 $ $Date: 2006-03-15 11:02:35 $
|
35 |
*@version $Revision: 1.13 $ $Date: 2006-03-21 10:25:33 $
|
36 |
*@version $Revision: 1.12 $ $Date: 2006-03-15 11:02:35 $
|
36 |
*@version $Revision: 1.13 $ $Date: 2006-03-21 10:25:33 $
|
37 |
// +------------------------------------------------------------------------------------------------------+
|
37 |
// +------------------------------------------------------------------------------------------------------+
|
38 |
*/
|
38 |
*/
|
Line 39... |
Line 39... |
39 |
|
39 |
|
40 |
// +------------------------------------------------------------------------------------------------------+
|
40 |
// +------------------------------------------------------------------------------------------------------+
|
Line 76... |
Line 76... |
76 |
echo ("Echec de la requete : $requete<br />".$resultat->getMessage()) ;
|
76 |
echo ("Echec de la requete : $requete<br />".$resultat->getMessage()) ;
|
77 |
}
|
77 |
}
|
78 |
// On envoie un email de confirmation pour l'utilisateur
|
78 |
// On envoie un email de confirmation pour l'utilisateur
|
79 |
$GLOBALS['ins_url']->addQueryString ('id', $chaine) ;
|
79 |
$GLOBALS['ins_url']->addQueryString ('id', $chaine) ;
|
Line 80... |
Line -... |
80 |
|
- |
|
- |
|
80 |
|
81 |
$corps = INS_MESSAGE_DEBUT_MAIL_INSCRIPTION ;
|
81 |
|
82 |
if (INS_UTILISE_REECRITURE_URL) {
|
82 |
if (INS_UTILISE_REECRITURE_URL) {
|
83 |
$corps .= 'http://'.$GLOBALS['ins_url']->host.'/'.INS_URL_PREFIXE.$chaine ;
|
83 |
$url = 'http://'.$GLOBALS['ins_url']->host.'/'.INS_URL_PREFIXE.$chaine ;
|
84 |
} else {
|
84 |
} else {
|
85 |
$corps .= str_replace ('&', '&', $GLOBALS['ins_url']->getURL()) ;
|
85 |
$url = str_replace ('&', '&', $GLOBALS['ins_url']->getURL()) ;
|
- |
|
86 |
}
|
- |
|
87 |
|
86 |
}
|
88 |
require_once "HTML/Template/IT.php";
|
- |
|
89 |
$tpl = new HTML_Template_IT() ;
|
- |
|
90 |
// Le gabarit du mail est dans un template
|
- |
|
91 |
// template 2
|
- |
|
92 |
$requete = 'select it_template from inscription_template where it_id_template=2'.
|
- |
|
93 |
' and it_i18n like "%'.INS_LANGUE_DEFAUT.'"' ;
|
- |
|
94 |
|
- |
|
95 |
if (!$tpl -> setTemplate($GLOBALS['ins_db']->getOne ($requete))) {
|
- |
|
96 |
echo 'erreur' ;
|
- |
|
97 |
}
|
- |
|
98 |
$tpl->setVariable('URL_INSCRIPTION', $url) ;
|
87 |
$corps .= INS_MESSAGE_FIN_MAIL_INSCRIPTION ;
|
99 |
|
88 |
mail ($GLOBALS['email'], 'Inscription', $corps, 'From: '.INS_MAIL_ADMIN_APRES_INSCRIPTION) ;
|
100 |
mail ($GLOBALS['email'], 'Inscription', $tpl->get(), 'From: '.INS_MAIL_ADMIN_APRES_INSCRIPTION) ;
|
Line 89... |
Line 101... |
89 |
}
|
101 |
}
|
90 |
|
102 |
|
91 |
/**
|
103 |
/**
|
Line 648... |
Line 660... |
648 |
}
|
660 |
}
|
Line 649... |
Line 661... |
649 |
|
661 |
|
650 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
662 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
651 |
*
|
663 |
*
|
- |
|
664 |
* $Log: not supported by cvs2svn $
|
- |
|
665 |
* Revision 1.12 2006/03/15 11:02:35 alexandre_tb
|
- |
|
666 |
* ajout de l'insertion du prénom qui avait disparu
|
652 |
* $Log: not supported by cvs2svn $
|
667 |
*
|
653 |
* Revision 1.11 2006/03/02 16:57:31 alexandre_tb
|
668 |
* Revision 1.11 2006/03/02 16:57:31 alexandre_tb
|
654 |
* correction appel au générateur de nom wiki
|
669 |
* correction appel au générateur de nom wiki
|
655 |
*
|
670 |
*
|
656 |
* Revision 1.10 2006/02/28 14:02:20 alexandre_tb
|
671 |
* Revision 1.10 2006/02/28 14:02:20 alexandre_tb
|