Subversion Repositories Applications.papyrus

Rev

Rev 399 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 399 Rev 441
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.16 2005-06-09 17:06:28 jpm Exp $
22
// CVS : $Id: identification.php,v 1.17 2005-09-12 09:17:17 alexandre_tb 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.16 $ $Date: 2005-06-09 17:06:28 $
41
*@version       $Revision: 1.17 $ $Date: 2005-09-12 09:17:17 $
42
// +------------------------------------------------------------------------------------------------------+
42
// +------------------------------------------------------------------------------------------------------+
43
*/
43
*/
Line 44... Line 44...
44
 
44
 
45
// +------------------------------------------------------------------------------------------------------+
45
// +------------------------------------------------------------------------------------------------------+
Line 122... Line 122...
122
    // Initialisation de variable.
122
    // Initialisation de variable.
123
    $retour = '';
123
    $retour = '';
124
    $objet_pear_auth =& $GLOBALS['_GEN_commun']['pear_auth'];
124
    $objet_pear_auth =& $GLOBALS['_GEN_commun']['pear_auth'];
125
    $objet_pear_db =& $GLOBALS['_GEN_commun']['pear_db'];
125
    $objet_pear_db =& $GLOBALS['_GEN_commun']['pear_db'];
126
    $url = $GLOBALS['_GEN_commun']['url']->getURL();
126
    $url = $GLOBALS['_GEN_commun']['url']->getURL();
-
 
127
    $objet_url = $GLOBALS['_GEN_commun']['url'] ;
127
    // Récupération des valeurs pour le login et le mot de passe
128
    // Récupération des valeurs pour le login et le mot de passe
128
    $mot_de_passe = (! isset($_POST['password']))    ? '' : $_POST['password'];
129
    $mot_de_passe = (! isset($_POST['password']))    ? '' : $_POST['password'];
129
    $login        = (! isset($_POST['username']))    ? '' : $_POST['username'];
130
    $login        = (! isset($_POST['username']))    ? '' : $_POST['username'];
Line 130... Line 131...
130
    
131
    
Line 187... Line 188...
187
                        $GLOBALS['_GEN_commun']['info_auth_bdd']->url_inscription_modif.'">'.
188
                        $GLOBALS['_GEN_commun']['info_auth_bdd']->url_inscription_modif.'">'.
188
                        IDEN_LG_INSCRIPTION_URL_MODIF.
189
                        IDEN_LG_INSCRIPTION_URL_MODIF.
189
                        '</a>'."\n";
190
                        '</a>'."\n";
190
        }
191
        }
191
        // Affichage du bouton de déconnexion
192
        // Affichage du bouton de déconnexion
-
 
193
        $objet_url->addQueryString('logout', 1) ;
192
        $retour .= str_repeat(' ', 20).'<a id="deconnexion" href="'.$url.'&amp;logout=1">'.IDEN_LG_DECONNEXION.'</a>'."\n";
194
        $retour .= str_repeat(' ', 20).'<a id="deconnexion" href="'.$objet_url->getURL().'">'.IDEN_LG_DECONNEXION.'</a>'."\n";
193
        $retour .= str_repeat(' ', 16).'</p>'."\n";
195
        $retour .= str_repeat(' ', 16).'</p>'."\n";
194
    }
196
    }
195
    return $retour;
197
    return $retour;
196
}
198
}
Line 202... Line 204...
202
 
204
 
203
 
205
 
204
/* +--Fin du code ----------------------------------------------------------------------------------------+
206
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
207
*
-
 
208
* $Log: not supported by cvs2svn $
-
 
209
* Revision 1.16  2005/06/09 17:06:28  jpm
205
*
210
* Ajout de constantes de langue.
206
* $Log: not supported by cvs2svn $
211
*
207
* Revision 1.15  2005/06/02 11:56:00  jpm
212
* Revision 1.15  2005/06/02 11:56:00  jpm
208
* Modification de l'affichage de l'identification.
213
* Modification de l'affichage de l'identification.
209
*
214
*