Subversion Repositories Applications.papyrus

Rev

Rev 1688 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1688 Rev 1722
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.31 2007-09-06 08:28:32 alexandre_tb Exp $
22
// CVS : $Id: inscription.fonct.php,v 1.31.2.1 2007-11-22 10:16:23 alexandre_tb Exp $
23
/**
23
/**
24
* Fonctions du module inscription
24
* Fonctions du module inscription
25
*
25
*
26
* Fonctions du module inscription
26
* Fonctions du module inscription
27
*
27
*
Line 29... Line 29...
29
//Auteur original :
29
//Auteur original :
30
*@author        Alexandre Granier <alexandre@tela-botanica.org>
30
*@author        Alexandre Granier <alexandre@tela-botanica.org>
31
//Autres auteurs :
31
//Autres auteurs :
32
*@author        Florian Schmitt <florian@ecole-et-nature.org>
32
*@author        Florian Schmitt <florian@ecole-et-nature.org>
33
*@copyright     Tela-Botanica 2000-2004
33
*@copyright     Tela-Botanica 2000-2004
34
*@version       $Revision: 1.31 $ $Date: 2007-09-06 08:28:32 $
34
*@version       $Revision: 1.31.2.1 $ $Date: 2007-11-22 10:16:23 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
Line 441... Line 441...
441
			$body .= $tableau[$i]['label'].' : '.$valeur[$tableau[$i]['nom_bdd']]."\n";
441
			$body .= $tableau[$i]['label'].' : '.$valeur[$tableau[$i]['nom_bdd']]."\n";
442
		}
442
		}
443
	}
443
	}
444
    $body = html_entity_decode($body);
444
    $body = html_entity_decode($body);
445
    $mail = & Mail::factory('mail') ;
445
    $mail = & Mail::factory('mail') ;
-
 
446
    $header['Subject'] = inscription::getTemplate(INS_TEMPLATE_MAIL_APRES_INSCRIPTION_SUJET, $GLOBALS['ins_config']['ic_id_inscription']);
-
 
447
    $modele_corps = inscription::getTemplate(INS_TEMPLATE_MAIL_APRES_INSCRIPTION_CORPS, $GLOBALS['ins_config']['ic_id_inscription']);
-
 
448
    $body = str_replace ('{INFO}', $body, $modele_corps);
446
    $mail -> send ($ligne[INS_CHAMPS_MAIL], $headers, $body) ;
449
    $mail -> send ($ligne[INS_CHAMPS_MAIL], $headers, $body) ;
Line -... Line 450...
-
 
450
    
447
    
451
    $headers ['Subject'] = html_entity_decode(INS_MAIL_COORD_SUJET) ;
448
    // Envoi du mail aux administrateur du site
452
    // Envoi du mail aux administrateur du site
449
    $body = $body_entete.$body;
453
    $body = $body_entete.$body;
450
    $body = html_entity_decode($body);
454
    $body = html_entity_decode($body);
451
    $mails_moderateur = split ('/\n/', $GLOBALS['ins_config']['ic_mail_admin_apres_inscription']);
455
    $mails_moderateur = split ('/\n/', $GLOBALS['ins_config']['ic_mail_admin_apres_inscription']);
Line 541... Line 545...
541
}
545
}
Line 542... Line 546...
542
 
546
 
543
/* +--Fin du code ----------------------------------------------------------------------------------------+
547
/* +--Fin du code ----------------------------------------------------------------------------------------+
544
*
548
*
-
 
549
* $Log: not supported by cvs2svn $
-
 
550
* Revision 1.31  2007-09-06 08:28:32  alexandre_tb
-
 
551
* utilisation du template pour produire les mails de confirmation
545
* $Log: not supported by cvs2svn $
552
*
546
* Revision 1.30  2007-06-25 09:59:03  alexandre_tb
553
* Revision 1.30  2007-06-25 09:59:03  alexandre_tb
547
* ajout de carte_google, mise en place des templates avec api/formulaire, configuration de multiples inscriptions, ajout de modele pour les mails
554
* ajout de carte_google, mise en place des templates avec api/formulaire, configuration de multiples inscriptions, ajout de modele pour les mails
548
*
555
*
549
* Revision 1.29  2007-05-25 14:32:17  alexandre_tb
556
* Revision 1.29  2007-05-25 14:32:17  alexandre_tb