Platform  3.1
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
login.php
Go to the documentation of this file.
1 <?php
2 /*
3  * @author Anakeen
4  * @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
5  * @package FDL
6 */
7 /**
8  * Generated Header (not documented yet)
9  *
10  * @author Anakeen 2000
11  * @version $Id: login.php,v 1.3 2003/08/18 15:46:41 eric Exp $
12  * @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
13  * @package FDL
14  * @subpackage CORE
15  */
16 /**
17  */
18 // $Id: login.php,v 1.3 2003/08/18 15:46:41 eric Exp $
19 // $Log: login.php,v $
20 // Revision 1.3 2003/08/18 15:46:41 eric
21 // phpdoc
22 //
23 // Revision 1.2 2002/01/25 14:31:37 eric
24 // gestion de cache objet - variable de session
25 //
26 // Revision 1.1 2002/01/08 12:41:33 eric
27 // first
28 //
29 // Revision 1.4 2001/09/28 12:36:12 eric
30 // suppression ligne inutile
31 //
32 // Revision 1.3 2001/09/10 16:26:24 eric
33 // modification bouton login et autre icone
34 //
35 // Revision 1.2 2000/10/26 15:32:17 yannick
36 // Remise à niveau
37 //
38 // Revision 1.1 2000/10/12 08:06:55 yannick
39 // Ajout du traitement de l'ampoule
40 //
41 // Revision 1.2 2000/10/11 12:27:38 yannick
42 // Gestion de l'authentification
43 //
44 // Revision 1.1.1.1 2000/10/05 17:29:10 yannick
45 // Importation
46 //
47 function login(&$action)
48 {
49  // This function is used to show curent user if set
50  // TODO
51  if (!isset($action->user)) {
52  $action->lay->set("USER", "");
53  $action->lay->set("ONOUT", $action->parent->GetImageUrl("bblue.gif"));
54  $action->lay->set("ONOVER", $action->parent->GetImageUrl("bgreen.gif"));
55  $action->lay->set("ALTLOGINOUT", "login");
56  $action->lay->set("ACTION", "");
57  } else {
58  $action->lay->set("USER", $action->user->firstname . " " . $action->user->lastname);
59  $action->lay->set("ONOUT", $action->parent->GetImageUrl("bgreen.gif"));
60  $action->lay->set("ONOVER", $action->parent->GetImageUrl("bred.gif"));
61  $action->lay->set("ALTLOGINOUT", "logout");
62  $action->lay->set("ACTION", "LOGOUT");
63  $action->lay->set("OUT", "");
64  }
65 }
66 ?>
← centre documentaire © anakeen - published under CC License - Dynacase