From fc89d15020a135ca1a36ca94bd68cb1728535153 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 17 Mar 2008 15:12:53 +0000 Subject: [PATCH] New: Added USER_LOGIN trigger event --- .../interface_all_Logevents.class.php | 24 +++++++++---------- htdocs/langs/en_US/users.lang | 11 ++++++++- htdocs/langs/fr_FR/users.lang | 11 ++++++++- 3 files changed, 32 insertions(+), 14 deletions(-) diff --git a/htdocs/includes/triggers/interface_all_Logevents.class.php b/htdocs/includes/triggers/interface_all_Logevents.class.php index 18453e0fe7a..0b41e7c6c76 100644 --- a/htdocs/includes/triggers/interface_all_Logevents.class.php +++ b/htdocs/includes/triggers/interface_all_Logevents.class.php @@ -113,8 +113,8 @@ class InterfaceLogevents // Initialisation donnees (date,duree,texte,desc) $this->date=time(); $this->duree=0; - $this->texte=$langs->transnoentities("UserLogged",$object->nom); - $this->desc=$langs->transnoentities("UserLogged",$object->nom); + $this->texte=$langs->transnoentities("UserLogged",$object->login); + $this->desc=$langs->transnoentities("UserLogged",$object->login); } if ($action == 'USER_CREATE') { @@ -124,8 +124,8 @@ class InterfaceLogevents // Initialisation donnees (date,duree,texte,desc) $this->date=time(); $this->duree=0; - $this->texte=$langs->transnoentities("NewUserCreated",$object->nom); - $this->desc=$langs->transnoentities("NewUserCreated",$object->nom); + $this->texte=$langs->transnoentities("NewUserCreated",$object->login); + $this->desc=$langs->transnoentities("NewUserCreated",$object->login); } elseif ($action == 'USER_MODIFY') { @@ -135,8 +135,8 @@ class InterfaceLogevents // Initialisation donnees (date,duree,texte,desc) $this->date=time(); $this->duree=0; - $this->texte=$langs->transnoentities("UserModified",$object->nom); - $this->desc=$langs->transnoentities("UserModified",$object->nom); + $this->texte=$langs->transnoentities("EventUserModified",$object->login); + $this->desc=$langs->transnoentities("EventUserModified",$object->login); } elseif ($action == 'USER_NEW_PASSWORD') { @@ -146,8 +146,8 @@ class InterfaceLogevents // Initialisation donnees (date,duree,texte,desc) $this->date=time(); $this->duree=0; - $this->texte=$langs->transnoentities("NewUserPassword",$object->nom); - $this->desc=$langs->transnoentities("NewUserPassword",$object->nom); + $this->texte=$langs->transnoentities("NewUserPassword",$object->login); + $this->desc=$langs->transnoentities("NewUserPassword",$object->login); } elseif ($action == 'USER_DISABLE') { @@ -156,8 +156,8 @@ class InterfaceLogevents // Initialisation donnees (date,duree,texte,desc) $this->date=time(); $this->duree=0; - $this->texte=$langs->transnoentities("UserDisabled",$object->nom); - $this->desc=$langs->transnoentities("UserDisabled",$object->nom); + $this->texte=$langs->transnoentities("UserDisabled",$object->login); + $this->desc=$langs->transnoentities("UserDisabled",$object->login); } elseif ($action == 'USER_DELETE') { @@ -166,8 +166,8 @@ class InterfaceLogevents // Initialisation donnees (date,duree,texte,desc) $this->date=time(); $this->duree=0; - $this->texte=$langs->transnoentities("UserDeleted",$object->nom); - $this->desc=$langs->transnoentities("Userdeleted",$object->nom); + $this->texte=$langs->transnoentities("UserDeleted",$object->login); + $this->desc=$langs->transnoentities("Userdeleted",$object->login); } // Groupes diff --git a/htdocs/langs/en_US/users.lang b/htdocs/langs/en_US/users.lang index 12d6439c50b..9cf205a2c58 100755 --- a/htdocs/langs/en_US/users.lang +++ b/htdocs/langs/en_US/users.lang @@ -84,4 +84,13 @@ Reactivate=Reactivate CreateInternalUserDesc=This form allows you to creat an user internal to your company/fundation. To creat an external user (customer, supplier, ...), use button 'Create Dolibarr user' from third party's contact card. InternalExternalDesc=An internal user is a user that is part of your company/fundation.
An external user is a customer, supplier or other.

In both cases, permissions defines rights on Dolibarr, also external user can have a different menu manager than internal user (See Home - Setup - Display) PermissionInheritedFromAGroup=Permission granted because ineherited from one of a user's group. -IdPhoneCaller=Id phone caller \ No newline at end of file +IdPhoneCaller=Id phone caller +UserLogged=User %s connected +NewUserCreated=User %s created +NewUserPassword=Password change for %s +EventUserModified=User %s modified +UserDisabled=User %s disabled +UserDeleted=User %s removed +NewGroupCreated=Group %s created +GroupModified=Group %s modified +GroupDeleted=Group %s removed \ No newline at end of file diff --git a/htdocs/langs/fr_FR/users.lang b/htdocs/langs/fr_FR/users.lang index 66851b1b7dc..e93054c69b4 100755 --- a/htdocs/langs/fr_FR/users.lang +++ b/htdocs/langs/fr_FR/users.lang @@ -84,4 +84,13 @@ Reactivate=R CreateInternalUserDesc=Cet écran permet de créer un utilisateur interne à votre société/institution. Pour créer un utilisateur externe (client, fournisseur, ...), utiliser le bouton 'Créer utilisateur Dolibarr' qui se trouve sur la fiche contact du tiers en question. InternalExternalDesc=Un utilisateur interne est un utilisateur appartenant à votre société/institution.
Un utilisateur externe est un utilisateur client, fournisseur ou autre.

Dans les 2 cas, les permissions utilisateurs définissent les droits d'accès mais l'utilisateur externe peut en plus avoir un gestionnaire de menu différent de l'utilisateur interne (Voir Accueil - Configuration - Affichage) PermissionInheritedFromAGroup=La permission est accordée car héritée d'un groupe auquel appartient l'utilisateur. -IdPhoneCaller=Id appelant (téléphone) \ No newline at end of file +IdPhoneCaller=Id appelant (téléphone) +UserLogged=Connexion utilisateur %s +NewUserCreated=Création utilisateur %s +NewUserPassword=Changement mot de passe de %s +EventUserModified=Modification utiliateur %s +UserDisabled=Désactivation utilisateur %s +UserDeleted=Suppression utilisateur %s +NewGroupCreated=Création groupe %s +GroupModified=Modification groupe %s +GroupDeleted=Suppression groupe %s