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.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 :
|
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.25 $ $Date: 2006-11-20 18:40:33 $
|
41 |
*@version $Revision: 1.26 $ $Date: 2006-12-01 16:33:40 $
|
42 |
// +------------------------------------------------------------------------------------------------------+
|
42 |
// +------------------------------------------------------------------------------------------------------+
|
43 |
*/
|
43 |
*/
|
Line 44... |
Line 44... |
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';
|
Line 49... |
Line 49... |
49 |
$_GEN_commun['info_applette_balise'] = 'IDENTIFICATION';
|
49 |
$GLOBALS['_GEN_commun']['info_applette_balise'] = '<!-- '.$GLOBALS['_GEN_commun']['balise_prefixe'].'(IDENTIFICATION) -->';
|
50 |
|
50 |
|
Line 51... |
Line 51... |
51 |
/** Inclusion du fichier de configuration de cette applette.*/
|
51 |
/** Inclusion du fichier de configuration de cette applette.*/
|
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.*/
|
Line 97... |
Line 97... |
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();
|
Line 111... |
Line 111... |
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'];
|
Line 214... |
Line 214... |
214 |
|
214 |
|
215 |
|
215 |
|
216 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
216 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
- |
|
217 |
*
|
- |
|
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.
|
217 |
*
|
221 |
* Ajout du paramêtre url_inscription_aide permettant d'indiquer l'url vers une page d'aide sur l'inscription.
|
218 |
* $Log: not supported by cvs2svn $
|
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 |
*
|