Merge branch 'master', remote-tracking branch 'remotes/upstream/master'

* remotes/upstream/master:
  more ssl policy stuff
  allow force ssl on notifications

* master:
This commit is contained in:
Simon L'nu 2012-05-26 19:39:34 -04:00
commit 24f5e6b3f3
3 changed files with 88 additions and 87 deletions

View file

@ -9,7 +9,7 @@ require_once('include/nav.php');
require_once('include/cache.php');
define ( 'FRIENDICA_PLATFORM', 'Friendica');
define ( 'FRIENDICA_VERSION', '3.0.1354' );
define ( 'FRIENDICA_VERSION', '3.0.1355' );
define ( 'DFRN_PROTOCOL_VERSION', '2.23' );
define ( 'DB_UPDATE_VERSION', 1144 );
@ -441,22 +441,19 @@ if(! class_exists('App')) {
if(intval($this->config['system']['ssl_policy']) === intval(SSL_POLICY_FULL))
$scheme = 'https';
// We need to populate the $ssl flag across the entire program before turning this on.
// Basically, we'll have $ssl = true on any links which can only be seen by a logged in user
// (and also the login link). Anything seen by an outsider will have it turned off.
// At present, setting SSL_POLICY_SELFSIGN will only force remote contacts to update their
// contact links to this site with "http:" if they are currently using "https:"
// Basically, we have $ssl = true on any links which can only be seen by a logged in user
// (and also the login link). Anything seen by an outsider will have it turned off.
// if($this->config['system']['ssl_policy'] == SSL_POLICY_SELFSIGN) {
// if($ssl)
// $scheme = 'https';
// else
// $scheme = 'http';
// }
}
if($this->config['system']['ssl_policy'] == SSL_POLICY_SELFSIGN) {
if($ssl)
$scheme = 'https';
else
$scheme = 'http';
}
}
$this->baseurl = $scheme . "://" . $this->hostname . ((isset($this->path) && strlen($this->path)) ? '/' . $this->path : '' );
return $this->baseurl;
$this->baseurl = $scheme . "://" . $this->hostname . ((isset($this->path) && strlen($this->path)) ? '/' . $this->path : '' );
return $this->baseurl;
}
function set_baseurl($url) {

View file

@ -13,7 +13,7 @@ function notification($params) {
$banner = t('Friendica Notification');
$product = FRIENDICA_PLATFORM;
$siteurl = z_path();
$siteurl = $a->get_baseurl(true);
$thanks = t('Thank You,');
$sitename = get_config('config','sitename');
$site_admin = sprintf( t('%s Administrator'), $sitename);

View file

@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: 3.0.1354\n"
"Project-Id-Version: 3.0.1355\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-05-25 10:00-0700\n"
"POT-Creation-Date: 2012-05-26 10:00-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -52,7 +52,7 @@ msgstr ""
#: ../../mod/message.php:96 ../../mod/allfriends.php:9
#: ../../mod/nogroup.php:25 ../../mod/wall_upload.php:53
#: ../../mod/follow.php:8 ../../mod/display.php:138 ../../mod/profiles.php:7
#: ../../mod/profiles.php:365 ../../mod/delegate.php:6
#: ../../mod/profiles.php:374 ../../mod/delegate.php:6
#: ../../mod/suggest.php:28 ../../mod/invite.php:13 ../../mod/invite.php:81
#: ../../mod/dfrn_confirm.php:53 ../../addon/facebook/facebook.php:503
#: ../../include/items.php:3214 ../../index.php:306
@ -131,7 +131,7 @@ msgstr ""
#: ../../mod/settings.php:760 ../../mod/settings.php:964
#: ../../mod/manage.php:109 ../../mod/group.php:85 ../../mod/admin.php:417
#: ../../mod/admin.php:653 ../../mod/admin.php:789 ../../mod/admin.php:988
#: ../../mod/admin.php:1075 ../../mod/profiles.php:534
#: ../../mod/admin.php:1075 ../../mod/profiles.php:543
#: ../../mod/invite.php:119 ../../addon/facebook/facebook.php:605
#: ../../addon/yourls/yourls.php:76 ../../addon/ljpost/ljpost.php:93
#: ../../addon/nsfw/nsfw.php:57 ../../addon/planets/planets.php:158
@ -331,7 +331,7 @@ msgstr ""
#: ../../mod/settings.php:910 ../../mod/settings.php:916
#: ../../mod/settings.php:952 ../../mod/settings.php:953
#: ../../mod/settings.php:954 ../../mod/settings.php:955
#: ../../mod/register.php:511 ../../mod/profiles.php:511
#: ../../mod/register.php:511 ../../mod/profiles.php:520
msgid "Yes"
msgstr ""
@ -342,7 +342,7 @@ msgstr ""
#: ../../mod/settings.php:910 ../../mod/settings.php:916
#: ../../mod/settings.php:952 ../../mod/settings.php:953
#: ../../mod/settings.php:954 ../../mod/settings.php:955
#: ../../mod/register.php:512 ../../mod/profiles.php:512
#: ../../mod/register.php:512 ../../mod/profiles.php:521
msgid "No"
msgstr ""
@ -2879,34 +2879,34 @@ msgstr ""
msgid "Empty post discarded."
msgstr ""
#: ../../mod/item.php:377 ../../mod/wall_upload.php:99
#: ../../mod/item.php:379 ../../mod/wall_upload.php:99
#: ../../mod/wall_upload.php:108 ../../mod/wall_upload.php:115
#: ../../include/message.php:144
msgid "Wall Photos"
msgstr ""
#: ../../mod/item.php:786
#: ../../mod/item.php:788
msgid "System error. Post not saved."
msgstr ""
#: ../../mod/item.php:811
#: ../../mod/item.php:813
#, php-format
msgid ""
"This message was sent to you by %s, a member of the Friendica social network."
msgstr ""
#: ../../mod/item.php:813
#: ../../mod/item.php:815
#, php-format
msgid "You may visit them online at %s"
msgstr ""
#: ../../mod/item.php:814
#: ../../mod/item.php:816
msgid ""
"Please contact the sender by replying to this post if you do not wish to "
"receive these messages."
msgstr ""
#: ../../mod/item.php:816
#: ../../mod/item.php:818
#, php-format
msgid "%s posted an update."
msgstr ""
@ -3788,8 +3788,8 @@ msgstr ""
msgid "Search"
msgstr ""
#: ../../mod/profiles.php:21 ../../mod/profiles.php:375
#: ../../mod/profiles.php:489 ../../mod/dfrn_confirm.php:62
#: ../../mod/profiles.php:21 ../../mod/profiles.php:384
#: ../../mod/profiles.php:498 ../../mod/dfrn_confirm.php:62
msgid "Profile not found."
msgstr ""
@ -3833,237 +3833,241 @@ msgstr ""
msgid "Interests"
msgstr ""
#: ../../mod/profiles.php:181
#: ../../mod/profiles.php:180
msgid "Address"
msgstr ""
#: ../../mod/profiles.php:187
msgid "Location"
msgstr ""
#: ../../mod/profiles.php:253
#: ../../mod/profiles.php:262
msgid "Profile updated."
msgstr ""
#: ../../mod/profiles.php:320
#: ../../mod/profiles.php:329
msgid " and "
msgstr ""
#: ../../mod/profiles.php:328
#: ../../mod/profiles.php:337
msgid "public profile"
msgstr ""
#: ../../mod/profiles.php:331
#: ../../mod/profiles.php:340
#, php-format
msgid "%1$s changed %2$s to &ldquo;%3$s&rdquo;"
msgstr ""
#: ../../mod/profiles.php:332
#: ../../mod/profiles.php:341
#, php-format
msgid " - Visit %1$s's %2$s"
msgstr ""
#: ../../mod/profiles.php:335
#: ../../mod/profiles.php:344
#, php-format
msgid "%1$s has an updated %2$s, changing %3$s."
msgstr ""
#: ../../mod/profiles.php:394
#: ../../mod/profiles.php:403
msgid "Profile deleted."
msgstr ""
#: ../../mod/profiles.php:412 ../../mod/profiles.php:446
#: ../../mod/profiles.php:421 ../../mod/profiles.php:455
msgid "Profile-"
msgstr ""
#: ../../mod/profiles.php:431 ../../mod/profiles.php:473
#: ../../mod/profiles.php:440 ../../mod/profiles.php:482
msgid "New profile created."
msgstr ""
#: ../../mod/profiles.php:452
#: ../../mod/profiles.php:461
msgid "Profile unavailable to clone."
msgstr ""
#: ../../mod/profiles.php:510
#: ../../mod/profiles.php:519
msgid "Hide your contact/friend list from viewers of this profile?"
msgstr ""
#: ../../mod/profiles.php:533
#: ../../mod/profiles.php:542
msgid "Edit Profile Details"
msgstr ""
#: ../../mod/profiles.php:535
#: ../../mod/profiles.php:544
msgid "View this profile"
msgstr ""
#: ../../mod/profiles.php:536
#: ../../mod/profiles.php:545
msgid "Create a new profile using these settings"
msgstr ""
#: ../../mod/profiles.php:537
#: ../../mod/profiles.php:546
msgid "Clone this profile"
msgstr ""
#: ../../mod/profiles.php:538
#: ../../mod/profiles.php:547
msgid "Delete this profile"
msgstr ""
#: ../../mod/profiles.php:539
#: ../../mod/profiles.php:548
msgid "Profile Name:"
msgstr ""
#: ../../mod/profiles.php:540
#: ../../mod/profiles.php:549
msgid "Your Full Name:"
msgstr ""
#: ../../mod/profiles.php:541
#: ../../mod/profiles.php:550
msgid "Title/Description:"
msgstr ""
#: ../../mod/profiles.php:542
#: ../../mod/profiles.php:551
msgid "Your Gender:"
msgstr ""
#: ../../mod/profiles.php:543
#: ../../mod/profiles.php:552
#, php-format
msgid "Birthday (%s):"
msgstr ""
#: ../../mod/profiles.php:544
#: ../../mod/profiles.php:553
msgid "Street Address:"
msgstr ""
#: ../../mod/profiles.php:545
#: ../../mod/profiles.php:554
msgid "Locality/City:"
msgstr ""
#: ../../mod/profiles.php:546
#: ../../mod/profiles.php:555
msgid "Postal/Zip Code:"
msgstr ""
#: ../../mod/profiles.php:547
#: ../../mod/profiles.php:556
msgid "Country:"
msgstr ""
#: ../../mod/profiles.php:548
#: ../../mod/profiles.php:557
msgid "Region/State:"
msgstr ""
#: ../../mod/profiles.php:549
#: ../../mod/profiles.php:558
msgid "<span class=\"heart\">&hearts;</span> Marital Status:"
msgstr ""
#: ../../mod/profiles.php:550
#: ../../mod/profiles.php:559
msgid "Who: (if applicable)"
msgstr ""
#: ../../mod/profiles.php:551
#: ../../mod/profiles.php:560
msgid "Examples: cathy123, Cathy Williams, cathy@example.com"
msgstr ""
#: ../../mod/profiles.php:552 ../../include/profile_advanced.php:43
#: ../../mod/profiles.php:561 ../../include/profile_advanced.php:43
msgid "Sexual Preference:"
msgstr ""
#: ../../mod/profiles.php:553
#: ../../mod/profiles.php:562
msgid "Homepage URL:"
msgstr ""
#: ../../mod/profiles.php:554 ../../include/profile_advanced.php:49
#: ../../mod/profiles.php:563 ../../include/profile_advanced.php:49
msgid "Political Views:"
msgstr ""
#: ../../mod/profiles.php:555
#: ../../mod/profiles.php:564
msgid "Religious Views:"
msgstr ""
#: ../../mod/profiles.php:556
#: ../../mod/profiles.php:565
msgid "Public Keywords:"
msgstr ""
#: ../../mod/profiles.php:557
#: ../../mod/profiles.php:566
msgid "Private Keywords:"
msgstr ""
#: ../../mod/profiles.php:558
#: ../../mod/profiles.php:567
msgid "Example: fishing photography software"
msgstr ""
#: ../../mod/profiles.php:559
#: ../../mod/profiles.php:568
msgid "(Used for suggesting potential friends, can be seen by others)"
msgstr ""
#: ../../mod/profiles.php:560
#: ../../mod/profiles.php:569
msgid "(Used for searching profiles, never shown to others)"
msgstr ""
#: ../../mod/profiles.php:561
#: ../../mod/profiles.php:570
msgid "Tell us about yourself..."
msgstr ""
#: ../../mod/profiles.php:562
#: ../../mod/profiles.php:571
msgid "Hobbies/Interests"
msgstr ""
#: ../../mod/profiles.php:563
#: ../../mod/profiles.php:572
msgid "Contact information and Social Networks"
msgstr ""
#: ../../mod/profiles.php:564
#: ../../mod/profiles.php:573
msgid "Musical interests"
msgstr ""
#: ../../mod/profiles.php:565
#: ../../mod/profiles.php:574
msgid "Books, literature"
msgstr ""
#: ../../mod/profiles.php:566
#: ../../mod/profiles.php:575
msgid "Television"
msgstr ""
#: ../../mod/profiles.php:567
#: ../../mod/profiles.php:576
msgid "Film/dance/culture/entertainment"
msgstr ""
#: ../../mod/profiles.php:568
#: ../../mod/profiles.php:577
msgid "Love/romance"
msgstr ""
#: ../../mod/profiles.php:569
#: ../../mod/profiles.php:578
msgid "Work/employment"
msgstr ""
#: ../../mod/profiles.php:570
#: ../../mod/profiles.php:579
msgid "School/education"
msgstr ""
#: ../../mod/profiles.php:575
#: ../../mod/profiles.php:584
msgid ""
"This is your <strong>public</strong> profile.<br />It <strong>may</strong> "
"be visible to anybody using the internet."
msgstr ""
#: ../../mod/profiles.php:585 ../../mod/directory.php:111
#: ../../mod/profiles.php:594 ../../mod/directory.php:111
msgid "Age: "
msgstr ""
#: ../../mod/profiles.php:620
#: ../../mod/profiles.php:629
msgid "Edit/Manage Profiles"
msgstr ""
#: ../../mod/profiles.php:621 ../../boot.php:1069
#: ../../mod/profiles.php:630 ../../boot.php:1069
msgid "Change profile photo"
msgstr ""
#: ../../mod/profiles.php:622 ../../boot.php:1070
#: ../../mod/profiles.php:631 ../../boot.php:1070
msgid "Create New Profile"
msgstr ""
#: ../../mod/profiles.php:633 ../../boot.php:1080
#: ../../mod/profiles.php:642 ../../boot.php:1080
msgid "Profile Image"
msgstr ""
#: ../../mod/profiles.php:635 ../../boot.php:1083
#: ../../mod/profiles.php:644 ../../boot.php:1083
msgid "visible to everybody"
msgstr ""
#: ../../mod/profiles.php:636 ../../boot.php:1084
#: ../../mod/profiles.php:645 ../../boot.php:1084
msgid "Edit visibility"
msgstr ""