aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-06-06 16:26:11 -0700
committerFriendika <info@friendika.com>2011-06-06 16:26:11 -0700
commitc0094aa4f865defe8be63963b32f69d05e258f48 (patch)
treeea8938f418f5776fb32fb927069d982393da83e3 /boot.php
parentccf4e3eee5f01caad487cc42607c6cde710c4f5d (diff)
downloadvolse-hubzilla-c0094aa4f865defe8be63963b32f69d05e258f48.tar.gz
volse-hubzilla-c0094aa4f865defe8be63963b32f69d05e258f48.tar.bz2
volse-hubzilla-c0094aa4f865defe8be63963b32f69d05e258f48.zip
strict privacy mode (Friendika-Z) - refuse to talk to networks with privacy issues
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index 1e51a4723..12689b4ab 100644
--- a/boot.php
+++ b/boot.php
@@ -527,8 +527,20 @@ function check_config(&$a) {
$plugins = get_config('system','addon');
$plugins_arr = array();
- if($plugins)
+ if($plugins) {
$plugins_arr = explode(',',str_replace(' ', '',$plugins));
+ if(get_config('system','strict_privacy')) {
+ unset($a->config['system']['huburl']);
+ for($x = 0; $x < count($plugins_arr); $x ++) {
+ if( $plugins_arr[$x] === 'facebook'
+ || $plugins_arr[$x] === 'twitter'
+ || $plugins_arr[$x] === 'statusnet') {
+ unset($plugins_arr[$x]);
+ }
+ }
+ }
+ }
+
$a->plugins = $plugins_arr;