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.36 2007-11-27 11:26:55 jp_milcent Exp $
|
22 |
// CVS : $Id: identification.php,v 1.37 2008-04-18 14:19:09 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.36 $ $Date: 2007-11-27 11:26:55 $
|
41 |
*@version $Revision: 1.37 $ $Date: 2008-04-18 14:19:09 $
|
42 |
// +------------------------------------------------------------------------------------------------------+
|
42 |
// +------------------------------------------------------------------------------------------------------+
|
43 |
*/
|
43 |
*/
|
Line 44... |
Line 44... |
44 |
|
44 |
|
45 |
// +------------------------------------------------------------------------------------------------------+
|
45 |
// +------------------------------------------------------------------------------------------------------+
|
Line 138... |
Line 138... |
138 |
if (!isset($options['template'])) {
|
138 |
if (!isset($options['template'])) {
|
139 |
$options['template'] = IDEN_CHEMIN_APPLETTE.'squelettes/'.IDEN_SQUELETTE_DEFAUT;
|
139 |
$options['template'] = IDEN_CHEMIN_APPLETTE.'squelettes/'.IDEN_SQUELETTE_DEFAUT;
|
140 |
}
|
140 |
}
|
141 |
// Initialisation de variable.
|
141 |
// Initialisation de variable.
|
142 |
$retour = '';
|
142 |
$retour = '';
|
- |
|
143 |
// Gestion des attributs "id" des balises XHTML uniques
|
- |
|
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.2 2008-04-18 14:14:55 jp_milcent
|
- |
|
224 |
* Gestion de plusieurs applettes identifications sur la même page html.
|
- |
|
225 |
* Correction de bogues.
|
- |
|
226 |
*
|
- |
|
227 |
* Revision 1.36 2007-11-27 11:26:55 jp_milcent
|
216 |
*
|
228 |
* Fusion avec la livraison AHA : 27 novembre 2007
|
217 |
* $Log: not supported by cvs2svn $
|
229 |
*
|
218 |
* Revision 1.35.2.1 2007-11-27 11:25:30 jp_milcent
|
230 |
* Revision 1.35.2.1 2007-11-27 11:25:30 jp_milcent
|
219 |
* Correction bogue : non affichage de l'url d'erreur de saisie du login.
|
231 |
* Correction bogue : non affichage de l'url d'erreur de saisie du login.
|
220 |
*
|
232 |
*
|