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.19 2005-10-31 17:09:28 ddelon Exp $
|
22 |
// CVS : $Id: identification.php,v 1.20 2005-12-13 11:13:35 alexandre_tb 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.19 $ $Date: 2005-10-31 17:09:28 $
|
41 |
*@version $Revision: 1.20 $ $Date: 2005-12-13 11:13:35 $
|
42 |
// +------------------------------------------------------------------------------------------------------+
|
42 |
// +------------------------------------------------------------------------------------------------------+
|
43 |
*/
|
43 |
*/
|
Line 44... |
Line 44... |
44 |
|
44 |
|
45 |
// +------------------------------------------------------------------------------------------------------+
|
45 |
// +------------------------------------------------------------------------------------------------------+
|
Line 93... |
Line 93... |
93 |
if ($zap) unlink($chemin);
|
93 |
if ($zap) unlink($chemin);
|
94 |
}
|
94 |
}
|
95 |
}
|
95 |
}
|
96 |
}
|
96 |
}
|
97 |
}
|
97 |
}
|
98 |
// $_GEN_commun['pear_auth']->start();
|
- |
|
99 |
}
|
98 |
}
|
100 |
// Si un formulaire nous renvoie en POST une variable "connexion", nous logons l'utilisateur.
|
99 |
// Si un formulaire nous renvoie en POST une variable "connexion", nous logons l'utilisateur.
|
101 |
if (isset($_REQUEST['connexion'])) {
|
100 |
if (isset($_REQUEST['connexion'])) {
|
102 |
$_GEN_commun['pear_auth']->login();
|
101 |
$_GEN_commun['pear_auth']->login();
|
103 |
$_SESSION['username'] = $username;
|
102 |
$_SESSION['username'] = $username;
|
Line 137... |
Line 136... |
137 |
$objet_pear_auth->login();
|
136 |
$objet_pear_auth->login();
|
138 |
}
|
137 |
}
|
139 |
}
|
138 |
}
|
Line 140... |
Line 139... |
140 |
|
139 |
|
- |
|
140 |
if (! $objet_pear_auth->getAuth()) {
|
- |
|
141 |
// L'utilisateur a essayé de s'identifier mais a échoué
|
- |
|
142 |
if (isset($_POST['username'])) {
|
- |
|
143 |
$retour .= '<span class="erreur">'.IDEN_ECHEC_AUTH ;
|
- |
|
144 |
if (isset($GLOBALS['_GEN_commun']['info_auth_bdd']->url_inscription)) {
|
- |
|
145 |
$retour .= '<a id="lien_inscription" href="'.$GLOBALS['_GEN_commun']['info_auth_bdd']->url_inscription.'">' ;
|
- |
|
146 |
$retour .= IDEN_ICI.'</a>' ;
|
- |
|
147 |
}
|
- |
|
148 |
$retour .= '</span>' ;
|
141 |
if (! $objet_pear_auth->getAuth()) {
|
149 |
}
|
142 |
// L'utilisateur n'est pas identifié:
|
150 |
// L'utilisateur n'est pas identifié:
|
143 |
$retour .= str_repeat(' ', 16).'<form id="form_connexion" class="form_identification" action="'.$url.'" method="post">'."\n";
|
151 |
$retour .= str_repeat(' ', 16).'<form id="form_connexion" class="form_identification" action="'.$url.'" method="post">'."\n";
|
144 |
$retour .= str_repeat(' ', 16).'<fieldset>'."\n";
|
152 |
$retour .= str_repeat(' ', 16).'<fieldset>'."\n";
|
145 |
$retour .= str_repeat(' ', 20).'<legend>'.IDEN_LG_FORM_LEGEND.'</legend>'."\n";
|
153 |
$retour .= str_repeat(' ', 20).'<legend>'.IDEN_LG_FORM_LEGEND.'</legend>'."\n";
|
Line 204... |
Line 212... |
204 |
|
212 |
|
205 |
|
213 |
|
206 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
214 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
- |
|
215 |
*
|
- |
|
216 |
* $Log: not supported by cvs2svn $
|
- |
|
217 |
* Revision 1.19 2005/10/31 17:09:28 ddelon
|
207 |
*
|
218 |
* Suppression auth start suite à deconnexion ... attention aux effets de bord
|
208 |
* $Log: not supported by cvs2svn $
|
219 |
*
|
209 |
* Revision 1.18 2005/09/27 09:07:32 ddelon
|
220 |
* Revision 1.18 2005/09/27 09:07:32 ddelon
|
210 |
* size applette et squelettes
|
221 |
* size applette et squelettes
|
211 |
*
|
222 |
*
|