provide disclosure warning on private network page
This commit is contained in:
parent
afdbbaf27d
commit
3787e1e500
5 changed files with 40 additions and 23 deletions
|
@ -274,6 +274,7 @@ function contacts_content(&$a) {
|
||||||
'$ignorecont' => t('Ignore contact'),
|
'$ignorecont' => t('Ignore contact'),
|
||||||
'$altcrepair' => t('Repair contact URL settings'),
|
'$altcrepair' => t('Repair contact URL settings'),
|
||||||
'$lblcrepair' => t("Repair contact URL settings \x28WARNING: Advanced\x29"),
|
'$lblcrepair' => t("Repair contact URL settings \x28WARNING: Advanced\x29"),
|
||||||
|
'$lblrecent' => t('View conversations'),
|
||||||
'$delete' => t('Delete contact'),
|
'$delete' => t('Delete contact'),
|
||||||
'$poll_interval' => contact_poll_interval($r[0]['priority']),
|
'$poll_interval' => contact_poll_interval($r[0]['priority']),
|
||||||
'$lastupdtext' => t('Last updated: '),
|
'$lastupdtext' => t('Last updated: '),
|
||||||
|
|
|
@ -212,13 +212,17 @@ function network_content(&$a, $update = 0) {
|
||||||
}
|
}
|
||||||
elseif($cid) {
|
elseif($cid) {
|
||||||
|
|
||||||
$r = q("SELECT `id`,`name` FROM `contact` WHERE `id` = %d
|
$r = q("SELECT `id`,`name`,`network`,`writable` FROM `contact` WHERE `id` = %d
|
||||||
AND `blocked` = 0 AND `pending` = 0 LIMIT 1",
|
AND `blocked` = 0 AND `pending` = 0 LIMIT 1",
|
||||||
intval($cid)
|
intval($cid)
|
||||||
);
|
);
|
||||||
if(count($r)) {
|
if(count($r)) {
|
||||||
$sql_extra = " AND `item`.`parent` IN ( SELECT `parent` FROM `item` WHERE `id` = `parent` AND `contact-id` IN ( " . intval($cid) . " )) ";
|
$sql_extra = " AND `item`.`parent` IN ( SELECT `parent` FROM `item` WHERE `id` = `parent` AND `contact-id` IN ( " . intval($cid) . " )) ";
|
||||||
$o = '<h2>' . t('Contact: ') . $r[0]['name'] . '</h2>' . $o;
|
$o = '<h2>' . t('Contact: ') . $r[0]['name'] . '</h2>' . $o;
|
||||||
|
if($r[0]['network'] !== NETWORK_MAIL && $r[0]['network'] !== NETWORK_DFRN && $r[0]['writable'] && (! get_pconfig(local_user(),'system','nowarn_insecure'))) {
|
||||||
|
notice( t('Private messages to this person are at risk of public disclosure.') . EOL);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
notice( t('Invalid contact.') . EOL);
|
notice( t('Invalid contact.') . EOL);
|
||||||
|
|
|
@ -8,7 +8,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: 2.1.954\n"
|
"Project-Id-Version: 2.1.954\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2011-04-19 20:49-0700\n"
|
"POT-Creation-Date: 2011-04-19 21:09-0700\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
@ -979,15 +979,15 @@ msgstr ""
|
||||||
msgid "Contact has been removed."
|
msgid "Contact has been removed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../mod/contacts.php:228 ../../mod/contacts.php:362
|
#: ../../mod/contacts.php:228 ../../mod/contacts.php:363
|
||||||
msgid "Mutual Friendship"
|
msgid "Mutual Friendship"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../mod/contacts.php:232 ../../mod/contacts.php:366
|
#: ../../mod/contacts.php:232 ../../mod/contacts.php:367
|
||||||
msgid "is a fan of yours"
|
msgid "is a fan of yours"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../mod/contacts.php:237 ../../mod/contacts.php:370
|
#: ../../mod/contacts.php:237 ../../mod/contacts.php:371
|
||||||
msgid "you are a fan of"
|
msgid "you are a fan of"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -1073,71 +1073,75 @@ msgid "Repair contact URL settings (WARNING: Advanced)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../mod/contacts.php:277
|
#: ../../mod/contacts.php:277
|
||||||
|
msgid "View conversations"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: ../../mod/contacts.php:278
|
||||||
msgid "Delete contact"
|
msgid "Delete contact"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../mod/contacts.php:279
|
#: ../../mod/contacts.php:280
|
||||||
msgid "Last updated: "
|
msgid "Last updated: "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../mod/contacts.php:280
|
#: ../../mod/contacts.php:281
|
||||||
msgid "Update public posts: "
|
msgid "Update public posts: "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../mod/contacts.php:282
|
#: ../../mod/contacts.php:283
|
||||||
msgid "Update now"
|
msgid "Update now"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../mod/contacts.php:285
|
#: ../../mod/contacts.php:286
|
||||||
msgid "Unblock this contact"
|
msgid "Unblock this contact"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../mod/contacts.php:285
|
#: ../../mod/contacts.php:286
|
||||||
msgid "Block this contact"
|
msgid "Block this contact"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../mod/contacts.php:286
|
#: ../../mod/contacts.php:287
|
||||||
msgid "Unignore this contact"
|
msgid "Unignore this contact"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../mod/contacts.php:286
|
#: ../../mod/contacts.php:287
|
||||||
msgid "Ignore this contact"
|
msgid "Ignore this contact"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../mod/contacts.php:289
|
#: ../../mod/contacts.php:290
|
||||||
msgid "Currently blocked"
|
msgid "Currently blocked"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../mod/contacts.php:290
|
#: ../../mod/contacts.php:291
|
||||||
msgid "Currently ignored"
|
msgid "Currently ignored"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../mod/contacts.php:321 ../../include/nav.php:110
|
#: ../../mod/contacts.php:322 ../../include/nav.php:110
|
||||||
#: ../../include/acl_selectors.php:143 ../../include/acl_selectors.php:158
|
#: ../../include/acl_selectors.php:143 ../../include/acl_selectors.php:158
|
||||||
msgid "Contacts"
|
msgid "Contacts"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../mod/contacts.php:323
|
#: ../../mod/contacts.php:324
|
||||||
msgid "Show Blocked Connections"
|
msgid "Show Blocked Connections"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../mod/contacts.php:323
|
#: ../../mod/contacts.php:324
|
||||||
msgid "Hide Blocked Connections"
|
msgid "Hide Blocked Connections"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../mod/contacts.php:325 ../../mod/directory.php:38
|
#: ../../mod/contacts.php:326 ../../mod/directory.php:38
|
||||||
msgid "Finding: "
|
msgid "Finding: "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../mod/contacts.php:326 ../../mod/directory.php:40
|
#: ../../mod/contacts.php:327 ../../mod/directory.php:40
|
||||||
msgid "Find"
|
msgid "Find"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../mod/contacts.php:386 ../../mod/viewcontacts.php:44
|
#: ../../mod/contacts.php:387 ../../mod/viewcontacts.php:44
|
||||||
msgid "Visit $username's profile"
|
msgid "Visit $username's profile"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../mod/contacts.php:387 ../../include/conversation.php:584
|
#: ../../mod/contacts.php:388 ../../include/conversation.php:584
|
||||||
msgid "Edit contact"
|
msgid "Edit contact"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -1550,11 +1554,15 @@ msgstr ""
|
||||||
msgid "Contact: "
|
msgid "Contact: "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../mod/network.php:224
|
#: ../../mod/network.php:223
|
||||||
|
msgid "Private messages to this person are at risk of public disclosure."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: ../../mod/network.php:228
|
||||||
msgid "Invalid contact."
|
msgid "Invalid contact."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../mod/network.php:323 ../../mod/register.php:450
|
#: ../../mod/network.php:327 ../../mod/register.php:450
|
||||||
#: ../../mod/profile.php:322 ../../mod/display.php:142
|
#: ../../mod/profile.php:322 ../../mod/display.php:142
|
||||||
msgid ""
|
msgid ""
|
||||||
"Shared content is covered by the <a href=\"http://creativecommons.org/"
|
"Shared content is covered by the <a href=\"http://creativecommons.org/"
|
||||||
|
|
|
@ -105,6 +105,7 @@ $a->strings['Block/Unblock contact'] = 'Block/Unblock contact';
|
||||||
$a->strings['Ignore contact'] = 'Ignore contact';
|
$a->strings['Ignore contact'] = 'Ignore contact';
|
||||||
$a->strings['Repair contact URL settings'] = 'Repair contact URL settings';
|
$a->strings['Repair contact URL settings'] = 'Repair contact URL settings';
|
||||||
$a->strings["Repair contact URL settings \x28WARNING: Advanced\x29"] = "Repair contact URL settings \x28WARNING: Advanced\x29";
|
$a->strings["Repair contact URL settings \x28WARNING: Advanced\x29"] = "Repair contact URL settings \x28WARNING: Advanced\x29";
|
||||||
|
$a->strings['View conversations'] = 'View conversations';
|
||||||
$a->strings['Delete contact'] = 'Delete contact';
|
$a->strings['Delete contact'] = 'Delete contact';
|
||||||
$a->strings['Last updated: '] = 'Last updated: ';
|
$a->strings['Last updated: '] = 'Last updated: ';
|
||||||
$a->strings['Update public posts: '] = 'Update public posts: ';
|
$a->strings['Update public posts: '] = 'Update public posts: ';
|
||||||
|
@ -365,6 +366,7 @@ $a->strings['No such group'] = 'No such group';
|
||||||
$a->strings['Group is empty'] = 'Group is empty';
|
$a->strings['Group is empty'] = 'Group is empty';
|
||||||
$a->strings['Group: '] = 'Group: ';
|
$a->strings['Group: '] = 'Group: ';
|
||||||
$a->strings['Contact: '] = 'Contact: ';
|
$a->strings['Contact: '] = 'Contact: ';
|
||||||
|
$a->strings['Private messages to this person are at risk of public disclosure.'] = 'Private messages to this person are at risk of public disclosure.';
|
||||||
$a->strings['Invalid contact.'] = 'Invalid contact.';
|
$a->strings['Invalid contact.'] = 'Invalid contact.';
|
||||||
$a->strings['%d member'] = array(
|
$a->strings['%d member'] = array(
|
||||||
0 => '%d member',
|
0 => '%d member',
|
||||||
|
|
|
@ -42,6 +42,8 @@ $insecure
|
||||||
$blocked
|
$blocked
|
||||||
$ignored
|
$ignored
|
||||||
|
|
||||||
|
<div id="view-recent-wrapper"><a href="network/?cid=$contact_id" id="contact-view-recent">$lblrecent</a></div>
|
||||||
|
|
||||||
<div id="contact-edit-info-wrapper">
|
<div id="contact-edit-info-wrapper">
|
||||||
<h4>$lbl_info1</h4>
|
<h4>$lbl_info1</h4>
|
||||||
<textarea id="contact-edit-info" rows="10" cols="72" name="info" >$info</textarea>
|
<textarea id="contact-edit-info" rows="10" cols="72" name="info" >$info</textarea>
|
||||||
|
|
Loading…
Reference in a new issue