| 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.10 2006-03-02 13:03:45 alexandre_tb Exp $
|
22 |
// CVS : $Id: inscription.php,v 1.11 2006-03-02 14:10:35 alexandre_tb 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.10 $ $Date: 2006-03-02 13:03:45 $
|
35 |
*@version $Revision: 1.11 $ $Date: 2006-03-02 14:10:35 $
|
| 36 |
// +------------------------------------------------------------------------------------------------------+
|
36 |
// +------------------------------------------------------------------------------------------------------+
|
| 37 |
*/
|
37 |
*/
|
| Line 38... |
Line 38... |
| 38 |
|
38 |
|
| 39 |
// +------------------------------------------------------------------------------------------------------+
|
39 |
// +------------------------------------------------------------------------------------------------------+
|
| Line 69... |
Line 69... |
| 69 |
}
|
69 |
}
|
| Line 70... |
Line 70... |
| 70 |
|
70 |
|
| 71 |
//cas de la désinscription-------------------------------------------------------------------------------
|
71 |
//cas de la désinscription-------------------------------------------------------------------------------
|
| 72 |
if ($_REQUEST['action'] == 'supprimer') {
|
72 |
if ($_REQUEST['action'] == 'supprimer') {
|
| 73 |
$id_utilisateur = $GLOBALS['AUTH']->getAuthData(INS_CHAMPS_ID) ;
|
- |
|
| 74 |
$resultat = $GLOBALS['AUTH']->removeUser($GLOBALS['AUTH']->getUsername()) ;
|
- |
|
| 75 |
if (PEAR::isError($resultat)) {
|
- |
|
| 76 |
die ($resultat->getMessage().'<br />'.$resultat->getDebugInfo()) ;
|
- |
|
| 77 |
}
|
73 |
$id_utilisateur = $GLOBALS['AUTH']->getAuthData(INS_CHAMPS_ID) ;
|
| 78 |
// Suppression dans SPIP
|
74 |
// Suppression dans SPIP
|
| 79 |
if (INS_UTILISE_SPIP) {
|
75 |
if (INS_UTILISE_SPIP) {
|
| 80 |
desinscription_spip($GLOBALS['AUTH']->getAuthData(INS_CHAMPS_ID)) ;
|
76 |
desinscription_spip($GLOBALS['AUTH']->getAuthData(INS_CHAMPS_ID)) ;
|
| 81 |
}
|
77 |
}
|
| 82 |
// Suppression dans Wikini
|
78 |
// Suppression dans Wikini
|
| 83 |
if (INS_UTILISE_WIKINI) {
|
79 |
if (INS_UTILISE_WIKINI) {
|
| 84 |
$nom_wiki = $GLOBALS['AUTH']->getAuthData(INS_CHAMPS_NOM_WIKI) ;
|
80 |
$nom_wiki = $GLOBALS['AUTH']->getAuthData(INS_CHAMPS_NOM_WIKINI) ;
|
| 85 |
desinscription_interwikini_users($nom_wiki) ;
|
81 |
desinscription_interwikini_users($nom_wiki) ;
|
| - |
|
82 |
}
|
| - |
|
83 |
$resultat = $GLOBALS['AUTH']->removeUser($GLOBALS['AUTH']->getUsername()) ;
|
| - |
|
84 |
if (PEAR::isError($resultat)) {
|
| - |
|
85 |
die ($resultat->getMessage().'<br />'.$resultat->getDebugInfo()) ;
|
| - |
|
86 |
}
|
| 86 |
}
|
87 |
|
| 87 |
// Appel des actions desinscriptions des applications clientes
|
88 |
// Appel des actions desinscriptions des applications clientes
|
| 88 |
$d = dir(GEN_CHEMIN_CLIENT);
|
89 |
$d = dir(GEN_CHEMIN_CLIENT);
|
| 89 |
while (false !== ($repertoire = $d->read())) {
|
90 |
while (false !== ($repertoire = $d->read())) {
|
| 90 |
if (file_exists(GEN_CHEMIN_CLIENT.$repertoire.GEN_SEP.$repertoire.'.desinscription.inc.php'))
|
91 |
if (file_exists(GEN_CHEMIN_CLIENT.$repertoire.GEN_SEP.$repertoire.'.desinscription.inc.php'))
|
| Line 210... |
Line 211... |
| 210 |
}
|
211 |
}
|
| Line 211... |
Line 212... |
| 211 |
|
212 |
|
| 212 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
213 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
| 213 |
*
|
214 |
*
|
| - |
|
215 |
* $Log: not supported by cvs2svn $
|
| - |
|
216 |
* Revision 1.10 2006/03/02 13:03:45 alexandre_tb
|
| - |
|
217 |
* bug de désinscription interwikini_users
|
| 214 |
* $Log: not supported by cvs2svn $
|
218 |
*
|
| 215 |
* Revision 1.9 2006/02/28 14:08:27 alexandre_tb
|
219 |
* Revision 1.9 2006/02/28 14:08:27 alexandre_tb
|
| 216 |
* appel des inscriptions des autres appli, sous le format:
|
220 |
* appel des inscriptions des autres appli, sous le format:
|
| 217 |
* client/appli/appli.inscription.php
|
221 |
* client/appli/appli.inscription.php
|
| 218 |
*
|
222 |
*
|