Warn user on login page if using browser is IE 11 or below.

This commit is contained in:
Hadi Nategh 2018-08-07 13:40:46 +02:00
parent 038daecb1b
commit 0a5002ebaa
2 changed files with 6 additions and 0 deletions

View File

@ -197,6 +197,7 @@ box... common en Box...
brazil common en BRAZIL brazil common en BRAZIL
british indian ocean territory common en BRITISH INDIAN OCEAN TERRITORY british indian ocean territory common en BRITISH INDIAN OCEAN TERRITORY
broken link common en Broken link broken link common en Broken link
browser %1 %2 is not recommended. You may experience issues and not working features. Please use the latest version of Chrome, Firefox or Edge. Thank You! common en Browser %1 %2 is not recommended. You may experience issues and not working features. Please use the latest version of Chrome, Firefox or Edge. Thank You!
brunei darussalam common en BRUNEI DARUSSALAM brunei darussalam common en BRUNEI DARUSSALAM
bulgaria common en BULGARIA bulgaria common en BULGARIA
bulgarian common en Bulgarian bulgarian common en Bulgarian

View File

@ -226,6 +226,11 @@ class Login
} }
$tmpl->set_var('autocomplete', ($GLOBALS['egw_info']['server']['autocomplete_login'] ? 'autocomplete="off"' : '')); $tmpl->set_var('autocomplete', ($GLOBALS['egw_info']['server']['autocomplete_login'] ? 'autocomplete="off"' : ''));
if (Api\Header\UserAgent::type() == 'msie' && Api\Header\UserAgent::version() < 12)
{
$tmpl->set_var('cd', lang('Browser %1 %2 is not recommended. You may experience issues and not working features. Please use the latest version of Chrome, Firefox or Edge. Thank You!',Api\Header\UserAgent::type(), Api\Header\UserAgent::version()));
$tmpl->set_var('cd_class', 'error');
}
// load jquery for login screen too // load jquery for login screen too
Api\Framework::includeJS('jquery', 'jquery'); Api\Framework::includeJS('jquery', 'jquery');