mirror of
https://github.com/friendica/friendica
synced 2024-12-23 18:00:17 +00:00
add the contents from the blocklist to the /friendica page
This commit is contained in:
parent
bc2dd690fd
commit
7f837a9205
1 changed files with 10 additions and 0 deletions
|
@ -104,6 +104,16 @@ function friendica_content(App $a) {
|
||||||
else
|
else
|
||||||
$o .= '<p>' . t('No installed plugins/addons/apps') . '</p>';
|
$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);
|
call_hooks('about_hook', $o);
|
||||||
|
|
||||||
return $o;
|
return $o;
|
||||||
|
|
Loading…
Reference in a new issue