Subversion Repositories Sites.tela-botanica.org

Rev

Rev 400 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 400 Rev 409
1
<?php
1
<?php
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */ 
-
 
3
// +------------------------------------------------------------------------------------------------------+
2
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 4.1                                                                                      |
3
// | PHP version 4.1																					  |
5
// +------------------------------------------------------------------------------------------------------+
4
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
5
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)							   	          |
7
// +------------------------------------------------------------------------------------------------------+
6
// +------------------------------------------------------------------------------------------------------+
8
// | This library is free software; you can redistribute it and/or                                        |
7
// | This library is free software; you can redistribute it and/or										  |
9
// | modify it under the terms of the GNU Lesser General Public                                           |
8
// | modify it under the terms of the GNU Lesser General Public										      |
10
// | License as published by the Free Software Foundation; either                                         |
9
// | License as published by the Free Software Foundation; either										  |
11
// | version 2.1 of the License, or (at your option) any later version.                                   |
10
// | version 2.1 of the License, or (at your option) any later version.								      |
12
// |                                                                                                      |
11
// |																									  |
13
// | This library is distributed in the hope that it will be useful,                                      |
12
// | This library is distributed in the hope that it will be useful,									  |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
13
// | but WITHOUT ANY WARRANTY; without even the implied warranty of									      |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
14
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU									  |
16
// | Lesser General Public License for more details.                                                      |
15
// | Lesser General Public License for more details.													  |
17
// |                                                                                                      |
16
// |																									  |
18
// | You should have received a copy of the GNU Lesser General Public                                     |
17
// | 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                                  |
18
// | 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                            |
19
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA							  |
21
// +------------------------------------------------------------------------------------------------------+
20
// +------------------------------------------------------------------------------------------------------+
22
// CVS : $Id: inscription.php,v 1.3 2005/03/21 16:50:21 alex Exp $
-
 
23
/**
21
/**
24
* Inscription
22
* Inscription
25
*
23
*
26
* Un module d'inscription, en général ce code est spécifique à
24
* Un module d'inscription, en général ce code est spécifique à un site web.
27
* un site web
-
 
28
*
25
*
29
*@package inscription
26
*@package inscription
30
//Auteur original :
27
//Auteur original :
31
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
28
*@author		Alexandre GRANIER <alexandre@tela-botanica.org>
32
//Autres auteurs :
29
//Autres auteurs :
-
 
30
*@author	   Jean-Pascal MILCENT <jpm@tela-botanica.org>
33
*@copyright     Tela-Botanica 2000-2004
31
*@copyright	   Tela-Botanica 2000-2004
34
*@version       $Revision: 1.3 $ $Date: 2005/03/21 16:50:21 $
32
*@version	   $Id: inscription.php,v 1.3 2005/03/21 16:50:21 alex Exp $
35
// +------------------------------------------------------------------------------------------------------+
33
// +------------------------------------------------------------------------------------------------------+
36
*/
34
*/
37
 
35
 
38
// +------------------------------------------------------------------------------------------------------+
36
// +------------------------------------------------------------------------------------------------------+
39
// |                                            ENTETE du PROGRAMME                                       |
37
// |											ENTETE du PROGRAMME									   |
40
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
41
include_once PAP_CHEMIN_API_PEAR.'Mail.php' ;
39
include_once PAP_CHEMIN_API_PEAR.'Mail.php' ;
-
 
40
require_once PAP_CHEMIN_API_PEAR.'HTML/QuickForm.php' ;
-
 
41
require_once PAP_CHEMIN_API_PEAR.'HTML/QuickForm/checkbox.php' ;
-
 
42
require_once PAP_CHEMIN_API_PEAR.'HTML/QuickForm/password.php' ;
-
 
43
/** Constante "dynamique" stockant la langue demandée par l'utilisateur pour l'application.*/
-
 
44
define('INS_LANGUE', substr($GLOBALS['_GEN_commun']['i18n'], 0, 2));
-
 
45
$fichier_lg = 'client/inscription/langues/ins_langue_'.INS_LANGUE.'.inc.php';
42
if (isset($lang)) {
46
if (file_exists($fichier_lg)) {
-
 
47
    include_once $fichier_lg;
43
    include_once "client/inscription/langues/ins_langue_$lang.inc.php" ;
48
	include_once 'client/inscription/langues/ins_langue_'.INS_LANGUE.'.inc.php';
44
} else {
49
} else {
45
    include_once ("client/inscription/langues/ins_langue_fr.inc.php") ;
50
	include_once 'client/inscription/langues/ins_langue_fr.inc.php' ;
46
}
51
}
47
include_once ("client/inscription/configuration/ins_config.inc.php");
52
include_once 'client/inscription/configuration/ins_config.inc.php';
48
include_once ("client/inscription/bibliotheque/inscription.fonct.php") ;
53
include_once 'client/inscription/bibliotheque/inscription.fonct.php';
-
 
