diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-07-11 02:52:47 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-07-11 02:52:47 -0700 |
commit | 7a21a000a2b02e7dd443fd0f3ee09172de825b08 (patch) | |
tree | a73734b36b404da7f3028a12c5e10e2a3a7a35fa /mod | |
parent | a42c9616f97125b059f395b9b023fe1516a52d75 (diff) | |
download | volse-hubzilla-7a21a000a2b02e7dd443fd0f3ee09172de825b08.tar.gz volse-hubzilla-7a21a000a2b02e7dd443fd0f3ee09172de825b08.tar.bz2 volse-hubzilla-7a21a000a2b02e7dd443fd0f3ee09172de825b08.zip |
lots of little stuff
Diffstat (limited to 'mod')
-rw-r--r-- | mod/contacts.php | 17 | ||||
-rw-r--r-- | mod/profiles.php | 8 |
2 files changed, 11 insertions, 14 deletions
diff --git a/mod/contacts.php b/mod/contacts.php index 38b49475a..5bf906e06 100644 --- a/mod/contacts.php +++ b/mod/contacts.php @@ -1,6 +1,8 @@ <?php -function edit_contact(&$a,$contact_id) { +function contacts_init(&$a) { + require_once('include/group.php'); + $a->page['aside'] .= group_side(); } function contacts_post(&$a) { @@ -12,8 +14,7 @@ function contacts_post(&$a) { $contact_id = intval($a->argv[1]); if(! $contact_id) return; -dbg(2); -print_r($_POST); + $orig_record = q("SELECT * FROM `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1", intval($contact_id), intval($_SESSION['uid']) @@ -60,14 +61,6 @@ print_r($_POST); - - - - - - - - function contacts_content(&$a) { if(! local_user()) { @@ -75,8 +68,6 @@ function contacts_content(&$a) { return; } - - if($a->argc == 3) { $contact_id = intval($a->argv[1]); diff --git a/mod/profiles.php b/mod/profiles.php index 3f5980ba6..4bbfbb44c 100644 --- a/mod/profiles.php +++ b/mod/profiles.php @@ -278,6 +278,12 @@ function profiles_content(&$a) { '$no_selected' => (($r[0]['publish'] == 0) ? " checked=\"checked\" " : "") )); + $opt_tpl = file_get_contents("view/profile-hide-friends.tpl"); + $hide_friends = replace_macros($opt_tpl,array( + '$yes_selected' => (($r[0]['hide-friends']) ? " checked=\"checked\" " : ""), + '$no_selected' => (($r[0]['hide-friends'] == 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>"; @@ -295,7 +301,7 @@ function profiles_content(&$a) { '$default' => (($is_default) ? "<p id=\"profile-edit-default-desc\">This is your <strong>public</strong> profile.<br />It <strong>may</strong> be visible to anybody using the internet.</p>" : ""), '$name' => $r[0]['name'], '$dob' => dob($r[0]['dob']), - '$hide_birth' => (($r[0]['dob_hide']) ? " checked=\"checked\" " : ""), + '$hide_friends' => $hide_friends, '$address' => $r[0]['address'], '$locality' => $r[0]['locality'], '$region' => $r[0]['region'], |