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.24 2006-11-20 17:42:40 jp_milcent Exp $
|
22 |
// CVS : $Id: identification.php,v 1.25 2006-11-20 18:40:33 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.24 $ $Date: 2006-11-20 17:42:40 $
|
41 |
*@version $Revision: 1.25 $ $Date: 2006-11-20 18:40:33 $
|
42 |
// +------------------------------------------------------------------------------------------------------+
|
42 |
// +------------------------------------------------------------------------------------------------------+
|
43 |
*/
|
43 |
*/
|
Line 44... |
Line 44... |
44 |
|
44 |
|
45 |
// +------------------------------------------------------------------------------------------------------+
|
45 |
// +------------------------------------------------------------------------------------------------------+
|
Line 130... |
Line 130... |
130 |
$retour .= '<a id="lien_inscription" href="'.$InfoAuthBdd->url_inscription.'">' ;
|
130 |
$retour .= '<a id="lien_inscription" href="'.$InfoAuthBdd->url_inscription.'">' ;
|
131 |
$retour .= IDEN_ICI.'</a>' ;
|
131 |
$retour .= IDEN_ICI.'</a>' ;
|
132 |
}
|
132 |
}
|
133 |
$retour .= '</span>'."\n";
|
133 |
$retour .= '</span>'."\n";
|
134 |
}
|
134 |
}
|
- |
|
135 |
|
135 |
// L'utilisateur n'est pas identifié:
|
136 |
// L'utilisateur n'est pas identifié:
|
136 |
$retour .= str_repeat(' ', 16).'<form id="form_connexion" class="form_identification" action="'.$url.'" method="post">'."\n";
|
137 |
$retour .= str_repeat(' ', 16).'<form id="form_connexion" class="form_identification" action="'.$url.'" method="post">'."\n";
|
137 |
$retour .= str_repeat(' ', 16).'<fieldset>'."\n";
|
138 |
$retour .= str_repeat(' ', 16).'<fieldset>'."\n";
|
138 |
$retour .= str_repeat(' ', 20).'<legend>'.IDEN_LG_FORM_LEGEND.'</legend>'."\n";
|
139 |
$retour .= str_repeat(' ', 20).'<legend>'.IDEN_LG_FORM_LEGEND.'</legend>'."\n";
|
139 |
$retour .= str_repeat(' ', 20).''."\n";
|
140 |
$retour .= str_repeat(' ', 20).''."\n";
|
Line 152... |
Line 153... |
152 |
$retour .= str_repeat(' ', 20).''."\n";
|
153 |
$retour .= str_repeat(' ', 20).''."\n";
|
153 |
$retour .= str_repeat(' ', 20).''."\n";
|
154 |
$retour .= str_repeat(' ', 20).''."\n";
|
154 |
$retour .= str_repeat(' ', 24).'<input type="submit" id="connexion" name="connexion" tabindex="4" value="'.IDEN_LG_FORM_VALUE_SUBMIT.'" />'."\n";
|
155 |
$retour .= str_repeat(' ', 24).'<input type="submit" id="connexion" name="connexion" tabindex="4" value="'.IDEN_LG_FORM_VALUE_SUBMIT.'" />'."\n";
|
155 |
$retour .= str_repeat(' ', 20).''."\n";
|
156 |
$retour .= str_repeat(' ', 20).''."\n";
|
156 |
// Si l'url de la page d'inscription est stockée dans les paramêtres, nous l'affichons
|
157 |
// Si l'url de la page d'inscription est stockée dans les paramêtres, nous l'affichons
|
- |
|
158 |
if (isset($InfoAuthBdd->url_inscription) || isset($InfoAuthBdd->url_inscription_aide)) {
|
- |
|
159 |
$retour .= '<p id="inscription_info">';
|
157 |
if (isset($InfoAuthBdd->url_inscription)) {
|
160 |
if (isset($InfoAuthBdd->url_inscription)) {
|
158 |
$retour .= '<p><a id="lien_inscription" href="'.$InfoAuthBdd->url_inscription.'">'.
|
161 |
$retour .= '<a id="lien_inscription" href="'.$InfoAuthBdd->url_inscription.'">'.
|
159 |
IDEN_LG_INSCRIPTION_URL.
|
162 |
IDEN_LG_INSCRIPTION_URL.
|
- |
|
163 |
'</a>';
|
- |
|
164 |
}
|
- |
|
165 |
if (isset($InfoAuthBdd->url_inscription_aide)) {
|
- |
|
166 |
$retour .= '<a id="inscription_aide" href="'.$InfoAuthBdd->url_inscription_aide.'">'.
|
- |
|
167 |
IDEN_LG_INSCRIPTION_AIDE.
|
160 |
'</a></p>'."\n";
|
168 |
'</a>';
|
- |
|
169 |
}
|
- |
|
170 |
$retour .= '</p>'."\n";
|
161 |
}
|
171 |
}
|
162 |
$retour .= str_repeat(' ', 16).'</fieldset>'."\n";
|
172 |
$retour .= str_repeat(' ', 16).'</fieldset>'."\n";
|
163 |
$retour .= str_repeat(' ', 16).'</form>';
|
173 |
$retour .= str_repeat(' ', 16).'</form>';
|
164 |
} else {
|
174 |
} else {
|
165 |
// L'utilisateur est identifié. Nous affichons ses informations.
|
175 |
// L'utilisateur est identifié. Nous affichons ses informations.
|
Line 204... |
Line 214... |
204 |
|
214 |
|
205 |
|
215 |
|
206 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
216 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
- |
|
217 |
*
|
- |
|
218 |
* $Log: not supported by cvs2svn $
|
- |
|
219 |
* Revision 1.24 2006/11/20 17:42:40 jp_milcent
|
207 |
*
|
220 |
* Ajout d'un test activant ou pas la mémorisation de l'identification.
|
208 |
* $Log: not supported by cvs2svn $
|
221 |
*
|
209 |
* Revision 1.23 2006/11/20 17:30:40 jp_milcent
|
222 |
* Revision 1.23 2006/11/20 17:30:40 jp_milcent
|
210 |
* Amélioration de la gestion de l'identification.
|
223 |
* Amélioration de la gestion de l'identification.
|
211 |
* Utilisation des durées de session correcte.
|
224 |
* Utilisation des durées de session correcte.
|