aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-06-28 21:16:56 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-06-28 21:16:56 -0700
commitde13497333c9b68e3fa2d73c9a0284da7797f405 (patch)
tree8fd039284fb96bcdb74efad09c69dc34348364f4 /mod
parent1ee1b6a33435a0d05031312f988066d99ea06d5c (diff)
downloadvolse-hubzilla-de13497333c9b68e3fa2d73c9a0284da7797f405.tar.gz
volse-hubzilla-de13497333c9b68e3fa2d73c9a0284da7797f405.tar.bz2
volse-hubzilla-de13497333c9b68e3fa2d73c9a0284da7797f405.zip
no this isn't it. well ok, it's part of it, but not the important part. it's still pretty cool.
Diffstat (limited to 'mod')
-rw-r--r--mod/connedit.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/mod/connedit.php b/mod/connedit.php
index cb524547c..fd7533711 100644
--- a/mod/connedit.php
+++ b/mod/connedit.php
@@ -101,6 +101,9 @@ function connedit_post(&$a) {
}
}
+ $abook_incl = escape_tags($_POST['abook_incl']);
+ $abook_excl = escape_tags($_POST['abook_excl']);
+
$hidden = intval($_POST['hidden']);
$priority = intval($_POST['poll']);
@@ -190,12 +193,15 @@ function connedit_post(&$a) {
}
}
- $r = q("UPDATE abook SET abook_profile = '%s', abook_my_perms = %d , abook_closeness = %d, abook_flags = %d
+ $r = q("UPDATE abook SET abook_profile = '%s', abook_my_perms = %d , abook_closeness = %d, abook_flags = %d,
+ abook_incl = '%s', abook_excl = '%s'
where abook_id = %d AND abook_channel = %d",
dbesc($profile_id),
intval($abook_my_perms),
intval($closeness),
intval($abook_flags),
+ dbesc($abook_incl),
+ dbesc($abook_excl),
intval($contact_id),
intval(local_channel())
);
@@ -662,7 +668,9 @@ function connedit_content(&$a) {
'$lbl_slider' => t('Slide to adjust your degree of friendship'),
'$lbl_rating' => t('Rating (this information is public)'),
'$lbl_rating_txt' => t('Optionally explain your rating (this information is public)'),
- '$rating_txt' => $rating_text,
+ '$incl' => array('abook_incl',t('Only import posts with this text'), $contact['abook_incl'],t('words one per line or #tags or /patterns/, leave blank to import all posts')),
+ '$excl' => array('abook_excl',t('Do not import posts with this text'), $contact['abook_excl'],t('words one per line or #tags or /patterns/, leave blank to import all posts')),
+ '$rating_text' => array('rating_text', t('Optionally explain your rating (this information is public)'),$rating_text,''),
'$rating' => $rating,
'$rating_val' => $rating_val,
'$slide' => $slide,