54
include_once 'client/inscription/bibliotheque/ins_spip.fonct.php';
49
include_once INS_CHEMIN_FICHIER."bibliotheque/inscription.class.php" ;
55
include_once INS_CHEMIN_FICHIER.'bibliotheque/inscription.class.php';
50
 
56
 
51
// Ajout d'une feuille de style externe
57
// Ajout d'une feuille de style externe
52
GEN_stockerStyleExterne ('inscription', 'client/inscription/inscription.css') ;
58
GEN_stockerStyleExterne ('inscription', 'client/inscription/inscription.css') ;
53
 
59
 
54
// +------------------------------------------------------------------------------------------------------+
60
// +------------------------------------------------------------------------------------------------------+
55
// |                                           LISTE de FONCTIONS                                         |
61
// |										   LISTE de FONCTIONS										 |
56
// +------------------------------------------------------------------------------------------------------+
62
// +------------------------------------------------------------------------------------------------------+
57
 
-
 
58
 
-
 
59
 
-
 
60
 
63
 
61
function afficherContenuTete() {
64
function afficherContenuTete() {
62
    $retour = '<h1 class="titre1_inscription">Inscription au Réseau Tela Botanica</h1>';
65
    $retour = '<h1 class="titre1_inscription">Inscription au Réseau Tela Botanica</h1>';
63
    return ;
66
    return ;
64
}
67
}
65
 
68
 
66
//  ================ Note =======================
69
//  ================ Note =======================
67
//  La variable action sert à définir ce qui est demandé (inscription, modification d'inscription, suppression ...
70
//  La variable action sert à définir ce qui est demandé (inscription, modification d'inscription, suppression ...
68
//  Elle est appelé avec $_REQUEST car elle peut aussi bien venir d'un formulaire que d'un lien.
71
//  Elle est appelé avec $_REQUEST car elle peut aussi bien venir d'un formulaire que d'un lien.
69
// ==============================================
72
// ==============================================
70
 
73
 
71
 
74
 
72
/**
75
/**
73
 *
76
 *
74
 * @global  AUTH    Un pointeur vers un objet PEAR::Auth
77
 * @global  AUTH	Un pointeur vers un objet PEAR::Auth
75
 * @global  ins_url Un pointeur vers un objet PEAR::Net_URL 
78
 * @global  ins_url Un pointeur vers un objet PEAR::Net_URL 
76
 * @return  string  Le contenu de l'application inscription
79
 * @return  string  Le contenu de l'application inscription
77
 */
80
 */
78
 
-
 
79
function afficherContenuCorps() {
81
function afficherContenuCorps() {
234
    return $res ;
267
	return $res ;
235
}
-
 
236
/* +--Fin du code ----------------------------------------------------------------------------------------+
268
}
237
*
269
 
238
* $Log: inscription.php,v $
-
 
239
* Revision 1.3  2005/03/21 16:50:21  alex
-
 
240
* mille et une corrction
-
 
241
*
270
function afficherContenuPied () {
242
* Revision 1.2  2005/03/11 16:55:01  alex
-
 
243
* modification html
-
 
244
*
-
 
245
* Revision 1.3  2004/09/14 12:20:28  alex
271
    $sortie  = 	'<p id="ins_pied_page">'.INS_PIED_INFO.
246
* déplacement de la fonction suppression vers inscription.fonct.php
-
 
247
*  et nettoyage du code.
-
 
248
*
-
 
249
* Revision 1.2  2004/09/01 16:36:37  alex
-
 
250
* changement du chemin pour les include
-
 
251
*
-
 
252
* Revision 1.1  2004/07/06 15:42:28  alex
-
 
253
* en cours
-
 
254
*
-
 
255
* Revision 1.5  2004/07/06 15:28:56  alex
272
					'<a href="mailto:'.INS_PIED_MAIL.'">'.INS_PIED_MAIL.'</a>.'.
256
* en cours
-
 
257
*
-
 
258
* Revision 1.4  2004/06/25 14:26:03  alex
-
 
259
* modification de la suppression
-
 
260
*
-
 
261
* Revision 1.3  2004/06/23 12:41:44  alex
-
 
262
* amélioration de la gestion de la perte de mot de passe
-
 
263
*
-
 
264
* Revision 1.2  2004/06/18 09:18:23  alex
273
				'</p>';
265
* version initiale
-
 
266
*
274
    return $sortie;
267
*
-
 
268
* +-- Fin du code ----------------------------------------------------------------------------------------+
-
 
269
*/
275
}
270
?>
276
?>