]> git.mxchange.org Git - friendica.git/commitdiff
add the contents from the blocklist to the /friendica page
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Mon, 24 Apr 2017 21:43:39 +0000 (23:43 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Mon, 24 Apr 2017 21:43:39 +0000 (23:43 +0200)
mod/friendica.php

index f613dfd39cef05e171db82c410fc75be35714507..230ffd8bcc27f72da2f202e109ff8380e717d865 100644 (file)
@@ -104,6 +104,16 @@ function friendica_content(App $a) {
        else
                $o .= '<p>' . t('No installed plugins/addons/apps') . '</p>';
 
+       $blocklist = Config::get('system', 'blocklist');
+       if (count($blocklist)) {
+               $o .= '<div id="about_blocklist"><p>'. t('On this server the following remote servers are blocked.') .'</p>';
+               $o .= '<table><thead><tr><th>'. t('Blocked URL') .'</th><th>'. t('Reason for the block') .'</th></thead><tbody>';
+               foreach ($blocklist as $b) {
+                       $o .= '<tr><td>'. $b['URL'] .'</td><td>'. $b['reason'] .'</td></tr>';
+               }
+               $o .= '</tbody></table></div>';
+       }
+
        call_hooks('about_hook', $o);
 
        return $o;