Add an indicator to show the HTTP status of the site. ()

This commit is contained in:
Teromene 2017-03-18 19:02:18 +00:00 committed by GitHub
parent 155c0ac6f0
commit 59025d96bc
6 changed files with 29 additions and 4 deletions

View file

@ -28,6 +28,14 @@ EOD;
if($bridge == false)
return "";
$HTTPSWarning = '';
if(strpos($bridge->getURI(), 'https') !== 0) {
$HTTPSWarning = '<div class="secure-warning">Warning :
This bridge is not fetching its content through a secure connection</div>';
}
$name = '<a href="' . $bridge->getURI() . '">' . $bridge->getName() . '</a>';
$description = $bridge->getDescription();
@ -45,6 +53,7 @@ CARD;
if(count($bridge->getParameters()) == 0){
$card .= $getFormHeader($bridgeName);
$card .= $HTTPSWarning;
if($isActive){
if(defined('PROXY_URL') && PROXY_BYBRIDGE){
@ -93,6 +102,7 @@ CARD;
$card .= '<h5>' . $parameterName . '</h5>' . PHP_EOL;
$card .= $getFormHeader($bridgeName);
$card .= $HTTPSWarning;
foreach($parameter as $id => $inputEntry){
$additionalInfoString = '';