Subversion Repositories Applications.papyrus

Rev

Rev 1081 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1081 Rev 1187
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.23 2006-12-01 13:23:15 florian Exp $
22
// CVS : $Id: inscription.fonct.php,v 1.24 2007-01-04 16:37:27 alexandre_tb Exp $
23
// CVS : $Id: inscription.fonct.php,v 1.23 2006-12-01 13:23:15 florian Exp $
23
// CVS : $Id: inscription.fonct.php,v 1.24 2007-01-04 16:37:27 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        Florian Schmitt <florian@ecole-et-nature.org>
33
*@author        Florian Schmitt <florian@ecole-et-nature.org>
34
*@copyright     Tela-Botanica 2000-2004
34
*@copyright     Tela-Botanica 2000-2004
35
*@version       $Revision: 1.23 $ $Date: 2006-12-01 13:23:15 $
35
*@version       $Revision: 1.24 $ $Date: 2007-01-04 16:37:27 $
36
*@version       $Revision: 1.23 $ $Date: 2006-12-01 13:23:15 $
36
*@version       $Revision: 1.24 $ $Date: 2007-01-04 16:37:27 $
37
// +------------------------------------------------------------------------------------------------------+
37
// +------------------------------------------------------------------------------------------------------+
38
*/
38
*/
Line 39... Line 39...
39
 
39
 
40
// +------------------------------------------------------------------------------------------------------+
40
// +------------------------------------------------------------------------------------------------------+
Line 101... Line 101...
101
/**
101
/**
102
 *
102
 *
103
 * @param   array   les valeurs renvoyés par le formulaire
103
 * @param   array   les valeurs renvoyés par le formulaire
104
 * @return
104
 * @return
105
 */
105
 */
106
 
-
 
-
 
106
if (!function_exists('inscription_validee')) {
107
function inscription_validee($valeurs) {
107
	function inscription_validee($valeurs) {
108
	insertion($valeurs) ;
108
		insertion($valeurs) ;
109
	$GLOBALS['AUTH']->username = $valeurs['email'] ;
109
		$GLOBALS['AUTH']->username = $valeurs['email'] ;
110
	$GLOBALS['AUTH']->password = $valeurs['mot_de_passe'] ;
110
		$GLOBALS['AUTH']->password = $valeurs['mot_de_passe'] ;
111
	// On loggue l'utilisateur
111
		// On loggue l'utilisateur
112
	$GLOBALS['AUTH']->login() ;
112
		$GLOBALS['AUTH']->login() ;
113
	// inscription à la lettre d'information
113
		// inscription à la lettre d'information
114
	if (INS_CHAMPS_LETTRE != '' && isset ($valeurs['lettre'])) {
114
		if (INS_CHAMPS_LETTRE != '' && isset ($valeurs['lettre'])) {
115
		inscription_lettre(INS_MAIL_INSCRIPTION_LISTE) ;
115
			inscription_lettre(INS_MAIL_INSCRIPTION_LISTE) ;
-
 
116
		}
116
	}
117
	}
117
}
118
}
118
 
-
 
119
/**
119
/**
120
*   Renvoie l'accueil de l'inscription
120
*   Renvoie l'accueil de l'inscription
121
*
121
*
122
*   @return string	HTML
122
*   @return string	HTML
123
*/
123
*/
Line 716... Line 716...
716
}
716
}
Line 717... Line 717...
717
 
717
 
718
/* +--Fin du code ----------------------------------------------------------------------------------------+
718
/* +--Fin du code ----------------------------------------------------------------------------------------+
719
*
719
*
-
 
720
* $Log: not supported by cvs2svn $
-
 
721
* Revision 1.23  2006/12/01 13:23:15  florian
-
 
722
* integration annuaire backoffice
720
* $Log: not supported by cvs2svn $
723
*
721
* Revision 1.22  2006/10/05 13:53:53  florian
724
* Revision 1.22  2006/10/05 13:53:53  florian
722
* amélioration des fichiers sql
725
* amélioration des fichiers sql
723
*
726
*
724
* Revision 1.21  2006/09/20 13:10:01  alexandre_tb
727
* Revision 1.21  2006/09/20 13:10:01  alexandre_tb