From: Tobias Diekershoff Date: Mon, 24 Apr 2017 21:43:39 +0000 (+0200) Subject: add the contents from the blocklist to the /friendica page X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7f837a92053bdcae88f75344c8deffeb3b1bdb58;p=friendica.git add the contents from the blocklist to the /friendica page --- diff --git a/mod/friendica.php b/mod/friendica.php index f613dfd39c..230ffd8bcc 100644 --- a/mod/friendica.php +++ b/mod/friendica.php @@ -104,6 +104,16 @@ function friendica_content(App $a) { else $o .= '

' . t('No installed plugins/addons/apps') . '

'; + $blocklist = Config::get('system', 'blocklist'); + if (count($blocklist)) { + $o .= '

'. t('On this server the following remote servers are blocked.') .'

'; + $o .= ''; + foreach ($blocklist as $b) { + $o .= ''; + } + $o .= '
'. t('Blocked URL') .''. t('Reason for the block') .'
'. $b['URL'] .''. $b['reason'] .'
'; + } + call_hooks('about_hook', $o); return $o;