setPath(CACHE_DIR); $cache->purgeCache(86400); // 24 hours $cache->setParameters($params); unset($params['action']); unset($params['bridge']); unset($params['format']); unset($params['_noproxy']); unset($params['_cache_timeout']); // Load cache & data try { $bridge->setCache($cache); $bridge->setCacheTimeout($cache_timeout); $bridge->setDatas($params); } catch(Exception $e) { http_response_code($e->getCode()); header('Content-Type: text/html'); die(buildBridgeException($e, $bridge)); } // Data transformation try { $format = Format::create($format); $format->setItems($bridge->getItems()); $format->setExtraInfos($bridge->getExtraInfos()); $format->display(); } catch(Exception $e) { http_response_code($e->getCode()); header('Content-Type: text/html'); die(buildTransformException($e, $bridge)); } die; } } catch(HttpException $e) { http_response_code($e->getCode()); header('Content-Type: text/plain'); die($e->getMessage()); } catch(\Exception $e) { die($e->getMessage()); } $formats = Format::searchInformation(); ?> RSS-Bridge

RSS-Bridge

·Reconnecting the Web·

{$status}

EOD; $activeFoundBridgeCount = 0; $showInactive = filter_input(INPUT_GET, 'show_inactive', FILTER_VALIDATE_BOOLEAN); $inactiveBridges = ''; $bridgeList = Bridge::listBridges(); foreach($bridgeList as $bridgeName) { if(Bridge::isWhitelisted($whitelist_selection, strtolower($bridgeName))) { echo displayBridgeCard($bridgeName, $formats); $activeFoundBridgeCount++; } elseif($showInactive) { // inactive bridges $inactiveBridges .= displayBridgeCard($bridgeName, $formats, false) . PHP_EOL; } } echo $inactiveBridges; ?>