Subversion Repositories Applications.papyrus

Rev

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

Rev 1172 Rev 1176
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.30 2006-12-14 15:01:05 jp_milcent Exp $
22
// CVS : $Id: identification.php,v 1.31 2006-12-15 14:49:47 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.30 $ $Date: 2006-12-14 15:01:05 $
41
*@version       $Revision: 1.31 $ $Date: 2006-12-15 14:49:47 $
42
// +------------------------------------------------------------------------------------------------------+
42
// +------------------------------------------------------------------------------------------------------+
43
*/
43
*/
Line 44... Line 44...
44
 
44
 
45
// +------------------------------------------------------------------------------------------------------+
45
// +------------------------------------------------------------------------------------------------------+
Line 89... Line 89...
89
	    } else if (isset($_COOKIE[$cookie_persistant_nom])) {
89
	    } else if (isset($_COOKIE[$cookie_persistant_nom])) {
90
			// Si un cookie existe, nous loggons l'utilisateur.
90
			// Si un cookie existe, nous loggons l'utilisateur.
91
			$GLOBALS['_GEN_commun']['pear_auth']->password = substr($_COOKIE[$cookie_persistant_nom], 0, 32 );
91
			$GLOBALS['_GEN_commun']['pear_auth']->password = substr($_COOKIE[$cookie_persistant_nom], 0, 32 );
92
			$GLOBALS['_GEN_commun']['pear_auth']->username = substr($_COOKIE[$cookie_persistant_nom], 32);
92
			$GLOBALS['_GEN_commun']['pear_auth']->username = substr($_COOKIE[$cookie_persistant_nom], 32);
93
			// Nous sommes obligés de crypter le mot de passe
93
			// Nous sommes obligés de crypter le mot de passe
94
			 if (isset($GLOBALS['_GEN_commun']['pear_auth']->storage_options)) {
94
			if (isset($GLOBALS['_GEN_commun']['pear_auth']->storage_options)) {
95
				$GLOBALS['_GEN_commun']['pear_auth']->storage_options['cryptType'] = 'none';
95
				$GLOBALS['_GEN_commun']['pear_auth']->storage_options['cryptType'] = 'none';
-
 
96
    		}
96
    		} else if (isset($GLOBALS['_GEN_commun']['pear_auth']->storage->options)) {
97
    		if (isset($GLOBALS['_GEN_commun']['pear_auth']->storage->options)) {
97
				$GLOBALS['_GEN_commun']['pear_auth']->storage->options['cryptType'] = 'none';
98
				$GLOBALS['_GEN_commun']['pear_auth']->storage->options['cryptType'] = 'none';
98
			}
99
			}
-
 
100
			
99
		}
101
		}
100
		$GLOBALS['_GEN_commun']['pear_auth']->login();
102
		$GLOBALS['_GEN_commun']['pear_auth']->login();
-
 
103
		//echo '<pre>'.print_r($GLOBALS['_GEN_commun']['pear_auth'], true).'</pre>';
101
    }
104
    }
102
}
105
}
Line 103... Line 106...
103
 
106
 
104
// +------------------------------------------------------------------------------------------------------+
107
// +------------------------------------------------------------------------------------------------------+
Line 229... Line 232...
229
 
232
 
230
 
233
 
231
/* +--Fin du code ----------------------------------------------------------------------------------------+
234
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
235
*
-
 
236
* $Log: not supported by cvs2svn $
-
 
237
* Revision 1.30  2006/12/14 15:01:05  jp_milcent
-
 
238
* Utilisation d'un système permettant de mémoriser les idenitifications.
232
*
239
* Passage à Auth 1.4.3 et DB 1.7.6.
233
* $Log: not supported by cvs2svn $
240
*
234
* Revision 1.29  2006/12/12 13:53:54  jp_milcent
241
* Revision 1.29  2006/12/12 13:53:54  jp_milcent
235
* Mise en place du nouveau format des balises d'applette.
242
* Mise en place du nouveau format des balises d'applette.
236
*
243
*