diff --git a/setup/frames/index.inc.php b/setup/frames/index.inc.php index 370bf748a7..fca7a27291 100644 --- a/setup/frames/index.inc.php +++ b/setup/frames/index.inc.php @@ -66,30 +66,19 @@ if (!$config_writable || !$config_readable) { ); } // -// Check https connection +// Https connection warning (check done on the client side) // -$is_https = !empty($_SERVER['HTTPS']) - && mb_strtolower($_SERVER['HTTPS']) == 'on'; -if (!$is_https) { - $text = __( - 'You are not using a secure connection; all data (including potentially ' - . 'sensitive information, like passwords) is transferred unencrypted!' - ); - - $text .= ' '; - - // Temporary workaround to use tranlated message in older releases - $text .= str_replace( - array('[a@%s]', '[/a]'), - array('', ''), - __( - 'If your server is also configured to accept HTTPS requests ' - . 'follow [a@%s]this link[/a] to use a secure connection.' - ) - ); - $text .= ''; - PMA_messagesSet('notice', 'no_https', __('Insecure connection'), $text); -} +$text = __( + 'You are not using a secure connection; all data (including potentially ' + . 'sensitive information, like passwords) is transferred unencrypted!' +); +$text .= ' '; +$text .= __( + 'If your server is also configured to accept HTTPS requests ' + . 'follow this link to use a secure connection.' +); +$text .= ''; +PMA_messagesSet('notice', 'no_https', __('Insecure connection'), $text); echo '