Subversion Repositories Applications.papyrus

Rev

Rev 606 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 606 Rev 670
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.6 2005-11-18 16:04:15 florian Exp $
22
// CVS : $Id: inscription.php,v 1.7 2005-12-19 13:16:14 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.6 $ $Date: 2005-11-18 16:04:15 $
35
*@version       $Revision: 1.7 $ $Date: 2005-12-19 13:16:14 $
36
// +------------------------------------------------------------------------------------------------------+
36
// +------------------------------------------------------------------------------------------------------+
37
*/
37
*/
Line 38... Line 38...
38
 
38
 
39
// +------------------------------------------------------------------------------------------------------+
39
// +------------------------------------------------------------------------------------------------------+
Line 62... Line 62...
62
        return $res.AUTH_formulaire_login() ;
62
        return $res.AUTH_formulaire_login() ;
63
    }
63
    }
Line 64... Line 64...
64
    
64
    
65
//cas de la désinscription-------------------------------------------------------------------------------
65
//cas de la désinscription-------------------------------------------------------------------------------
-
 
66
    if ($_REQUEST['action'] == 'supprimer') {
66
    if ($_REQUEST['action'] == 'supprimer') {
67
    	$id_utilisateur = $GLOBALS['AUTH']->getAuthData(INS_CHAMPS_ID) ;
67
    	$resultat = $GLOBALS['AUTH']->removeUser($GLOBALS['AUTH']->getUsername()) ;	
68
    	$resultat = $GLOBALS['AUTH']->removeUser($GLOBALS['AUTH']->getUsername()) ;	
68
        if (PEAR::isError($resultat)) {
69
        if (PEAR::isError($resultat)) {
69
        	die ($resultat->getMessage().'<br />'.$resultat->getDebugInfo()) ;
70
        	die ($resultat->getMessage().'<br />'.$resultat->getDebugInfo()) ;
70
        }
71
        }
Line 189... Line 190...
189
}
190
}
Line 190... Line 191...
190
 
191
 
191
/* +--Fin du code ----------------------------------------------------------------------------------------+
192
/* +--Fin du code ----------------------------------------------------------------------------------------+
192
*
193
*
-
 
194
* $Log: not supported by cvs2svn $
-
 
195
* Revision 1.6  2005/11/18 16:04:15  florian
-
 
196
* corrections de bugs, optimisations, tests pour rendre inscription stable.
193
* $Log: not supported by cvs2svn $
197
*
194
* Revision 1.5  2005/11/17 18:48:02  florian
198
* Revision 1.5  2005/11/17 18:48:02  florian
195
* corrections bugs + amélioration de l'application d'inscription
199
* corrections bugs + amélioration de l'application d'inscription
196
*
200
*
197
* Revision 1.4  2005/10/25 14:02:21  alexandre_tb
201
* Revision 1.4  2005/10/25 14:02:21  alexandre_tb