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.14 2006-04-10 09:48:16 alexandre_tb Exp $
|
22 |
// CVS : $Id: inscription.php,v 1.15 2006-06-01 10:00: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.14 $ $Date: 2006-04-10 09:48:16 $
|
35 |
*@version $Revision: 1.15 $ $Date: 2006-06-01 10:00:35 $
|
36 |
// +------------------------------------------------------------------------------------------------------+
|
36 |
// +------------------------------------------------------------------------------------------------------+
|
37 |
*/
|
37 |
*/
|
Line 38... |
Line 38... |
38 |
|
38 |
|
39 |
// +------------------------------------------------------------------------------------------------------+
|
39 |
// +------------------------------------------------------------------------------------------------------+
|
Line 78... |
Line 78... |
78 |
// Suppression dans Wikini
|
78 |
// Suppression dans Wikini
|
79 |
if (INS_UTILISE_WIKINI) {
|
79 |
if (INS_UTILISE_WIKINI) {
|
80 |
$nom_wiki = $GLOBALS['AUTH']->getAuthData(INS_CHAMPS_NOM_WIKINI) ;
|
80 |
$nom_wiki = $GLOBALS['AUTH']->getAuthData(INS_CHAMPS_NOM_WIKINI) ;
|
81 |
desinscription_interwikini_users($nom_wiki) ;
|
81 |
desinscription_interwikini_users($nom_wiki) ;
|
82 |
}
|
82 |
}
|
83 |
$resultat = $GLOBALS['AUTH']->removeUser($GLOBALS['AUTH']->getUsername()) ;
|
- |
|
84 |
if (PEAR::isError($resultat)) {
|
- |
|
85 |
die ($resultat->getMessage().'<br />'.$resultat->getDebugInfo()) ;
|
- |
|
86 |
}
|
- |
|
87 |
|
- |
|
88 |
// Appel des actions desinscriptions des applications clientes
|
83 |
// Appel des actions desinscriptions des applications clientes
|
89 |
$d = dir(GEN_CHEMIN_CLIENT);
|
84 |
$d = dir(GEN_CHEMIN_CLIENT);
|
90 |
while (false !== ($repertoire = $d->read())) {
|
85 |
while (false !== ($repertoire = $d->read())) {
|
91 |
if (file_exists(GEN_CHEMIN_CLIENT.$repertoire.GEN_SEP.$repertoire.'.desinscription.inc.php'))
|
86 |
if (file_exists(GEN_CHEMIN_CLIENT.$repertoire.GEN_SEP.$repertoire.'.desinscription.inc.php'))
|
92 |
include_once GEN_CHEMIN_CLIENT.$repertoire.GEN_SEP.$repertoire.'.desinscription.inc.php' ;
|
87 |
include_once GEN_CHEMIN_CLIENT.$repertoire.GEN_SEP.$repertoire.'.desinscription.inc.php' ;
|
93 |
}
|
88 |
}
|
94 |
$d->close();
|
89 |
$d->close();
|
- |
|
90 |
|
- |
|
91 |
$resultat = $GLOBALS['AUTH']->removeUser($GLOBALS['AUTH']->getUsername()) ;
|
- |
|
92 |
if (PEAR::isError($resultat)) {
|
- |
|
93 |
die ($resultat->getMessage().'<br />'.$resultat->getDebugInfo()) ;
|
- |
|
94 |
}
|
- |
|
95 |
|
- |
|
96 |
|
95 |
// Deconnection
|
97 |
// Deconnection
|
96 |
$GLOBALS['AUTH']->logout() ;
|
98 |
$GLOBALS['AUTH']->logout() ;
|
97 |
return $res.AUTH_formulaire_login() ;
|
99 |
return $res.AUTH_formulaire_login() ;
|
98 |
}
|
100 |
}
|
Line 216... |
Line 218... |
216 |
}
|
218 |
}
|
Line 217... |
Line 219... |
217 |
|
219 |
|
218 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
220 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
219 |
*
|
221 |
*
|
- |
|
222 |
* $Log: not supported by cvs2svn $
|
- |
|
223 |
* Revision 1.14 2006/04/10 09:48:16 alexandre_tb
|
- |
|
224 |
* Correction de bug pour les inscriptions aux autres applications
|
220 |
* $Log: not supported by cvs2svn $
|
225 |
*
|
221 |
* Revision 1.13 2006/04/04 12:23:05 florian
|
226 |
* Revision 1.13 2006/04/04 12:23:05 florian
|
222 |
* modifs affichage fiches, généricité de la carto, modification totale de l'appli annuaire
|
227 |
* modifs affichage fiches, généricité de la carto, modification totale de l'appli annuaire
|
223 |
*
|
228 |
*
|
224 |
* Revision 1.12 2006/03/15 11:05:45 alexandre_tb
|
229 |
* Revision 1.12 2006/03/15 11:05:45 alexandre_tb
|