Subversion Repositories Applications.papyrus

Rev

Rev 1561 | Rev 1606 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1561 Rev 1562
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: identification.php,v 1.32 2007-08-28 14:14:35 jp_milcent Exp $
22
// CVS : $Id: identification.php,v 1.33 2007-08-28 14:23:35 jp_milcent Exp $
23
/**
23
/**
24
* Applette : identification
24
* Applette : identification
25
*
25
*
26
* Génère un formulaire les champs nécessaires pour s'identifier.
26
* Génère un formulaire les champs nécessaires pour s'identifier.
27
* Nécessite :
27
* Nécessite :
Line 36... Line 36...
36
//Auteur original :
36
//Auteur original :
37
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
37
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
38
//Autres auteurs :
38
//Autres auteurs :
39
*@author        Aucun
39
*@author        Aucun
40
*@copyright     Tela-Botanica 2000-2004
40
*@copyright     Tela-Botanica 2000-2004
41
*@version       $Revision: 1.32 $ $Date: 2007-08-28 14:14:35 $
41
*@version       $Revision: 1.33 $ $Date: 2007-08-28 14:23:35 $
42
// +------------------------------------------------------------------------------------------------------+
42
// +------------------------------------------------------------------------------------------------------+
43
*/
43
*/
Line 44... Line 44...
44
 
44
 
45
// +------------------------------------------------------------------------------------------------------+
45
// +------------------------------------------------------------------------------------------------------+
Line 142... Line 142...
142
    
142
    
143
    if (! $objet_pear_auth->getAuth()) {
143
    if (! $objet_pear_auth->getAuth()) {
144
    	// L'utilisateur a essayé de s'identifier mais a échoué
144
    	// L'utilisateur a essayé de s'identifier mais a échoué
145
    	if ($login != '') {
145
    	if ($login != '') {
-
 
146
    		$retour .= '<span class="erreur">'.IDEN_ECHEC_AUTH ;
146
    		$retour .= '<span class="erreur">'.IDEN_ECHEC_AUTH ;
147
    		$url_erreur = '#';
-
 
148
    		if (isset($InfoAuthBdd->url_erreur)) {
147
    		if (isset($InfoAuthBdd->url_inscription)) {
149
    			$url_erreur = $InfoAuthBdd->url_erreur;
148
    			$retour .= '<a id="lien_inscription" href="'.$InfoAuthBdd->url_inscription.'">' ;
150
    		} else if (isset($InfoAuthBdd->url_inscription)) {
149
    			$retour .= IDEN_ICI.'</a>' ;
151
    			$url_erreur = $InfoAuthBdd->url_inscription;
-
 
152
    		}
150
    		}
153
   			$retour .= '<a id="lien_inscription" href="'.$url_erreur.'">'.IDEN_ICI.'</a>' ;
151
    		$retour .= '</span>'."\n";
154
    		$retour .= '</span>'."\n";
Line 152... Line 155...
152
    	}
155
    	}
153
		
156
		
Line 232... Line 235...
232
 
235
 
233
 
236
 
234
/* +--Fin du code ----------------------------------------------------------------------------------------+
237
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
238
*
-
 
239
* $Log: not supported by cvs2svn $
-
 
240
* Revision 1.32  2007-08-28 14:14:35  jp_milcent
235
*
241
* Ajout de la gestion des erreurs d'identification.
236
* $Log: not supported by cvs2svn $
242
*
237
* Revision 1.31  2006-12-15 14:49:47  jp_milcent
243
* Revision 1.31  2006-12-15 14:49:47  jp_milcent
238
* Correction bogue : le type de cryptage est stocké à 2 endroits...
244
* Correction bogue : le type de cryptage est stocké à 2 endroits...
239
*
245
*