diff --git a/boot.php b/boot.php
index 0eccb8498e..1c7a157052 100644
--- a/boot.php
+++ b/boot.php
@@ -4,9 +4,9 @@ set_time_limit(0);
ini_set('pcre.backtrack_limit', 250000);
-define ( 'FRIENDIKA_VERSION', '2.2.1004' );
+define ( 'FRIENDIKA_VERSION', '2.2.1005' );
define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
-define ( 'DB_UPDATE_VERSION', 1062 );
+define ( 'DB_UPDATE_VERSION', 1063 );
define ( 'EOL', "
\r\n" );
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
@@ -527,20 +527,8 @@ function check_config(&$a) {
$plugins = get_config('system','addon');
$plugins_arr = array();
- if($plugins) {
+ if($plugins)
$plugins_arr = explode(',',str_replace(' ', '',$plugins));
- if(get_config('system','strict_privacy')) {
- unset($a->config['system']['huburl']);
- for($x = 0; $x < count($plugins_arr); $x ++) {
- if( $plugins_arr[$x] === 'facebook'
- || $plugins_arr[$x] === 'twitter'
- || $plugins_arr[$x] === 'statusnet') {
- unset($plugins_arr[$x]);
- }
- }
- }
- }
-
$a->plugins = $plugins_arr;
diff --git a/database.sql b/database.sql
index fd7ccf87ff..fa18c50dca 100644
--- a/database.sql
+++ b/database.sql
@@ -389,6 +389,7 @@ CREATE TABLE IF NOT EXISTS `user` (
`blockwall` tinyint(1) unsigned NOT NULL DEFAULT '0',
`notify-flags` int(11) unsigned NOT NULL DEFAULT '65535',
`page-flags` int(11) unsigned NOT NULL DEFAULT '0',
+ `prvnets` tinyint(1) NOT NULL DEFAULT '0',
`pwdreset` char(255) NOT NULL,
`maxreq` int(11) NOT NULL DEFAULT '10',
`expire` int(11) unsigned NOT NULL DEFAULT '0',
diff --git a/images/calendar.png b/images/calendar.png
new file mode 100644
index 0000000000..fbf52933de
Binary files /dev/null and b/images/calendar.png differ
diff --git a/include/event.php b/include/event.php
index 33970efff9..6962a2f1b8 100644
--- a/include/event.php
+++ b/include/event.php
@@ -1,47 +1,121 @@
';
- $o .= '
' . bbcode($ev['desc']) . '
'; + $o .= '' . bbcode($ev['desc']) . '
'; - $o .= '' . t('Starts:') . ' ' . t('Starts:') . ' ' - . (($ev['adjust']) ? datetime_convert('UTC', date_default_timezone_get(), - $ev['start'] /*, format */ ) - : datetime_convert('UTC', 'UTC', - $ev['start'] /*, format */ )) + . (($ev['adjust']) ? day_translate(datetime_convert('UTC', date_default_timezone_get(), + $ev['start'] , $bd_format )) + : day_translate(datetime_convert('UTC', 'UTC', + $ev['start'] , $bd_format))) . '
'; if(! $ev['nofinish']) - $o .= '' . t('Finishes:') . ' ' . t('Finishes:') . ' ' - . (($ev['adjust']) ? datetime_convert('UTC', date_default_timezone_get(), - $ev['finish'] /*, format */ ) - : datetime_convert('UTC', 'UTC', - $ev['finish'] /*, format */ )) + . (($ev['adjust']) ? day_translate(datetime_convert('UTC', date_default_timezone_get(), + $ev['finish'] , $bd_format )) + : day_translate(datetime_convert('UTC', 'UTC', + $ev['finish'] , $bd_format ))) . '
'; if(strlen($ev['location'])) - $o .= ' ' . t('Location:') . ''
+ $o .= ' ' . t('Location:') . ' '
. bbcode($ev['location'])
. '' . t('Applications') . '
';
- $o .= '';
+ $apps = false;
- if($a->apps)
+ if(local_user()) {
+ $apps = true;
+ $o .= '';
+ }
+
+ if($a->apps) {
+ $apps = true;
$o .= $a->apps;
+ }
+
+ if(! $apps)
+ notice( t('No installed applications.') . EOL);
return $o;
diff --git a/mod/dfrn_request.php b/mod/dfrn_request.php
index 338dc9cf1d..c9811fa60c 100644
--- a/mod/dfrn_request.php
+++ b/mod/dfrn_request.php
@@ -626,11 +626,9 @@ function dfrn_request_content(&$a) {
else
$tpl = get_markup_template('auto_request.tpl');
- $prv = get_config('system','strict_privacy');
-
$o .= replace_macros($tpl,array(
'$header' => t('Friend/Connection Request'),
- '$desc' => t('Examples: jojo@demo.friendika.com, http://demo.friendika.com/profile/jojo') . (($prv) ? ', testuser@identi.ca' : ''),
+ '$desc' => t('Examples: jojo@demo.friendika.com, http://demo.friendika.com/profile/jojo, testuser@identi.ca'),
'$pls_answer' => t('Please answer the following:'),
'$does_know' => sprintf( t('Does %s know you?'),$a->profile['name']),
'$yes' => t('Yes'),
@@ -638,9 +636,9 @@ function dfrn_request_content(&$a) {
'$add_note' => t('Add a personal note:'),
'$page_desc' => t("Please enter your 'Identity Address' from one of the following supported social networks:"),
'$friendika' => t('Friendika'),
- '$statusnet' => (($prv) ? t('StatusNet/Federated Social Web') : ''),
+ '$statusnet' => t('StatusNet/Federated Social Web'),
'$private_net' => t("Private \x28secure\x29 network"),
- '$public_net' => (($prv) ? t("Public \x28insecure\x29 network") : ''),
+ '$public_net' => t("Public \x28insecure\x29 network"),
'$your_address' => t('Your Identity Address:'),
'$submit' => t('Submit Request'),
'$cancel' => t('Cancel'),
diff --git a/mod/events.php b/mod/events.php
index f19a438fdd..af829c28df 100644
--- a/mod/events.php
+++ b/mod/events.php
@@ -54,6 +54,9 @@ function events_post(&$a) {
$str_contact_deny = perms2str($_POST['contact_deny']);
+ // until publishing is ready
+ $str_contact_allow = '<' . local_user() . '>';
+
if($event_id) {
$r = q("UPDATE `event` SET
`edited` = '%s',
@@ -169,7 +172,7 @@ function events_content(&$a) {
$prevyear --;
}
-
+ $o .= '';
$o .= '' . t('<< Previous') . ' | ' . t('Next >>') . '';
$o .= cal($y,$m,false, ' eventcal');
diff --git a/mod/follow.php b/mod/follow.php
index 31cfcfb64c..a354b34575 100644
--- a/mod/follow.php
+++ b/mod/follow.php
@@ -34,9 +34,6 @@ function follow_post(&$a) {
// NOTREACHED
}
- elseif(get_config('system','strict_privacy')) {
- unset($ret['notify']);
- }
// do we have enough information?
diff --git a/mod/photos.php b/mod/photos.php
index f1a2d635cb..18fff703ef 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -510,8 +510,15 @@ foreach($_FILES AS $key => $val) {
$arr['target'] .= '' . xmlify('' . "\n" . '') . '';
$item_id = item_store($arr);
- if($item_id)
+ if($item_id) {
+ q("UPDATE `item` SET `plink` = '%s' WHERE `uid` = %d AND `id` = %d LIMIT 1",
+ dbesc($a->get_baseurl() . '/display/' . $owner_record['nickname'] . '/' . $item_id),
+ intval($page_owner_uid),
+ intval($item_id)
+ );
+
proc_run('php',"include/notifier.php","tag","$item_id");
+ }
}
}
@@ -1106,9 +1113,10 @@ function photos_content(&$a) {
$tag_str .= bbcode($t);
}
$tags = array(t('Tags: '), $tag_str);
- if($cmd === 'edit')
+ if($cmd === 'edit') {
$tags[] = $a->get_baseurl() . '/tagrm/' . $link_item['id'];
$tags[] = t('[Remove any tag]');
+ }
}
diff --git a/mod/salmon.php b/mod/salmon.php
index bf33033d81..c2f76aa0a6 100644
--- a/mod/salmon.php
+++ b/mod/salmon.php
@@ -192,11 +192,6 @@ function salmon_post(&$a) {
// NOTREACHED
}
- // Check if we're allowed to talk to insecure networks
-
- if(get_config('system','strict_privacy'))
- salmon_return(400);
-
require_once('include/items.php');
// Placeholder for hub discovery. We shouldn't find any hubs
diff --git a/update.php b/update.php
index dfc5f88c95..e1bc736191 100644
--- a/update.php
+++ b/update.php
@@ -1,6 +1,6 @@