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.35.2.1 2007-11-27 11:25:30 jp_milcent Exp $
|
22 |
// CVS : $Id: identification.php,v 1.35.2.2 2008-04-18 14:14:55 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.35.2.1 $ $Date: 2007-11-27 11:25:30 $
|
41 |
*@version $Revision: 1.35.2.2 $ $Date: 2008-04-18 14:14:55 $
|
42 |
// +------------------------------------------------------------------------------------------------------+
|
42 |
// +------------------------------------------------------------------------------------------------------+
|
43 |
*/
|
43 |
*/
|
Line 44... |
Line 44... |
44 |
|
44 |
|
45 |
// +------------------------------------------------------------------------------------------------------+
|
45 |
// +------------------------------------------------------------------------------------------------------+
|
Line 80... |
Line 80... |
80 |
setcookie(session_name(), session_id(), time()-3600, '/');
|
80 |
setcookie(session_name(), session_id(), time()-3600, '/');
|
81 |
// Destruction du cookie de permanence de l'identitification de Papyrus
|
81 |
// Destruction du cookie de permanence de l'identitification de Papyrus
|
82 |
setcookie($cookie_persistant_nom, '', time()-3600, '/');
|
82 |
setcookie($cookie_persistant_nom, '', time()-3600, '/');
|
83 |
//$GLOBALS['_GEN_commun']['pear_auth']->start();
|
83 |
//$GLOBALS['_GEN_commun']['pear_auth']->start();
|
84 |
} else {
|
84 |
} else {
|
- |
|
85 |
|
85 |
if (isset($_REQUEST['connexion'])) {
|
86 |
if (isset($_REQUEST['connexion'])) {
|
86 |
// Si un formulaire nous renvoie en POST une variable "connexion", nous logons l'utilisateur.
|
87 |
// Si un formulaire nous renvoie en POST une variable "connexion", nous logons l'utilisateur.
|
87 |
// Nous vérifions que l'utilisateur est coché "Mémoriser mon compte"
|
88 |
// Nous vérifions que l'utilisateur est coché "Mémoriser mon compte"
|
88 |
if (isset($_POST['persistant']) && $_POST['persistant'] == 'o' && IDEN_AUTH_SESSION_DUREE != 0) {
|
89 |
if (isset($_POST['persistant']) && $_POST['persistant'] == 'o' && IDEN_AUTH_SESSION_DUREE != 0) {
|
89 |
// Expiration si l'utilisateur ne referme pas son navigateur
|
90 |
// Expiration si l'utilisateur ne referme pas son navigateur
|
Line 138... |
Line 139... |
138 |
if (!isset($options['template'])) {
|
139 |
if (!isset($options['template'])) {
|
139 |
$options['template'] = IDEN_CHEMIN_APPLETTE.'squelettes/'.IDEN_SQUELETTE_DEFAUT;
|
140 |
$options['template'] = IDEN_CHEMIN_APPLETTE.'squelettes/'.IDEN_SQUELETTE_DEFAUT;
|
140 |
}
|
141 |
}
|
141 |
// Initialisation de variable.
|
142 |
// Initialisation de variable.
|
142 |
$retour = '';
|
143 |
$retour = '';
|
- |
|
144 |
$id_xhtml = '';
|
- |
|
145 |
if ( $GLOBALS['_PAPYRUS_']['applette']['comptage']['afficherFormIdentification'] > 1) {
|
- |
|
146 |
$id_xhtml = $GLOBALS['_PAPYRUS_']['applette']['comptage']['afficherFormIdentification'];
|
- |
|
147 |
}
|
143 |
$objet_pear_auth =& $_GEN_commun['pear_auth'];
|
148 |
$objet_pear_auth =& $_GEN_commun['pear_auth'];
|
144 |
$objet_pear_db =& $_GEN_commun['pear_db'];
|
149 |
$objet_pear_db =& $_GEN_commun['pear_db'];
|
145 |
$InfoAuthBdd =& $_GEN_commun['info_auth_bdd'];
|
150 |
$InfoAuthBdd =& $_GEN_commun['info_auth_bdd'];
|
146 |
$objet_url =& $_GEN_commun['url'];
|
151 |
$objet_url =& $_GEN_commun['url'];
|
147 |
$url = $objet_url->getURL();
|
152 |
$url = $objet_url->getURL();
|
Line 196... |
Line 201... |
196 |
$chp_structure = $objet_pear_auth->getAuthData($InfoAuthBdd->chp_structure_nom);
|
201 |
$chp_structure = $objet_pear_auth->getAuthData($InfoAuthBdd->chp_structure_nom);
|
197 |
}
|
202 |
}
|
198 |
if ($objet_pear_auth->getAuth()) { $loggue = true; } else { $loggue = false; }
|
203 |
if ($objet_pear_auth->getAuth()) { $loggue = true; } else { $loggue = false; }
|
Line 199... |
Line 204... |
199 |
|
204 |
|
200 |
ob_start();
|
205 |
ob_start();
|
201 |
include_once $options['template'];
|
206 |
include $options['template'];
|
202 |
$retour = ob_get_contents();
|
207 |
$retour = ob_get_contents();
|
203 |
// Arrete et detruit le buffer
|
208 |
// Arrete et detruit le buffer
|
Line 204... |
Line 209... |
204 |
ob_end_clean();
|
209 |
ob_end_clean();
|
Line 213... |
Line 218... |
213 |
|
218 |
|
214 |
|
219 |
|
215 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
220 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
- |
|
221 |
*
|
- |
|
222 |
* $Log: not supported by cvs2svn $
|
- |
|
223 |
* Revision 1.35.2.1 2007-11-27 11:25:30 jp_milcent
|
216 |
*
|
224 |
* Correction bogue : non affichage de l'url d'erreur de saisie du login.
|
217 |
* $Log: not supported by cvs2svn $
|
225 |
*
|
218 |
* Revision 1.35 2007-10-11 14:14:22 florian
|
226 |
* Revision 1.35 2007-10-11 14:14:22 florian
|
219 |
* amelioration du template de l'applette inscription
|
227 |
* amelioration du template de l'applette inscription
|
220 |
*
|
228 |
*
|