Subversion Repositories Applications.papyrus

Rev

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

Rev 369 Rev 388
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.14 2005-05-19 14:00:58 jpm Exp $
22
// CVS : $Id: identification.php,v 1.15 2005-06-02 11:56:00 jpm 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.14 $ $Date: 2005-05-19 14:00:58 $
41
*@version       $Revision: 1.15 $ $Date: 2005-06-02 11:56:00 $
42
// +------------------------------------------------------------------------------------------------------+
42
// +------------------------------------------------------------------------------------------------------+
43
*/
43
*/
Line 44... Line 44...
44
 
44
 
45
// +------------------------------------------------------------------------------------------------------+
45
// +------------------------------------------------------------------------------------------------------+
Line 136... Line 136...
136
            $objet_pear_auth->login();
136
            $objet_pear_auth->login();
137
        }
137
        }
138
    }
138
    }
Line 139... Line 139...
139
    
139
    
140
    if (! $objet_pear_auth->getAuth()) {
140
    if (! $objet_pear_auth->getAuth()) {
141
        // L'utilisateur n'est pas identifié:
-
 
142
        // Si l'url de la page d'inscription est stockée dans les paramêtres, nous l'affichons
-
 
143
        if (isset($GLOBALS['_GEN_commun']['info_auth_bdd']->url_inscription)) {
-
 
144
            $retour .=  '<p><a id="lien_inscription" href="'.$GLOBALS['_GEN_commun']['info_auth_bdd']->url_inscription.'">'.
-
 
145
                        IDEN_LG_INSCRIPTION_URL.
-
 
146
                        '</a></p>'."\n";
-
 
147
        }
141
        // L'utilisateur n'est pas identifié:
148
        $retour .= str_repeat(' ', 16).'<form id="form_connexion" class="form_identification" action="'.$url.'" method="post">'."\n";
142
        $retour .= str_repeat(' ', 16).'<form id="form_connexion" class="form_identification" action="'.$url.'" method="post">'."\n";
149
        $retour .= str_repeat(' ', 16).'<fieldset>'."\n";
143
        $retour .= str_repeat(' ', 16).'<fieldset>'."\n";
150
        $retour .= str_repeat(' ', 20).'<legend>'.'Identification'.'</legend>'."\n";
144
        $retour .= str_repeat(' ', 20).'<legend>'.'Identification'.'</legend>'."\n";
151
        $retour .= str_repeat(' ', 20).''."\n";
145
        $retour .= str_repeat(' ', 20).''."\n";
Line 156... Line 150...
156
        $retour .= str_repeat(' ', 24).'<label for="password">'.'Mot de passe :'.'</label>'."\n";
150
        $retour .= str_repeat(' ', 24).'<label for="password">'.'Mot de passe :'.'</label>'."\n";
157
        $retour .= str_repeat(' ', 24).'<input type="password" size="12" id="password" name="password" maxlength="80" tabindex="2" value="'.'mot de passe'.'" />'."\n";
151
        $retour .= str_repeat(' ', 24).'<input type="password" size="12" id="password" name="password" maxlength="80" tabindex="2" value="'.'mot de passe'.'" />'."\n";
158
        $retour .= str_repeat(' ', 20).''."\n";
152
        $retour .= str_repeat(' ', 20).''."\n";
159
        $retour .= str_repeat(' ', 20).''."\n";
153
        $retour .= str_repeat(' ', 20).''."\n";
160
        $retour .= str_repeat(' ', 24).'<input type="submit" id="connexion" name="connexion" tabindex="3" value="'.'ok'.'" />'."\n";
154
        $retour .= str_repeat(' ', 24).'<input type="submit" id="connexion" name="connexion" tabindex="3" value="'.'ok'.'" />'."\n";
161
        $retour .= str_repeat(' ', 20).''."\n";
155
        $retour .= str_repeat(' ', 20).''."\n";
-
 
156
        // Si l'url de la page d'inscription est stockée dans les paramêtres, nous l'affichons
-
 
157
        if (isset($GLOBALS['_GEN_commun']['info_auth_bdd']->url_inscription)) {
-
 
158
            $retour .=  '<p><a id="lien_inscription" href="'.$GLOBALS['_GEN_commun']['info_auth_bdd']->url_inscription.'">'.
-
 
159
                        IDEN_LG_INSCRIPTION_URL.
-
 
160
                        '</a></p>'."\n";
-
 
161
        }
162
        $retour .= str_repeat(' ', 16).'</fieldset>'."\n";
162
        $retour .= str_repeat(' ', 16).'</fieldset>'."\n";
163
        $retour .= str_repeat(' ', 16).'</form>';
163
        $retour .= str_repeat(' ', 16).'</form>';
164
    } else {
164
    } else {
165
        // L'utilisateur est identifié. Nous affichons ses informations.
165
        // L'utilisateur est identifié. Nous affichons ses informations.
166
        // Affichage du prénom et nom d'une personne ou du nom de la structure en fonction des paramêtres 
166
        // Affichage du prénom et nom d'une personne ou du nom de la structure en fonction des paramêtres 
Line 202... Line 202...
202
 
202
 
203
 
203
 
204
/* +--Fin du code ----------------------------------------------------------------------------------------+
204
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
205
*
-
 
206
* $Log: not supported by cvs2svn $
-
 
207
* Revision 1.14  2005/05/19 14:00:58  jpm
205
*
208
* Déplacement du menu de modif de l'inscription.
206
* $Log: not supported by cvs2svn $
209
*
207
* Revision 1.13  2005/04/14 16:37:22  jpm
210
* Revision 1.13  2005/04/14 16:37:22  jpm
208
* Ajout de la gestion de la modification de son inscription.
211
* Ajout de la gestion de la modification de son inscription.
209
*
212
*