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.30 2007-08-28 15:13:25 alexandre_tb Exp $
|
22 |
// CVS : $Id: inscription.php,v 1.31 2007-09-06 08:39:08 alexandre_tb Exp $
|
23 |
/**
|
23 |
/**
|
24 |
* Inscription
|
24 |
* Inscription
|
25 |
*
|
25 |
*
|
26 |
* Un module d'inscription, en general ce code est specifique a
|
26 |
* Un module d'inscription, en general ce code est specifique a
|
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-2007
|
34 |
*@copyright Tela-Botanica 2000-2007
|
35 |
*@version $Revision: 1.30 $ $Date: 2007-08-28 15:13:25 $
|
35 |
*@version $Revision: 1.31 $ $Date: 2007-09-06 08:39:08 $
|
36 |
// +------------------------------------------------------------------------------------------------------+
|
36 |
// +------------------------------------------------------------------------------------------------------+
|
37 |
*/
|
37 |
*/
|
Line 38... |
Line 38... |
38 |
|
38 |
|
39 |
// +------------------------------------------------------------------------------------------------------+
|
39 |
// +------------------------------------------------------------------------------------------------------+
|
Line 124... |
Line 124... |
124 |
|
124 |
|
125 |
|
125 |
|
126 |
// Deconnection
|
126 |
// Deconnection
|
- |
|
127 |
$GLOBALS['AUTH']->logout() ;
|
127 |
$GLOBALS['AUTH']->logout() ;
|
128 |
// Destruction du cookie de session de Papyrus : est ce utile?
|
128 |
// Destruction du cookie de session de Papyrus : est ce utile?
|
129 |
if (defined (PAP_VERSION)) {
|
129 |
setcookie(session_name(), session_id(), time()-3600, '/');
|
130 |
setcookie(session_name(), session_id(), time()-3600, '/');
|
130 |
// Destruction du cookie de permanence de l'identitification de Papyrus
|
131 |
// Destruction du cookie de permanence de l'identitification de Papyrus
|
131 |
setcookie(session_name().'-memo', '', time()-3600, '/');
|
132 |
setcookie(session_name().'-memo', '', time()-3600, '/');
|
132 |
|
133 |
}
|
Line 133... |
Line 134... |
133 |
return $res.inscription_AUTH_formulaire_login() ;
|
134 |
return $res.inscription_AUTH_formulaire_login() ;
|
134 |
}
|
135 |
}
|
Line 189... |
Line 190... |
189 |
if (file_exists(GEN_CHEMIN_CLIENT.$repertoire.GEN_SEP.$repertoire.'.inscription.inc.php'))
|
190 |
if (file_exists(GEN_CHEMIN_CLIENT.$repertoire.GEN_SEP.$repertoire.'.inscription.inc.php'))
|
190 |
include_once GEN_CHEMIN_CLIENT.$repertoire.GEN_SEP.$repertoire.'.inscription.inc.php' ;
|
191 |
include_once GEN_CHEMIN_CLIENT.$repertoire.GEN_SEP.$repertoire.'.inscription.inc.php' ;
|
191 |
}
|
192 |
}
|
192 |
}
|
193 |
}
|
193 |
$d->close();
|
194 |
$d->close();
|
194 |
return $res.info();
|
195 |
return $res.info($id_utilisateur);
|
195 |
}
|
196 |
}
|
196 |
} else {
|
197 |
} else {
|
197 |
// Si le formulaire n'est pas bon on remet l'action inscription_v
|
198 |
// Si le formulaire n'est pas bon on remet l'action inscription_v
|
198 |
$formulaire->addElement('hidden', 'action', 'inscription_v') ;
|
199 |
$formulaire->addElement('hidden', 'action', 'inscription_v') ;
|
199 |
}
|
200 |
}
|
Line 306... |
Line 307... |
306 |
}
|
307 |
}
|
Line 307... |
Line 308... |
307 |
|
308 |
|
308 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
309 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
309 |
*
|
310 |
*
|
- |
|
311 |
* $Log: not supported by cvs2svn $
|
- |
|
312 |
* Revision 1.30 2007-08-28 15:13:25 alexandre_tb
|
- |
|
313 |
* gestion du lien "mot de passe oublie"
|
310 |
* $Log: not supported by cvs2svn $
|
314 |
*
|
311 |
* Revision 1.29 2007-08-27 12:34:32 alexandre_tb
|
315 |
* Revision 1.29 2007-08-27 12:34:32 alexandre_tb
|
312 |
* remplacement d un die en retour en erreur
|
316 |
* remplacement d un die en retour en erreur
|
313 |
*
|
317 |
*
|
314 |
* Revision 1.28 2007-06-26 09:32:32 neiluj
|
318 |
* Revision 1.28 2007-06-26 09:32:32 neiluj
|