Add an indicator to show the HTTP status of the site. (#483)
This commit is contained in:
parent
155c0ac6f0
commit
59025d96bc
6 changed files with 29 additions and 4 deletions
lib
10
lib/html.php
10
lib/html.php
|
@ -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 = '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue