diff options
author | Friendika <info@friendika.com> | 2011-06-19 16:47:03 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-06-19 16:47:03 -0700 |
commit | c2dcff0d02e3e4ca5b728b6d3e41a07601163011 (patch) | |
tree | 63295f064fd03864f9795ae0d935d1eb9a78eba9 /mod/profiles.php | |
parent | 76ddbff0b5184c85be1e7ad2ffe6fb918ed65b65 (diff) | |
download | volse-hubzilla-c2dcff0d02e3e4ca5b728b6d3e41a07601163011.tar.gz volse-hubzilla-c2dcff0d02e3e4ca5b728b6d3e41a07601163011.tar.bz2 volse-hubzilla-c2dcff0d02e3e4ca5b728b6d3e41a07601163011.zip |
move profile privacy settings to the Privacy section of the Settings page
Diffstat (limited to 'mod/profiles.php')
-rw-r--r-- | mod/profiles.php | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/mod/profiles.php b/mod/profiles.php index f0821a4f8..160ca13bc 100644 --- a/mod/profiles.php +++ b/mod/profiles.php @@ -129,8 +129,6 @@ function profiles_post(&$a) { $work = escape_tags(trim($_POST['work'])); $education = escape_tags(trim($_POST['education'])); $hide_friends = (($_POST['hide-friends'] == 1) ? 1: 0); - $hidewall = (($_POST['hidewall'] == 1) ? 1: 0); - $r = q("UPDATE `profile` SET `profile-name` = '%s', @@ -161,8 +159,7 @@ function profiles_post(&$a) { `romance` = '%s', `work` = '%s', `education` = '%s', - `hide-friends` = %d, - `hidewall` = %d + `hide-friends` = %d WHERE `id` = %d AND `uid` = %d LIMIT 1", dbesc($profile_name), dbesc($name), @@ -193,7 +190,6 @@ function profiles_post(&$a) { dbesc($work), dbesc($education), intval($hide_friends), - intval($hidewall), intval($a->argv[1]), intval($_SESSION['uid']) ); @@ -361,16 +357,6 @@ function profiles_content(&$a) { '$no_selected' => (($r[0]['hide-friends'] == 0) ? " checked=\"checked\" " : "") )); - $opt_tpl = get_markup_template("profile-hide-wall.tpl"); - $hide_wall = replace_macros($opt_tpl,array( - '$desc' => t('Hide profile details and all your messages from unknown viewers?'), - '$yes_str' => t('Yes'), - '$no_str' => t('No'), - '$yes_selected' => (($r[0]['hidewall']) ? " checked=\"checked\" " : ""), - '$no_selected' => (($r[0]['hidewall'] == 0) ? " checked=\"checked\" " : "") - )); - - $a->page['htmlhead'] .= replace_macros($tpl, array('$baseurl' => $a->get_baseurl())); $a->page['htmlhead'] .= "<script type=\"text/javascript\" src=\"include/country.js\" ></script>"; @@ -426,7 +412,6 @@ function profiles_content(&$a) { '$pdesc' => $r[0]['pdesc'], '$dob' => dob($r[0]['dob']), '$hide_friends' => $hide_friends, - '$hide_wall' => $hide_wall, '$address' => $r[0]['address'], '$locality' => $r[0]['locality'], '$region' => $r[0]['region'], |