aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-04-03 20:41:40 -0700
committerFriendika <info@friendika.com>2011-04-03 20:41:40 -0700
commit9b50b0e16f2046b91cb4c734c56024524d8b178b (patch)
tree524efc50013a7fd50960adc9092090a2270263ea /mod
parentb500da74b675bc3f88e392573d6602f3e7d94e03 (diff)
downloadvolse-hubzilla-9b50b0e16f2046b91cb4c734c56024524d8b178b.tar.gz
volse-hubzilla-9b50b0e16f2046b91cb4c734c56024524d8b178b.tar.bz2
volse-hubzilla-9b50b0e16f2046b91cb4c734c56024524d8b178b.zip
Public exposure warning on affected network group pages. config-able so a plugin can shut it up.
Diffstat (limited to 'mod')
-rw-r--r--mod/network.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/mod/network.php b/mod/network.php
index 39679b48a..a304c211f 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -54,6 +54,14 @@ function network_content(&$a, $update = 0) {
}
if(! $update) {
+ if(group) {
+ if(($t = group_public_members($group)) && (! get_pconfig(local_user(),'system','nowarn_insecure'))) {
+ $plural_form = sprintf( tt('%d member', '%d members', $t), $t);
+ notice( sprintf( t('Warning: This group contains %s from an insecure network.'), $plural_form ) . EOL);
+ notice( t('Private messages to this group are at risk of public disclosure.') . EOL);
+ }
+ }
+
$o .= '<script> $(document).ready(function() { $(\'#nav-network-link\').addClass(\'nav-selected\'); });</script>';
$_SESSION['return_url'] = $a->cmd;