Skip to content
Snippets Groups Projects
Commit 89de3de2 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Add user ip address

parent df75a6b1
No related branches found
No related tags found
No related merge requests found
......@@ -571,6 +571,7 @@ Source=Source
Prefix=Prefix
Before=Before
After=After
IPAddress=IP address
# Week day
Day1=Monday
Day2=Tuesday
......
......@@ -571,6 +571,7 @@ Source=Origine
Prefix=Préfixe
Before=Avant
After=Après
IPAddress=Adresse IP
# Week day
Day1=Lundi
Day2=Mardi
......
......@@ -1098,6 +1098,7 @@ function top_menu($head, $title='', $target='', $disablejs=0, $disablehead=0, $a
$loginhtmltext.='<br><b>'.$langs->trans("Administrator").'</b>: '.yn($user->admin);
$type=($user->societe_id?$langs->trans("External").$company:$langs->trans("Internal"));
$loginhtmltext.='<br><b>'.$langs->trans("Type").'</b>: '.$type;
$loginhtmltext.='<br><b>'.$langs->trans("IPAddress").'</b>: '.$_SERVER["REMOTE_ADDR"];
$loginhtmltext.='<br>';
$loginhtmltext.='<br><u>'.$langs->trans("Connection").'</u>';
if ($conf->global->MAIN_MODULE_MULTICOMPANY) $loginhtmltext.='<br><b>'.$langs->trans("ConnectedOnMultiCompany").'</b>: '.$conf->entity.' (user entity '.$user->entity.')';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment