From 27d6a226759a40f8629a89ce7e741a8e6133ab6d Mon Sep 17 00:00:00 2001 From: Yardena Cohen Date: Mon, 5 Nov 2018 01:46:44 -0800 Subject: [PATCH] core: Display optional administrator email (#896) --- config.default.ini.php | 6 ++++++ lib/BridgeList.php | 13 +++++++++++++ 2 files changed, 19 insertions(+) diff --git a/config.default.ini.php b/config.default.ini.php index 5909ad88..2d6fca12 100644 --- a/config.default.ini.php +++ b/config.default.ini.php @@ -11,6 +11,12 @@ ; false = disabled (default) custom_timeout = false +[admin] +; Advertise an email address where people can reach the administrator. +; This address is displayed on the main page, visible to everyone! +; "" = Disabled (default) +email = "" + [proxy] ; Sets the proxy url (i.e. "tcp://192.168.0.0:32") diff --git a/lib/BridgeList.php b/lib/BridgeList.php index c1756133..4c59f106 100644 --- a/lib/BridgeList.php +++ b/lib/BridgeList.php @@ -96,6 +96,18 @@ EOD; private static function getFooter($totalBridges, $totalActiveBridges, $showInactive) { $version = Configuration::getVersion(); + $email = Configuration::getConfig('admin', 'email'); + $admininfo = ''; + if (!empty($email)) { + $admininfo = << + + You may email the administrator of this RSS-Bridge instance + at {$email} + +EOD; + } + $inactive = ''; if($totalActiveBridges !== $totalBridges) { @@ -114,6 +126,7 @@ EOD;

{$version}

{$totalActiveBridges}/{$totalBridges} active bridges.
{$inactive} + {$admininfo} EOD; }