Add message on disconnect button when using an authentication mode where
disconnect has no sense.
This commit is contained in:
parent
c1e349d110
commit
caf6712286
@ -206,6 +206,7 @@ Limit=Limit
|
|||||||
Limits=Limits
|
Limits=Limits
|
||||||
DevelopmentTeam=Development Team
|
DevelopmentTeam=Development Team
|
||||||
Logout=Logout
|
Logout=Logout
|
||||||
|
NoLogoutProcessWithAuthMode=No applicative disconnect feature with authentication mode <b>%s</b>
|
||||||
Connection=Connection
|
Connection=Connection
|
||||||
Setup=Setup
|
Setup=Setup
|
||||||
Alert=Alert
|
Alert=Alert
|
||||||
|
|||||||
@ -1430,11 +1430,11 @@ function top_menu($head, $title='', $target='', $disablejs=0, $disablehead=0, $a
|
|||||||
// Link info
|
// Link info
|
||||||
$logouttext='';
|
$logouttext='';
|
||||||
$logouthtmltext=$appli.'<br>';
|
$logouthtmltext=$appli.'<br>';
|
||||||
$logouthtmltext.=$langs->trans("Logout").'<br>';
|
|
||||||
//$logouthtmltext.="<br>";
|
|
||||||
if ($_SESSION["dol_authmode"] != 'forceuser' && $_SESSION["dol_authmode"] != 'http')
|
if ($_SESSION["dol_authmode"] != 'forceuser' && $_SESSION["dol_authmode"] != 'http')
|
||||||
{
|
{
|
||||||
$logouttext .='<a href="'.DOL_URL_ROOT.'/user/logout.php"';
|
$logouthtmltext.=$langs->trans("Logout").'<br>';
|
||||||
|
|
||||||
|
$logouttext .='<a href="'.DOL_URL_ROOT.'/user/logout.php"';
|
||||||
//$logouttext .=empty($atarget?(' target="'.$atarget.'"'):'';
|
//$logouttext .=empty($atarget?(' target="'.$atarget.'"'):'';
|
||||||
$logouttext .='>';
|
$logouttext .='>';
|
||||||
$logouttext .= img_picto($langs->trans('Logout'), 'logout.png', 'class="login"', 0, 0, 1);
|
$logouttext .= img_picto($langs->trans('Logout'), 'logout.png', 'class="login"', 0, 0, 1);
|
||||||
@ -1442,6 +1442,7 @@ function top_menu($head, $title='', $target='', $disablejs=0, $disablehead=0, $a
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
$logouthtmltext.=$langs->trans("NoLogoutProcessWithAuthMode",$_SESSION["dol_authmode"]);
|
||||||
$logouttext .= img_picto($langs->trans('Logout'), 'logout.png', 'class="login"', 0, 0, 1);
|
$logouttext .= img_picto($langs->trans('Logout'), 'logout.png', 'class="login"', 0, 0, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user