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.php,v 1.18 2006-07-20 09:48:07 alexandre_tb Exp $
|
22 |
// CVS : $Id: inscription.php,v 1.19 2006-10-05 13:53:54 florian Exp $
|
23 |
/**
|
23 |
/**
|
24 |
* Inscription
|
24 |
* Inscription
|
25 |
*
|
25 |
*
|
26 |
* Un module d'inscription, en général ce code est spécifique à
|
26 |
* Un module d'inscription, en général ce code est spécifique à
|
27 |
* un site web
|
27 |
* un site web
|
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.18 $ $Date: 2006-07-20 09:48:07 $
|
35 |
*@version $Revision: 1.19 $ $Date: 2006-10-05 13:53:54 $
|
36 |
// +------------------------------------------------------------------------------------------------------+
|
36 |
// +------------------------------------------------------------------------------------------------------+
|
37 |
*/
|
37 |
*/
|
Line 38... |
Line 38... |
38 |
|
38 |
|
39 |
// +------------------------------------------------------------------------------------------------------+
|
39 |
// +------------------------------------------------------------------------------------------------------+
|
40 |
// | ENTETE du PROGRAMME |
|
40 |
// | ENTETE du PROGRAMME |
|
41 |
// +------------------------------------------------------------------------------------------------------+
|
41 |
// +------------------------------------------------------------------------------------------------------+
|
42 |
include_once 'configuration/bottin.config.inc.php';
|
42 |
include_once 'configuration/bottin.config.inc.php';
|
- |
|
43 |
include_once INS_CHEMIN_APPLI.'bibliotheque/inscription.fonct.php';
|
Line 43... |
Line 44... |
43 |
include_once INS_CHEMIN_APPLI.'bibliotheque/inscription.fonct.php';
|
44 |
include_once INS_CHEMIN_APPLI.'bibliotheque/bottin.fonct.php';
|
44 |
|
45 |
|
45 |
// Inclusion d'une classe personnalisé si elle existe
|
46 |
// Inclusion d'une classe personnalisé si elle existe
|
46 |
if (file_exists (INS_CHEMIN_APPLI.'bibliotheque/inscription.class.local.php')) {
|
47 |
if (file_exists (INS_CHEMIN_APPLI.'bibliotheque/inscription.class.local.php')) {
|
Line 50... |
Line 51... |
50 |
}
|
51 |
}
|
Line 51... |
Line 52... |
51 |
|
52 |
|
52 |
// +------------------------------------------------------------------------------------------------------+
|
53 |
// +------------------------------------------------------------------------------------------------------+
|
53 |
// | LISTE de FONCTIONS |
|
54 |
// | LISTE de FONCTIONS |
|
- |
|
55 |
// +------------------------------------------------------------------------------------------------------+
|
- |
|
56 |
if ( isset($_GET['voir_fiche']) or isset($_GET['voir_abonnement']) or isset($_GET['voir_actus']) or isset($_GET['voir_ressources']) or isset($_GET['voir_competences']) ) {
|
- |
|
57 |
//---------------le menu de l'appli-----------
|
- |
|
58 |
function afficherContenuNavigation () {
|
- |
|
59 |
$res =inscription_onglets();
|
- |
|
60 |
return $res ;
|
54 |
// +------------------------------------------------------------------------------------------------------+
|
61 |
}
|
Line 55... |
Line 62... |
55 |
|
62 |
}
|
56 |
|
63 |
|
57 |
function afficherContenuCorps() {
|
64 |
function afficherContenuCorps() {
|
58 |
$res = '<h1>'.INS_TITRE_INSCRIPTION.'</h1>'."\n" ;
|
65 |
$res = '<h1>'.INS_TITRE_INSCRIPTION.'</h1>'."\n" ;
|
Line 141... |
Line 148... |
141 |
return $res.INS_MESSAGE_INSCRIPTION;
|
148 |
return $res.INS_MESSAGE_INSCRIPTION;
|
142 |
} else {
|
149 |
} else {
|
143 |
$formulaire->process('inscription_validee', false) ;
|
150 |
$formulaire->process('inscription_validee', false) ;
|
144 |
$id_utilisateur = $GLOBALS['ins_db']->getOne('select '.INS_CHAMPS_ID.' from '.INS_ANNUAIRE.' where '.
|
151 |
$id_utilisateur = $GLOBALS['ins_db']->getOne('select '.INS_CHAMPS_ID.' from '.INS_ANNUAIRE.' where '.
|
145 |
INS_CHAMPS_MAIL.'="'.$GLOBALS['AUTH']->getAuthData(INS_CHAMSP_MAIL).'"') ;
|
152 |
INS_CHAMPS_MAIL.'="'.$GLOBALS['AUTH']->getAuthData(INS_CHAMSP_MAIL).'"') ;
|
146 |
// Appel des actions desinscriptions des applications clientes
|
153 |
// Appel des actions des inscriptions des applications clientes
|
147 |
$d = dir(GEN_CHEMIN_CLIENT);
|
154 |
$d = dir(GEN_CHEMIN_CLIENT);
|
148 |
while (false !== ($repertoire = $d->read())) {
|
155 |
while (false !== ($repertoire = $d->read())) {
|
149 |
if (file_exists(GEN_CHEMIN_CLIENT.$repertoire.GEN_SEP.$repertoire.'.inscription.inc.php'))
|
156 |
if (file_exists(GEN_CHEMIN_CLIENT.$repertoire.GEN_SEP.$repertoire.'.inscription.inc.php'))
|
150 |
include_once GEN_CHEMIN_CLIENT.$repertoire.GEN_SEP.$repertoire.'.inscription.inc.php' ;
|
157 |
include_once GEN_CHEMIN_CLIENT.$repertoire.GEN_SEP.$repertoire.'.inscription.inc.php' ;
|
151 |
}
|
158 |
}
|
Line 225... |
Line 232... |
225 |
}
|
232 |
}
|
Line 226... |
Line 233... |
226 |
|
233 |
|
227 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
234 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
228 |
*
|
235 |
*
|
- |
|
236 |
* $Log: not supported by cvs2svn $
|
- |
|
237 |
* Revision 1.18 2006/07/20 09:48:07 alexandre_tb
|
- |
|
238 |
* réglages
|
229 |
* $Log: not supported by cvs2svn $
|
239 |
*
|
230 |
* Revision 1.17 2006/07/06 10:33:30 alexandre_tb
|
240 |
* Revision 1.17 2006/07/06 10:33:30 alexandre_tb
|
231 |
* correction bug du à dernière mise à jour
|
241 |
* correction bug du à dernière mise à jour
|
232 |
*
|
242 |
*
|
233 |
* Revision 1.16 2006/07/04 09:38:31 alexandre_tb
|
243 |
* Revision 1.16 2006/07/04 09:38:31 alexandre_tb
|