Line 1... |
Line 1... |
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 |
*/
|
Line 37... |
Line 35... |
37 |
|
35 |
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
36 |
// +------------------------------------------------------------------------------------------------------+
|
39 |
// | ENTETE du PROGRAMME |
|
37 |
// | ENTETE du PROGRAMME |
|
40 |
// +------------------------------------------------------------------------------------------------------+
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
- |
|
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));
|
41 |
include_once PAP_CHEMIN_API_PEAR.'Mail.php' ;
|
45 |
$fichier_lg = 'client/inscription/langues/ins_langue_'.INS_LANGUE.'.inc.php';
|
- |
|
46 |
if (file_exists($fichier_lg)) {
|
42 |
if (isset($lang)) {
|
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';
|
- |
|
53 |
include_once 'client/inscription/bibliotheque/inscription.fonct.php';
|
48 |
include_once ("client/inscription/bibliotheque/inscription.fonct.php") ;
|
54 |
include_once 'client/inscription/bibliotheque/ins_spip.fonct.php';
|
Line 49... |
Line 55... |
49 |
include_once INS_CHEMIN_FICHIER."bibliotheque/inscription.class.php" ;
|
55 |
include_once INS_CHEMIN_FICHIER.'bibliotheque/inscription.class.php';
|
50 |
|
56 |
|
Line 51... |
Line 57... |
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 |
|
Line 54... |
Line -... |
54 |
// +------------------------------------------------------------------------------------------------------+
|
- |
|
55 |
// | LISTE de FONCTIONS |
|
- |
|
56 |
// +------------------------------------------------------------------------------------------------------+
|
- |
|
57 |
|
60 |
// +------------------------------------------------------------------------------------------------------+
|
58 |
|
61 |
// | LISTE de FONCTIONS |
|
59 |
|
62 |
// +------------------------------------------------------------------------------------------------------+
|
60 |
|
63 |
|
Line 69... |
Line 72... |
69 |
// ==============================================
|
72 |
// ==============================================
|
Line 70... |
Line 73... |
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
|
- |
|
77 |
*/
|
79 |
* @return string Le contenu de l'application inscription
|
Line 232... |
Line 265... |
232 |
return info ().bouton ($url);
|
265 |
}
|
233 |
}
|
- |
|
234 |
return $res ;
|
266 |
|
235 |
}
|
267 |
return $res ;
|
236 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
- |
|
237 |
*
|
- |
|
238 |
* $Log: inscription.php,v $
|
- |
|
239 |
* Revision 1.3 2005/03/21 16:50:21 alex
|
268 |
}
|
240 |
* mille et une corrction
|
- |
|
241 |
*
|
- |
|
242 |
* Revision 1.2 2005/03/11 16:55:01 alex
|
- |
|
243 |
* modification html
|
269 |
|
244 |
*
|
- |
|
245 |
* Revision 1.3 2004/09/14 12:20:28 alex
|
- |
|
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
|
270 |
function afficherContenuPied () {
|
254 |
*
|
- |
|
255 |
* Revision 1.5 2004/07/06 15:28:56 alex
|
- |
|
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
|
271 |
$sortie = '<p id="ins_pied_page">'.INS_PIED_INFO.
|
263 |
*
|
- |
|
264 |
* Revision 1.2 2004/06/18 09:18:23 alex
|
272 |
'<a href="mailto:'.INS_PIED_MAIL.'">'.INS_PIED_MAIL.'</a>.'.
|
265 |
* version initiale
|
- |
|
266 |
*
|
- |
|
267 |
*
|
273 |
'</p>';
|
268 |
* +-- Fin du code ----------------------------------------------------------------------------------------+
|
274 |
return $sortie;
|