support: IE Discontinued
Well folks, the time has finally come to lay IE in it's final resting place. Twas a long, hard battle with IE but in the end it was defeated and it's kingdom taken over by it's successor, Edge. Now there is a new king and IE must be banished from the lands he once ruled, forever. It's sad to see such a prolific leader fall to the ashes (not lol). Alright, let’s get serious for a moment. Microsoft is discontinuing IE at the end of January 2020 so it’s time to start showing a banner that says "osTicket no longer supports IE." This message is shown on the Installer, the Upgrader, in the Client Portal, and in the Staff Panel when using IE. This checks the User-Agent header for IE’s specific header and if detected will show the banner. This will not show on Edge, Chrome, Firefox, etc. only when using IE. We came to this conclusion after seeing sites like Github (a microsoft product) showing "no longer supported" banners for IE (a microsoft product).
This commit is contained in:
@@ -85,3 +85,9 @@ input.dp {
|
||||
.delete-draft:hover {
|
||||
background-color: #fc9f41 !important;
|
||||
}
|
||||
|
||||
.notice_bar { margin: 0; padding: 5px 10px 5px 36px; height: 16px; line-height: 16px; border: 1px solid #0a0; background: url('../assets/default/images/icons/ok.png') 10px 50% no-repeat #e0ffe0; }
|
||||
|
||||
.warning_bar { margin: 0; padding: 5px 10px 5px 36px; height: 16px; line-height: 16px; border: 1px solid #f26522; background: url('../assets/default/images/icons/alert.png') 10px 50% no-repeat #ffffdd; }
|
||||
|
||||
.error_bar { margin: 0; padding: 5px 10px 5px 36px; height: 16px; line-height: 16px; border: 1px solid #a00; background: url('../assets/default/images/icons/error.png') 10px 50% no-repeat #fff0f0; }
|
||||
|
||||
@@ -611,6 +611,17 @@ class osTicket {
|
||||
&& !strcasecmp($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns TRUE if the current browser is IE and FALSE otherwise
|
||||
*/
|
||||
function is_ie() {
|
||||
if (preg_match('/MSIE|Internet Explorer|Trident\/[\d]{1}\.[\d]{1,2}/',
|
||||
$_SERVER['HTTP_USER_AGENT']))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/* returns true if script is being executed via commandline */
|
||||
static function is_cli() {
|
||||
return (!strcasecmp(substr(php_sapi_name(), 0, 3), 'cli')
|
||||
|
||||
@@ -23,6 +23,10 @@ if ($lang
|
||||
if ($lang) {
|
||||
echo ' lang="' . $lang . '"';
|
||||
}
|
||||
|
||||
// Dropped IE Support Warning
|
||||
if (osTicket::is_ie())
|
||||
$ost->setWarning(__('osTicket no longer supports Internet Explorer.'));
|
||||
?>>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
@@ -86,6 +90,14 @@ if ($lang) {
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<?php
|
||||
if($ost->getError())
|
||||
echo sprintf('<div class="error_bar">%s</div>', $ost->getError());
|
||||
elseif($ost->getWarning())
|
||||
echo sprintf('<div class="warning_bar">%s</div>', $ost->getWarning());
|
||||
elseif($ost->getNotice())
|
||||
echo sprintf('<div class="notice_bar">%s</div>', $ost->getNotice());
|
||||
?>
|
||||
<div id="header">
|
||||
<div class="pull-right flush-right">
|
||||
<p>
|
||||
|
||||
@@ -15,6 +15,10 @@ if (($lang = Internationalization::getCurrentLanguage())
|
||||
if ($lang) {
|
||||
echo ' lang="' . Internationalization::rfc1766($lang) . '"';
|
||||
}
|
||||
|
||||
// Dropped IE Support Warning
|
||||
if (osTicket::is_ie())
|
||||
$ost->setWarning(__('osTicket no longer supports Internet Explorer.'));
|
||||
?>>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
|
||||
@@ -202,3 +202,9 @@ a.flag { text-decoration: none; }
|
||||
direction: ltr;
|
||||
unicode-bidi: embed;
|
||||
}
|
||||
|
||||
.notice_bar { margin: 0; padding: 5px 10px 5px 36px; height: 16px; line-height: 16px; border: 1px solid #0a0; background: url('../images/icons/ok.png') 10px 50% no-repeat #e0ffe0; }
|
||||
|
||||
.warning_bar { margin: 0; padding: 5px 10px 5px 36px; height: 16px; line-height: 16px; border: 1px solid #f26522; background: url('../images/icons/alert.png') 10px 50% no-repeat #ffffdd; }
|
||||
|
||||
.error_bar { margin: 0; padding: 5px 10px 5px 36px; height: 16px; line-height: 16px; border: 1px solid #a00; background: url('../images/icons/error.png') 10px 50% no-repeat #fff0f0; }
|
||||
|
||||
BIN
setup/images/icons/alert.png
Executable file
BIN
setup/images/icons/alert.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 680 B |
BIN
setup/images/icons/error.png
Executable file
BIN
setup/images/icons/error.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 730 B |
BIN
setup/images/icons/ok.png
Executable file
BIN
setup/images/icons/ok.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 812 B |
@@ -9,6 +9,10 @@ if (($lang = Internationalization::getCurrentLanguage())
|
||||
&& ($info = Internationalization::getLanguageInfo($lang))
|
||||
&& (@$info['direction'] == 'rtl'))
|
||||
echo 'dir="rtl" class="rtl"';
|
||||
|
||||
// Dropped IE Support Warning
|
||||
if (osTicket::is_ie())
|
||||
$warning = __('osTicket no longer supports Internet Explorer.');
|
||||
?>>
|
||||
<head>
|
||||
<title><?php echo $wizard['title']; ?></title>
|
||||
@@ -18,6 +22,7 @@ if (($lang = Internationalization::getCurrentLanguage())
|
||||
</head>
|
||||
<body>
|
||||
<div id="wizard">
|
||||
<?php if ($warning) echo sprintf('<div class="warning_bar">%s</div>', $warning); ?>
|
||||
<div id="header">
|
||||
<img id="logo" src="./images/<?php echo $wizard['logo'] ?: 'logo.png'; ?>" alt="osTicket">
|
||||
<div class="info"><?php echo $wizard['tagline']; ?></div>
|
||||
|
||||
Reference in New Issue
Block a user