From 84a9950e06ff4ae6476f4e06472164b7414c611b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 26 Mar 2005 13:40:07 +0000 Subject: [PATCH] =?UTF-8?q?Qual:=20Am=E9lioration=20message=20erreur=20sur?= =?UTF-8?q?=20"permission=20denied"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/lib/functions.inc.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/htdocs/lib/functions.inc.php b/htdocs/lib/functions.inc.php index 1606f78c945..f295acf01cb 100644 --- a/htdocs/lib/functions.inc.php +++ b/htdocs/lib/functions.inc.php @@ -577,11 +577,18 @@ function accessforbidden() llxHeader(); print '
'.$langs->trans("ErrorForbidden").'
'; print '
'; - if ($user->login) { - print $langs->trans("Login").": ".$user->login."
"; + if ($user->login) + { + print $langs->trans("CurrentLogin").': '.$user->login.'
'; print $langs->trans("ErrorForbidden2",$langs->trans("Home"),$langs->trans("Users")); } - else { + elseif (! empty($_SERVER["REMOTE_USER"])) + { + print $langs->trans("CurrentLogin").': '.$_SERVER["REMOTE_USER"]."
"; + print $langs->trans("ErrorForbidden2",$langs->trans("Home"),$langs->trans("Users")); + } + else + { print $langs->trans("ErrorForbidden3"); } llxFooter();