| Line 1... |
Line 1... |
| 1 |
<?php
|
1 |
<?php
|
| 2 |
/*vim: set expandtab tabstop=4 shiftwidth=4: */
|
2 |
/*vim: set expandtab tabstop=4 shiftwidth=4: */
|
| 3 |
// +------------------------------------------------------------------------------------------------------+
|
3 |
// +------------------------------------------------------------------------------------------------------+
|
| 4 |
// | PHP version 4.1 |
|
4 |
// | PHP version 4.1 |
|
| 5 |
// +------------------------------------------------------------------------------------------------------+
|
5 |
// +------------------------------------------------------------------------------------------------------+
|
| 6 |
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) |
|
6 |
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) |
|
| 7 |
// +------------------------------------------------------------------------------------------------------+
|
7 |
// +------------------------------------------------------------------------------------------------------+
|
| 8 |
// | This library is free software; you can redistribute it and/or |
|
8 |
// | This library is free software; you can redistribute it and/or |
|
| 9 |
// | modify it under the terms of the GNU Lesser General Public |
|
9 |
// | modify it under the terms of the GNU Lesser General Public |
|
| 10 |
// | License as published by the Free Software Foundation; either |
|
10 |
// | License as published by the Free Software Foundation; either |
|
| 11 |
// | version 2.1 of the License, or (at your option) any later version. |
|
11 |
// | version 2.1 of the License, or (at your option) any later version. |
|
| 12 |
// | |
|
12 |
// | |
|
| 13 |
// | This library is distributed in the hope that it will be useful, |
|
13 |
// | This library is distributed in the hope that it will be useful, |
|
| 14 |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 15 |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
15 |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
| 16 |
// | Lesser General Public License for more details. |
|
16 |
// | Lesser General Public License for more details. |
|
| 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.25 2006-11-20 18:40:33 jp_milcent Exp $
|
22 |
// CVS : $Id: identification.php,v 1.26 2006-12-01 16:33:40 florian 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 :
|
| 28 |
* - Variable globale de Génésia.
|
28 |
* - Variable globale de Génésia.
|
| 29 |
* - Pear Auth
|
29 |
* - Pear Auth
|
| 30 |
* - Pear Net_URL
|
30 |
* - Pear Net_URL
|
| 31 |
*
|
31 |
*
|
| 32 |
* A faire : remplacer le formulaire par un QuickForm
|
32 |
* A faire : remplacer le formulaire par un QuickForm
|
| 33 |
*
|
33 |
*
|
| 34 |
*@package Applette
|
34 |
*@package Applette
|
| 35 |
*@subpackage Identification
|
35 |
*@subpackage Identification
|
| 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.25 $ $Date: 2006-11-20 18:40:33 $
|
41 |
*@version $Revision: 1.26 $ $Date: 2006-12-01 16:33:40 $
|
| 42 |
// +------------------------------------------------------------------------------------------------------+
|
42 |
// +------------------------------------------------------------------------------------------------------+
|
| 43 |
*/
|
43 |
*/
|
| 44 |
|
44 |
|
| 45 |
// +------------------------------------------------------------------------------------------------------+
|
45 |
// +------------------------------------------------------------------------------------------------------+
|
| 46 |
// | ENTÊTE du PROGRAMME |
|
46 |
// | ENTÊTE du PROGRAMME |
|
| 47 |
// +------------------------------------------------------------------------------------------------------+
|
47 |
// +------------------------------------------------------------------------------------------------------+
|
| 48 |
$_GEN_commun['info_applette_nom_fonction'] = 'afficherFormIdentification';
|
48 |
$GLOBALS['_GEN_commun']['info_applette_nom_fonction'] = 'afficherFormIdentification';
|
| 49 |
$_GEN_commun['info_applette_balise'] = 'IDENTIFICATION';
|
49 |
$GLOBALS['_GEN_commun']['info_applette_balise'] = '<!-- '.$GLOBALS['_GEN_commun']['balise_prefixe'].'(IDENTIFICATION) -->';
|
| Line 50... |
Line 50... |
| 50 |
|
50 |
|
| 51 |
/** Inclusion du fichier de configuration de cette applette.*/
|
51 |
/** Inclusion du fichier de configuration de cette applette.*/
|
| Line 52... |
Line 52... |
| 52 |
require_once GEN_CHEMIN_APPLETTE.'identification/configuration/iden_config.inc.php';
|
52 |
require_once GEN_CHEMIN_APPLETTE.'identification'.GEN_SEP.'configuration'.GEN_SEP.'iden_config.inc.php';
|
| 53 |
|
53 |
|
| 54 |
// Inclusion des fichiers de traduction de l'applette.
|
54 |
// Inclusion des fichiers de traduction de l'applette.
|
| 55 |
if (file_exists(IDEN_CHEMIN_LANGUE.'iden_langue_'.$_GEN_commun['i18n'].'.inc.php')) {
|
55 |
if (file_exists(IDEN_CHEMIN_LANGUE.'iden_langue_'.$GLOBALS['_GEN_commun']['i18n'].'.inc.php')) {
|
| 56 |
/** Inclusion du fichier de traduction suite à la transaction avec le navigateur.*/
|
56 |
/** Inclusion du fichier de traduction suite à la transaction avec le navigateur.*/
|
| 57 |
require_once IDEN_CHEMIN_LANGUE.'iden_langue_'.$_GEN_commun['i18n'].'.inc.php';
|
57 |
require_once IDEN_CHEMIN_LANGUE.'iden_langue_'.$GLOBALS['_GEN_commun']['i18n'].'.inc.php';
|
| 58 |
} else {
|
58 |
} else {
|
| 59 |
/** Inclusion du fichier de traduction par défaut.*/
|
59 |
/** Inclusion du fichier de traduction par défaut.*/
|
| 60 |
require_once IDEN_CHEMIN_LANGUE.'iden_langue_'.IDEN_I18N_DEFAUT.'.inc.php';
|
60 |
require_once IDEN_CHEMIN_LANGUE.'iden_langue_'.IDEN_I18N_DEFAUT.'.inc.php';
|
| 61 |
}
|
61 |
}
|
| 62 |
// +------------------------------------------------------------------------------------------------------+
|
62 |
// +------------------------------------------------------------------------------------------------------+
|
| 63 |
// | CORPS du PROGRAMME |
|
63 |
// | CORPS du PROGRAMME |
|
| 64 |
// +------------------------------------------------------------------------------------------------------+
|
64 |
// +------------------------------------------------------------------------------------------------------+
|
| 65 |
|
65 |
|
| 66 |
// Si le site utilise une authentification.
|
66 |
// Si le site utilise une authentification.
|
| 67 |
if ($GLOBALS['_GEN_commun']['info_auth']->gsa_ce_type_auth == 1) {
|
67 |
if ($GLOBALS['_GEN_commun']['info_auth']->gsa_ce_type_auth == 1) {
|
| 68 |
// Si un formulaire nous renvoie en POST une variable "deconnexion", nous délogons l'utilisateur.
|
68 |
// Si un formulaire nous renvoie en POST une variable "deconnexion", nous délogons l'utilisateur.
|
| 69 |
if (isset($_REQUEST['deconnexion']) || isset($_REQUEST['logout'])) {
|
69 |
if (isset($_REQUEST['deconnexion']) || isset($_REQUEST['logout'])) {
|
| 70 |
$GLOBALS['_GEN_commun']['pear_auth']->logout();
|
70 |
$GLOBALS['_GEN_commun']['pear_auth']->logout();
|
| 71 |
// Destruction du cookie de Papyrus
|
71 |
// Destruction du cookie de Papyrus
|
| 72 |
setcookie(session_name(), session_id(), time()-3600, '/');
|
72 |
setcookie(session_name(), session_id(), time()-3600, '/');
|
| 73 |
}
|
73 |
}
|
| 74 |
// Si un formulaire nous renvoie en POST une variable "connexion", nous logons l'utilisateur.
|
74 |
// Si un formulaire nous renvoie en POST une variable "connexion", nous logons l'utilisateur.
|
| 75 |
if (isset($_REQUEST['connexion'])) {
|
75 |
if (isset($_REQUEST['connexion'])) {
|
| 76 |
// Nous vérifions que l'utilisateur est coché "Mémoriser mon compte"
|
76 |
// Nous vérifions que l'utilisateur est coché "Mémoriser mon compte"
|
| 77 |
if (isset($_POST['persistant']) && $_POST['persistant'] == 'o' && IDEN_AUTH_SESSION_DUREE != 0) {
|
77 |
if (isset($_POST['persistant']) && $_POST['persistant'] == 'o' && IDEN_AUTH_SESSION_DUREE != 0) {
|
| 78 |
//echo '<pre>'.print_r($_POST, true).'</pre>';
|
78 |
//echo '<pre>'.print_r($_POST, true).'</pre>';
|
| 79 |
// Expiration si l'utilisateur ne referme pas son navigateur
|
79 |
// Expiration si l'utilisateur ne referme pas son navigateur
|
| 80 |
$GLOBALS['_GEN_commun']['pear_auth']->setExpire((int)IDEN_AUTH_SESSION_DUREE);
|
80 |
$GLOBALS['_GEN_commun']['pear_auth']->setExpire((int)IDEN_AUTH_SESSION_DUREE);
|
| 81 |
// Pour que la session dure même après avoir refermer son navigateur
|
81 |
// Pour que la session dure même après avoir refermer son navigateur
|
| 82 |
setcookie(session_name(), session_id(), (int)IDEN_AUTH_SESSION_DUREE, '/');
|
82 |
setcookie(session_name(), session_id(), (int)IDEN_AUTH_SESSION_DUREE, '/');
|
| 83 |
}
|
83 |
}
|
| 84 |
$GLOBALS['_GEN_commun']['pear_auth']->login();
|
84 |
$GLOBALS['_GEN_commun']['pear_auth']->login();
|
| 85 |
$_SESSION['username'] = $username;
|
85 |
$_SESSION['username'] = $username;
|
| 86 |
}
|
86 |
}
|
| 87 |
}
|
87 |
}
|
| 88 |
|
88 |
|
| 89 |
// +------------------------------------------------------------------------------------------------------+
|
89 |
// +------------------------------------------------------------------------------------------------------+
|
| 90 |
// | LISTE de FONCTIONS |
|
90 |
// | LISTE de FONCTIONS |
|
| 91 |
// +------------------------------------------------------------------------------------------------------+
|
91 |
// +------------------------------------------------------------------------------------------------------+
|
| 92 |
|
92 |
|
| 93 |
/** Fonction afficherFormIdentification() - Retourne une formulaire pour s'identifier.
|
93 |
/** Fonction afficherFormIdentification() - Retourne une formulaire pour s'identifier.
|
| 94 |
*
|
94 |
*
|
| 95 |
* Retourne un formulaire d'identificatin ou de déconnexion suivant que l'utilisateur est
|
95 |
* Retourne un formulaire d'identificatin ou de déconnexion suivant que l'utilisateur est
|
| 96 |
* identifié ou pas.
|
96 |
* identifié ou pas.
|
| 97 |
*
|
97 |
*
|
| 98 |
* @param array tableau d'éventuel arguments présent dans la balise transmis à la fonction.
|
98 |
* @param array tableau d'éventuel arguments présent dans la balise transmis à la fonction.
|
| 99 |
* @param array tableau global de Papyrus.
|
99 |
* @param array tableau global de Papyrus.
|
| 100 |
* @return string formulaire de connexion ou de déconnexion.
|
100 |
* @return string formulaire de connexion ou de déconnexion.
|
| 101 |
*/
|
101 |
*/
|
| 102 |
function afficherFormIdentification($tab_arguments, &$_GEN_commun)
|
102 |
function afficherFormIdentification($tab_arguments, $_GEN_commun)
|
| 103 |
{
|
103 |
{
|
| 104 |
// Initialisation de variable.
|
104 |
// Initialisation de variable.
|
| 105 |
$retour = '';
|
105 |
$retour = '';
|
| 106 |
$objet_pear_auth =& $GLOBALS['_GEN_commun']['pear_auth'];
|
106 |
$objet_pear_auth =& $_GEN_commun['pear_auth'];
|
| 107 |
$objet_pear_db =& $GLOBALS['_GEN_commun']['pear_db'];
|
107 |
$objet_pear_db =& $_GEN_commun['pear_db'];
|
| 108 |
$InfoAuthBdd =& $GLOBALS['_GEN_commun']['info_auth_bdd'];
|
108 |
$InfoAuthBdd =& $_GEN_commun['info_auth_bdd'];
|
| 109 |
$objet_url =& $GLOBALS['_GEN_commun']['url'];
|
109 |
$objet_url =& $_GEN_commun['url'];
|
| 110 |
$url = $objet_url->getURL();
|
110 |
$url = $objet_url->getURL();
|
| 111 |
|
111 |
|
| 112 |
// Récupération des valeurs pour le login et le mot de passe
|
112 |
// Récupération des valeurs pour le login et le mot de passe
|
| 113 |
$mot_de_passe = (! isset($_POST['password'])) ? '' : $_POST['password'];
|
113 |
$mot_de_passe = (! isset($_POST['password'])) ? '' : $_POST['password'];
|
| 114 |
$login = (! isset($_POST['username'])) ? '' : $_POST['username'];
|
114 |
$login = (! isset($_POST['username'])) ? '' : $_POST['username'];
|
| 115 |
|
115 |
|
| 116 |
// ATTENTION : Partie à supprimer une fois les mise à jour effectué dans l'annuaire de Tela Botanica
|
116 |
// ATTENTION : Partie à supprimer une fois les mise à jour effectué dans l'annuaire de Tela Botanica
|
| 117 |
// Devrait être déplacer dans l'appli inscription de Tela.
|
117 |
// Devrait être déplacer dans l'appli inscription de Tela.
|
| 118 |
if (isset($InfoAuthBdd->gsab_nom_table) && $InfoAuthBdd->gsab_nom_table == 'annuaire_tela') {
|
118 |
if (isset($InfoAuthBdd->gsab_nom_table) && $InfoAuthBdd->gsab_nom_table == 'annuaire_tela') {
|
| 119 |
verification_mot_de_passe($objet_pear_db, $mot_de_passe, $login);
|
119 |
verification_mot_de_passe($objet_pear_db, $mot_de_passe, $login);
|
| 120 |
if (isset($_POST['connexion'])) {
|
120 |
if (isset($_POST['connexion'])) {
|
| 121 |
$objet_pear_auth->login();
|
121 |
$objet_pear_auth->login();
|
| 122 |
}
|
122 |
}
|
| 123 |
}
|
123 |
}
|
| 124 |
|
124 |
|
| 125 |
if (! $objet_pear_auth->getAuth()) {
|
125 |
if (! $objet_pear_auth->getAuth()) {
|
| 126 |
// L'utilisateur a essayé de s'identifier mais a échoué
|
126 |
// L'utilisateur a essayé de s'identifier mais a échoué
|
| 127 |
if ($login != '') {
|
127 |
if ($login != '') {
|
| 128 |
$retour .= '<span class="erreur">'.IDEN_ECHEC_AUTH ;
|
128 |
$retour .= '<span class="erreur">'.IDEN_ECHEC_AUTH ;
|
| 129 |
if (isset($InfoAuthBdd->url_inscription)) {
|
129 |
if (isset($InfoAuthBdd->url_inscription)) {
|
| 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 |
|
| 136 |
// L'utilisateur n'est pas identifié:
|
136 |
// L'utilisateur n'est pas identifié:
|
| 137 |
$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";
|
| 138 |
$retour .= str_repeat(' ', 16).'<fieldset>'."\n";
|
138 |
$retour .= str_repeat(' ', 16).'<fieldset>'."\n";
|
| 139 |
$retour .= str_repeat(' ', 20).'<legend>'.IDEN_LG_FORM_LEGEND.'</legend>'."\n";
|
139 |
$retour .= str_repeat(' ', 20).'<legend>'.IDEN_LG_FORM_LEGEND.'</legend>'."\n";
|
| 140 |
$retour .= str_repeat(' ', 20).''."\n";
|
140 |
$retour .= str_repeat(' ', 20).''."\n";
|
| 141 |
$retour .= str_repeat(' ', 24).'<label for="username">'.IDEN_LG_FORM_LABEL_COURRIEL.'</label>'."\n";
|
141 |
$retour .= str_repeat(' ', 24).'<label for="username">'.IDEN_LG_FORM_LABEL_COURRIEL.'</label>'."\n";
|
| 142 |
$retour .= str_repeat(' ', 24).'<input type="text" id="username" name="username" maxlength="80" tabindex="1" value="'.IDEN_LG_FORM_VALUE_COURRIEL.'" />'."\n";
|
142 |
$retour .= str_repeat(' ', 24).'<input type="text" id="username" name="username" maxlength="80" tabindex="1" value="'.IDEN_LG_FORM_VALUE_COURRIEL.'" />'."\n";
|
| 143 |
$retour .= str_repeat(' ', 20).''."\n";
|
143 |
$retour .= str_repeat(' ', 20).''."\n";
|
| 144 |
$retour .= str_repeat(' ', 20).''."\n";
|
144 |
$retour .= str_repeat(' ', 20).''."\n";
|
| 145 |
$retour .= str_repeat(' ', 24).'<label for="password">'.IDEN_LG_FORM_LABEL_MDP.'</label>'."\n";
|
145 |
$retour .= str_repeat(' ', 24).'<label for="password">'.IDEN_LG_FORM_LABEL_MDP.'</label>'."\n";
|
| 146 |
$retour .= str_repeat(' ', 24).'<input type="password" id="password" name="password" maxlength="80" tabindex="2" value="'.IDEN_LG_FORM_VALUE_MDP.'" />'."\n";
|
146 |
$retour .= str_repeat(' ', 24).'<input type="password" id="password" name="password" maxlength="80" tabindex="2" value="'.IDEN_LG_FORM_VALUE_MDP.'" />'."\n";
|
| 147 |
$retour .= str_repeat(' ', 20).''."\n";
|
147 |
$retour .= str_repeat(' ', 20).''."\n";
|
| 148 |
$retour .= str_repeat(' ', 20).''."\n";
|
148 |
$retour .= str_repeat(' ', 20).''."\n";
|
| 149 |
if (IDEN_AUTH_SESSION_DUREE != 0) {
|
149 |
if (IDEN_AUTH_SESSION_DUREE != 0) {
|
| 150 |
$retour .= str_repeat(' ', 24).'<input type="checkbox" id="persistant" name="persistant" tabindex="3" value="o" />'."\n";
|
150 |
$retour .= str_repeat(' ', 24).'<input type="checkbox" id="persistant" name="persistant" tabindex="3" value="o" />'."\n";
|
| 151 |
$retour .= str_repeat(' ', 24).'<label id="persistant_label" for="persistant">'.'Mémoriser mon compte'.'</label>'."\n";
|
151 |
$retour .= str_repeat(' ', 24).'<label id="persistant_label" for="persistant">'.'Mémoriser mon compte'.'</label>'."\n";
|
| 152 |
}
|
152 |
}
|
| 153 |
$retour .= str_repeat(' ', 20).''."\n";
|
153 |
$retour .= str_repeat(' ', 20).''."\n";
|
| 154 |
$retour .= str_repeat(' ', 20).''."\n";
|
154 |
$retour .= str_repeat(' ', 20).''."\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(' ', 24).'<input type="submit" id="connexion" name="connexion" tabindex="4" value="'.IDEN_LG_FORM_VALUE_SUBMIT.'" />'."\n";
|
| 156 |
$retour .= str_repeat(' ', 20).''."\n";
|
156 |
$retour .= str_repeat(' ', 20).''."\n";
|
| 157 |
// 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)) {
|
158 |
if (isset($InfoAuthBdd->url_inscription) || isset($InfoAuthBdd->url_inscription_aide)) {
|
| 159 |
$retour .= '<p id="inscription_info">';
|
159 |
$retour .= '<p id="inscription_info">';
|
| 160 |
if (isset($InfoAuthBdd->url_inscription)) {
|
160 |
if (isset($InfoAuthBdd->url_inscription)) {
|
| 161 |
$retour .= '<a id="lien_inscription" href="'.$InfoAuthBdd->url_inscription.'">'.
|
161 |
$retour .= '<a id="lien_inscription" href="'.$InfoAuthBdd->url_inscription.'">'.
|
| 162 |
IDEN_LG_INSCRIPTION_URL.
|
162 |
IDEN_LG_INSCRIPTION_URL.
|
| 163 |
'</a>';
|
163 |
'</a>';
|
| 164 |
}
|
164 |
}
|
| 165 |
if (isset($InfoAuthBdd->url_inscription_aide)) {
|
165 |
if (isset($InfoAuthBdd->url_inscription_aide)) {
|
| 166 |
$retour .= '<a id="inscription_aide" href="'.$InfoAuthBdd->url_inscription_aide.'">'.
|
166 |
$retour .= '<a id="inscription_aide" href="'.$InfoAuthBdd->url_inscription_aide.'">'.
|
| 167 |
IDEN_LG_INSCRIPTION_AIDE.
|
167 |
IDEN_LG_INSCRIPTION_AIDE.
|
| 168 |
'</a>';
|
168 |
'</a>';
|
| 169 |
}
|
169 |
}
|
| 170 |
$retour .= '</p>'."\n";
|
170 |
$retour .= '</p>'."\n";
|
| 171 |
}
|
171 |
}
|
| 172 |
$retour .= str_repeat(' ', 16).'</fieldset>'."\n";
|
172 |
$retour .= str_repeat(' ', 16).'</fieldset>'."\n";
|
| 173 |
$retour .= str_repeat(' ', 16).'</form>';
|
173 |
$retour .= str_repeat(' ', 16).'</form>';
|
| 174 |
} else {
|
174 |
} else {
|
| 175 |
// L'utilisateur est identifié. Nous affichons ses informations.
|
175 |
// L'utilisateur est identifié. Nous affichons ses informations.
|
| 176 |
// Affichage du prénom et nom d'une personne ou du nom de la structure en fonction des paramêtres
|
176 |
// Affichage du prénom et nom d'une personne ou du nom de la structure en fonction des paramêtres
|
| 177 |
// de l'annuaire utilisé
|
177 |
// de l'annuaire utilisé
|
| 178 |
$retour .= str_repeat(' ', 16).'<p id="identification_info"><span id="identification_message">'.IDEN_LG_MESSAGE.'</span> ';
|
178 |
$retour .= str_repeat(' ', 16).'<p id="identification_info"><span id="identification_message">'.IDEN_LG_MESSAGE.'</span> ';
|
| 179 |
// Si les intitulés des champs nom et prénoms d'une personne ou le nom d'une structure sont indiqués nous les affichons
|
179 |
// Si les intitulés des champs nom et prénoms d'une personne ou le nom d'une structure sont indiqués nous les affichons
|
| 180 |
if (isset($InfoAuthBdd->chp_personne_prenom) && isset($InfoAuthBdd->chp_personne_nom)) {
|
180 |
if (isset($InfoAuthBdd->chp_personne_prenom) && isset($InfoAuthBdd->chp_personne_nom)) {
|
| 181 |
$retour .= '<span id="identification_prenom">'.
|
181 |
$retour .= '<span id="identification_prenom">'.
|
| 182 |
$objet_pear_auth->getAuthData($InfoAuthBdd->chp_personne_prenom).
|
182 |
$objet_pear_auth->getAuthData($InfoAuthBdd->chp_personne_prenom).
|
| Line 196... |
Line 196... |
| 196 |
$retour .= str_repeat(' ', 20).'<a id="lien_inscription_modif" href="'.
|
196 |
$retour .= str_repeat(' ', 20).'<a id="lien_inscription_modif" href="'.
|
| 197 |
$InfoAuthBdd->url_inscription_modif.'">'.
|
197 |
$InfoAuthBdd->url_inscription_modif.'">'.
|
| 198 |
IDEN_LG_INSCRIPTION_URL_MODIF.
|
198 |
IDEN_LG_INSCRIPTION_URL_MODIF.
|
| 199 |
'</a>'."\n";
|
199 |
'</a>'."\n";
|
| 200 |
}
|
200 |
}
|
| 201 |
// Affichage du bouton de déconnexion
|
201 |
// Affichage du bouton de déconnexion
|
| 202 |
$objet_url->addQueryString('logout', 1);
|
202 |
$objet_url->addQueryString('logout', 1);
|
| 203 |
$retour .= str_repeat(' ', 20).'<a id="deconnexion" href="'.$objet_url->getURL().'">'.IDEN_LG_DECONNEXION.'</a>'."\n";
|
203 |
$retour .= str_repeat(' ', 20).'<a id="deconnexion" href="'.$objet_url->getURL().'">'.IDEN_LG_DECONNEXION.'</a>'."\n";
|
| 204 |
$objet_url->removeQueryString('logout');
|
204 |
$objet_url->removeQueryString('logout');
|
| 205 |
$retour .= str_repeat(' ', 16).'</p>'."\n";
|
205 |
$retour .= str_repeat(' ', 16).'</p>'."\n";
|
| 206 |
}
|
206 |
}
|
| 207 |
return $retour;
|
207 |
return $retour;
|
| 208 |
}
|
208 |
}
|
| 209 |
|
209 |
|
| 210 |
// +------------------------------------------------------------------------------------------------------+
|
210 |
// +------------------------------------------------------------------------------------------------------+
|
| 211 |
// | PIED du PROGRAMME |
|
211 |
// | PIED du PROGRAMME |
|
| 212 |
// +------------------------------------------------------------------------------------------------------+
|
212 |
// +------------------------------------------------------------------------------------------------------+
|
| 213 |
|
213 |
|
| 214 |
|
214 |
|
| 215 |
|
215 |
|
| 216 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
216 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
| 217 |
*
|
217 |
*
|
| 218 |
* $Log: not supported by cvs2svn $
|
218 |
* $Log: not supported by cvs2svn $
|
| - |
|
219 |
* Revision 1.25 2006/11/20 18:40:33 jp_milcent
|
| - |
|
220 |
* Amélioration de la gestion des infos sur l'inscription.
|
| - |
|
221 |
* Ajout du paramêtre url_inscription_aide permettant d'indiquer l'url vers une page d'aide sur l'inscription.
|
| - |
|
222 |
*
|
| 219 |
* Revision 1.24 2006/11/20 17:42:40 jp_milcent
|
223 |
* Revision 1.24 2006/11/20 17:42:40 jp_milcent
|
| 220 |
* Ajout d'un test activant ou pas la mémorisation de l'identification.
|
224 |
* Ajout d'un test activant ou pas la mémorisation de l'identification.
|
| 221 |
*
|
225 |
*
|
| 222 |
* Revision 1.23 2006/11/20 17:30:40 jp_milcent
|
226 |
* Revision 1.23 2006/11/20 17:30:40 jp_milcent
|
| 223 |
* Amélioration de la gestion de l'identification.
|
227 |
* Amélioration de la gestion de l'identification.
|
| Line 297... |
Line 301... |
| 297 |
* Revision 1.1 2004/06/15 15:01:41 jpm
|
301 |
* Revision 1.1 2004/06/15 15:01:41 jpm
|
| 298 |
* Changement de nom et d'arborescence de Genesia en Papyrus.
|
302 |
* Changement de nom et d'arborescence de Genesia en Papyrus.
|
| 299 |
*
|
303 |
*
|
| 300 |
* Revision 1.5 2004/05/05 06:44:15 jpm
|
304 |
* Revision 1.5 2004/05/05 06:44:15 jpm
|
| 301 |
* Complément des commentaires indiquant les paquetages nécessaire à l'applette.
|
305 |
* Complément des commentaires indiquant les paquetages nécessaire à l'applette.
|
| 302 |
*
|
306 |
*
|
| 303 |
* Revision 1.4 2004/05/03 11:18:55 jpm
|
307 |
* Revision 1.4 2004/05/03 11:18:55 jpm
|
| 304 |
* Intégration de la variable globale de Génésia dans les arguments de la fonction de l'applette.
|
308 |
* Intégration de la variable globale de Génésia dans les arguments de la fonction de l'applette.
|
| 305 |
*
|
309 |
*
|
| 306 |
* Revision 1.3 2004/05/01 17:21:16 jpm
|
310 |
* Revision 1.3 2004/05/01 17:21:16 jpm
|
| 307 |
* Ajout d'un fieldset et d'une légende au formulaire.
|
311 |
* Ajout d'un fieldset et d'une légende au formulaire.
|
| 308 |
*
|
312 |
*
|
| 309 |
* Revision 1.2 2004/05/01 16:13:07 jpm
|
313 |
* Revision 1.2 2004/05/01 16:13:07 jpm
|
| 310 |
* Ajout du nom de la balise de l'applette dans le code de l'applette.
|
314 |
* Ajout du nom de la balise de l'applette dans le code de l'applette.
|
| 311 |
*
|
315 |
*
|
| 312 |
* Revision 1.1 2004/05/01 11:42:01 jpm
|
316 |
* Revision 1.1 2004/05/01 11:42:01 jpm
|
| 313 |
* Ajout de l'applette identification.
|
317 |
* Ajout de l'applette identification.
|
| 314 |
*
|
318 |
*
|
| 315 |
*
|
319 |
*
|
| 316 |
* +-- Fin du code ----------------------------------------------------------------------------------------+
|
320 |
* +-- Fin du code ----------------------------------------------------------------------------------------+
|
| 317 |
*/
|
321 |
*/
|
| 318 |
?>
|
322 |
?>
|
| 319 |
|
323 |
|