| 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.4 2004-09-23 10:53:44 jpm Exp $
|
22 |
// CVS : $Id: identification.php,v 1.5 2004-09-23 14:31:12 jpm 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.4 $ $Date: 2004-09-23 10:53:44 $
|
41 |
*@version $Revision: 1.5 $ $Date: 2004-09-23 14:31:12 $
|
| 42 |
// +------------------------------------------------------------------------------------------------------+
|
42 |
// +------------------------------------------------------------------------------------------------------+
|
| 43 |
*/
|
43 |
*/
|
| Line 44... |
Line 44... |
| 44 |
|
44 |
|
| 45 |
// +------------------------------------------------------------------------------------------------------+
|
45 |
// +------------------------------------------------------------------------------------------------------+
|
| Line 80... |
Line 80... |
| 80 |
* @return string formulaire de connexion ou de déconnexion.
|
80 |
* @return string formulaire de connexion ou de déconnexion.
|
| 81 |
*/
|
81 |
*/
|
| 82 |
function afficherFormIdentification($tab_arguments, $_GEN_commun)
|
82 |
function afficherFormIdentification($tab_arguments, $_GEN_commun)
|
| 83 |
{
|
83 |
{
|
| 84 |
// Initialisation de variable.
|
84 |
// Initialisation de variable.
|
| 85 |
$objet_pear_auth = $_GEN_commun['pear_auth'];
|
85 |
$objet_pear_auth = $_GEN_commun['pear_auth'];
|
| - |
|
86 |
$objet_pear_db = $_GEN_commun['pear_db'];
|
| 86 |
$url = $_GEN_commun['url']->getUrl();
|
87 |
$url = $_GEN_commun['url']->getUrl();
|
| 87 |
// Récupération des valeurs pour le login et le mot de passe
|
88 |
// Récupération des valeurs pour le login et le mot de passe
|
| 88 |
$mot_de_passe = (! isset($_POST['password'])) ? '' : $_POST['password'];
|
89 |
$mot_de_passe = (! isset($_POST['password'])) ? '' : $_POST['password'];
|
| 89 |
$login = (! isset($_POST['username'])) ? '' : $_POST['username'];
|
90 |
$login = (! isset($_POST['username'])) ? '' : $_POST['username'];
|
| Line 90... |
Line 91... |
| 90 |
|
91 |
|
| 91 |
// ATTENTION : Partie à supprimer une fois les mise à jour effectué dans l'annuaire de Tela Botanica
|
92 |
// ATTENTION : Partie à supprimer une fois les mise à jour effectué dans l'annuaire de Tela Botanica
|
| 92 |
// Devrait être déplacer dans l'appli inscription de Tela.
|
93 |
// Devrait être déplacer dans l'appli inscription de Tela.
|
| 93 |
if (isset($_GEN_commun['auth_info']->gsab_nom_table) && $_GEN_commun['auth_info']->gsab_nom_table == 'annuaire_tela') {
|
94 |
if (isset($_GEN_commun['info_auth_bdd']->gsab_nom_table) && $_GEN_commun['info_auth_bdd']->gsab_nom_table == 'annuaire_tela') {
|
| - |
|
95 |
verification_mot_de_passe($objet_pear_db, $mot_de_passe, $login);
|
| - |
|
96 |
if (isset($_POST['connexion'])) {
|
| - |
|
97 |
$_GEN_commun['pear_auth']->login();
|
| 94 |
verification_mot_de_passe($db, $mot_de_passe, $login);
|
98 |
}
|
| Line 95... |
Line 99... |
| 95 |
}
|
99 |
}
|
| 96 |
|
100 |
|
| 97 |
if (! $objet_pear_auth->getAuth()) {
|
101 |
if (! $objet_pear_auth->getAuth()) {
|
| Line 139... |
Line 143... |
| 139 |
|
143 |
|
| 140 |
|
144 |
|
| 141 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
145 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
| - |
|
146 |
*
|
| - |
|
147 |
* $Log: not supported by cvs2svn $
|
| - |
|
148 |
* Revision 1.4 2004/09/23 10:53:44 jpm
|
| 142 |
*
|
149 |
* Suppression de l'attribut size. Gestion via les css.
|
| 143 |
* $Log: not supported by cvs2svn $
|
150 |
*
|
| 144 |
* Revision 1.3 2004/06/28 10:18:48 alex
|
151 |
* Revision 1.3 2004/06/28 10:18:48 alex
|
| 145 |
* suppression de balises <p>
|
152 |
* suppression de balises <p>
|
| 146 |
*
|
153 |
*
|