aboutsummaryrefslogtreecommitdiffstats
path: root/mod/settings.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2011-11-28 15:11:59 -0800
committerfriendica <info@friendica.com>2011-11-28 15:11:59 -0800
commitf4e1135f7962ae06dc529b8d3b9c2f029baa3a73 (patch)
tree4514a9f6e06b3f088c3ded952a4b73b7139aa598 /mod/settings.php
parentccef8995779d8b97e0bd9965eee5c592101969de (diff)
downloadvolse-hubzilla-f4e1135f7962ae06dc529b8d3b9c2f029baa3a73.tar.gz
volse-hubzilla-f4e1135f7962ae06dc529b8d3b9c2f029baa3a73.tar.bz2
volse-hubzilla-f4e1135f7962ae06dc529b8d3b9c2f029baa3a73.zip
poco addition to provide a "suggestme" for new members
Diffstat (limited to 'mod/settings.php')
-rw-r--r--mod/settings.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/mod/settings.php b/mod/settings.php
index 163588f4a..51db9b06e 100644
--- a/mod/settings.php
+++ b/mod/settings.php
@@ -6,6 +6,8 @@ function settings_init(&$a) {
profile_load($a,$a->user['nickname']);
}
+ // These lines provide the javascript needed by the acl selector
+
$a->page['htmlhead'] .= "<script> var ispublic = '" . t('everybody') . "';" ;
$a->page['htmlhead'] .= <<< EOT
@@ -231,8 +233,9 @@ function settings_post(&$a) {
$blockwall = (((x($_POST,'blockwall')) && (intval($_POST['blockwall']) == 1)) ? 0: 1); // this setting is inverted!
$blocktags = (((x($_POST,'blocktags')) && (intval($_POST['blocktags']) == 1)) ? 0: 1); // this setting is inverted!
- $hide_friends = (($_POST['hide-friends'] == 1) ? 1: 0);
- $hidewall = (($_POST['hidewall'] == 1) ? 1: 0);
+ $suggestme = ((x($_POST,'suggestme')) ? intval($_POST['suggestme']) : 0);
+ $hide_friends = (($_POST['hide-friends'] == 1) ? 1: 0);
+ $hidewall = (($_POST['hidewall'] == 1) ? 1: 0);
$notify = 0;
@@ -309,6 +312,8 @@ function settings_post(&$a) {
set_pconfig(local_user(),'expire','starred', $expire_starred);
set_pconfig(local_user(),'expire','photos', $expire_photos);
+ set_pconfig(local_user(),'system','suggestme', $suggestme);
+
$r = q("UPDATE `user` SET `username` = '%s', `email` = '%s', `openid` = '%s', `timezone` = '%s', `allow_cid` = '%s', `allow_gid` = '%s', `deny_cid` = '%s', `deny_gid` = '%s', `notify-flags` = %d, `page-flags` = %d, `default-location` = '%s', `allow_location` = %d, `theme` = '%s', `maxreq` = %d, `expire` = %d, `openidserver` = '%s', `blockwall` = %d, `hidewall` = %d, `blocktags` = %d WHERE `uid` = %d LIMIT 1",
dbesc($username),
dbesc($email),