mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-06-20 01:56:05 +02:00
Add an indicator to show the HTTP status of the site. (#483)
This commit is contained in:
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 = '';
|
||||
|
Reference in New Issue
Block a user