';
diff --git a/blogger/blogger.php b/blogger/blogger.php
index c75cebac..8d60472c 100755
--- a/blogger/blogger.php
+++ b/blogger/blogger.php
@@ -71,11 +71,11 @@ function blogger_settings(&$a,&$s) {
/* Add some HTML to the existing form */
$s .= '';
- $s .= '
' . t('Blogger Post Settings') . '
';
+ $s .= '
' . t('Blogger') . '
';
$s .= '';
$s .= '
';
$s .= '';
- $s .= '
' . t('Blogger Post Settings') . '
';
+ $s .= '
' . t('Blogger') . '
';
$s .= '';
$s .= '
';
diff --git a/communityhome/communityhome.php b/communityhome/communityhome.php
index cbcf86a0..8a2f3d29 100755
--- a/communityhome/communityhome.php
+++ b/communityhome/communityhome.php
@@ -75,8 +75,8 @@ function communityhome_home(&$a, &$o){
// this query don't work on some mysql versions
if (get_config('communityhome','showactiveusers')===true){
$r = q("SELECT `uni`.`contacts`,`uni`.`items`, `profile`.*, `profile`.`uid` AS `profile_uid`, `user`.`nickname` FROM
- (SELECT COUNT(`id`) as `contacts`, `uid` FROM `contact` WHERE `self`=0 GROUP BY `uid`) AS `con`,
- (SELECT COUNT(`id`) as `items`, `uid` FROM `item` WHERE `item`.`changed` > DATE(NOW() - INTERVAL 1 MONTH) AND `item`.`wall` = 1 GROUP BY `uid`) AS `ite`,
+ (SELECT COUNT(*) as `contacts`, `uid` FROM `contact` WHERE `self`=0 GROUP BY `uid`) AS `con`,
+ (SELECT COUNT(*) as `items`, `uid` FROM `item` WHERE `item`.`changed` > DATE(NOW() - INTERVAL 1 MONTH) AND `item`.`wall` = 1 GROUP BY `uid`) AS `ite`,
(
SELECT `contacts`,`items`,`ite`.`uid` FROM `con` RIGHT OUTER JOIN `ite` ON `con`.`uid`=`ite`.`uid`
UNION ALL
diff --git a/convpath/convpath.php b/convpath/convpath.php
index e5dc0b36..95093694 100644
--- a/convpath/convpath.php
+++ b/convpath/convpath.php
@@ -10,12 +10,22 @@
function convpath_install() {
register_hook('page_end', 'addon/convpath/convpath.php', 'convpath_page_end');
register_hook('page_header', 'addon/convpath/convpath.php', 'convpath_page_header');
+ register_hook('ping_xmlize', 'addon/convpath/convpath.php', 'convpath_ping_xmlize_hook');
+ register_hook('prepare_body', 'addon/convpath/convpath.php', 'convpath_prepare_body_hook');
+ register_hook('display_item', 'addon/convpath/convpath.php', 'convpath_display_item_hook');
}
function convpath_uninstall() {
unregister_hook('page_end', 'addon/convpath/convpath.php', 'convpath_page_end');
unregister_hook('page_header', 'addon/convpath/convpath.php', 'convpath_page_header');
+ unregister_hook('ping_xmlize', 'addon/convpath/convpath.php', 'convpath_ping_xmlize_hook');
+ unregister_hook('prepare_body', 'addon/convpath/convpath.php', 'convpath_prepare_body_hook');
+ unregister_hook('display_item', 'addon/convpath/convpath.php', 'convpath_display_item_hook');
+}
+
+function convpath_ping_xmlize_hook(&$a, &$o) {
+ $o["photo"] = convpath_url($a, $o["photo"]);
}
function convpath_page_header(&$a, &$o){
@@ -27,6 +37,42 @@ function convpath_page_end(&$a, &$o){
$a->page['aside'] = convpath_convert($a->page['aside']);
}
+function convpath_prepare_body_hook(&$a, &$o) {
+ $o["html"] = convpath_convert($o["html"]);
+}
+
+function convpath_display_item_hook(&$a, &$o) {
+ if (isset($o["output"])) {
+ if (isset($o["output"]["thumb"]))
+ $o["output"]["thumb"] = convpath_url($a, $o["output"]["thumb"]);
+ if (isset($o["output"]["author-avatar"]))
+ $o["output"]["author-avatar"] = convpath_url($a, $o["output"]["author-avatar"]);
+ if (isset($o["output"]["owner-avatar"]))
+ $o["output"]["owner-avatar"] = convpath_url($a, $o["output"]["owner-avatar"]);
+ if (isset($o["output"]["owner_photo"]))
+ $o["output"]["owner_photo"] = convpath_url($a, $o["output"]["owner_photo"]);
+ }
+}
+
+function convpath_url($a, $path) {
+ if ($path == "")
+ return("");
+
+ $ssl = (substr($a->get_baseurl(), 0, 8) == "https://");
+
+ if ($ssl) {
+ $search = "http://".$a->get_hostname();
+ $replace = "https://".$a->get_hostname();
+ } else {
+ $search = "https://".$a->get_hostname();
+ $replace = "http://".$a->get_hostname();
+ }
+
+ $path = str_replace($search, $replace, $path);
+
+ return($path);
+}
+
/*
Converts a given path according to the current scheme
*/
diff --git a/curweather/curweather.php b/curweather/curweather.php
index bd0d6c75..67d5939e 100644
--- a/curweather/curweather.php
+++ b/curweather/curweather.php
@@ -87,7 +87,7 @@ function curweather_plugin_settings(&$a,&$s) {
/* Add some HTML to the existing form */
$s .= '
';
- $s .= '
' . t('Current Weather Settings') . '
';
+ $s .= '
' . t('Current Weather') . '
';
$s .= '
';
$s .= '
Find the location code for the airport/weather station nearest you here.
';
-
+
$appid = get_config('facebook', 'appid' );
$appsecret = get_config('facebook', 'appsecret' );
$poll_interval = get_config('facebook', 'poll_interval' );
$sync_comments = get_config('facebook', 'sync_comments' );
if (!$poll_interval) $poll_interval = FACEBOOK_DEFAULT_POLL_INTERVAL;
-
+
$ret1 = q("SELECT `v` FROM `config` WHERE `cat` = 'facebook' AND `k` = 'appid' LIMIT 1");
$ret2 = q("SELECT `v` FROM `config` WHERE `cat` = 'facebook' AND `k` = 'appsecret' LIMIT 1");
if ((count($ret1) > 0 && $ret1[0]['v'] != $appid) || (count($ret2) > 0 && $ret2[0]['v'] != $appsecret)) $o .= t('Error: it appears that you have specified the App-ID and -Secret in your .htconfig.php file. As long as they are specified there, they cannot be set using this form.
');
-
+
$working_connection = false;
if ($appid && $appsecret) {
$subs = facebook_subscriptions_get();
@@ -764,7 +764,7 @@ function facebook_plugin_admin(&$a, &$o){
$working_connection = true;
} else $o .= t('The correctness of the API Key could not be detected. Something strange\'s going on.') . ' ';
}
-
+
$o .= ' ';
$o .= ' ';
$o .= ' ';
@@ -1171,7 +1171,7 @@ function facebook_post_hook(&$a,&$b) {
$retj = json_decode($x);
if($retj->id) {
- q("UPDATE `item` SET `extid` = '%s' WHERE `id` = %d LIMIT 1",
+ q("UPDATE `item` SET `extid` = '%s' WHERE `id` = %d",
dbesc('fb::' . $retj->id),
intval($b['id'])
);
@@ -1183,14 +1183,14 @@ function facebook_post_hook(&$a,&$b) {
add_to_queue($a->contact,NETWORK_FACEBOOK,$s);
notice( t('Facebook post failed. Queued for retry.') . EOL);
}
-
+
if (isset($retj->error) && $retj->error->type == "OAuthException" && $retj->error->code == 190) {
logger('Facebook session has expired due to changed password.', LOGGER_DEBUG);
-
+
$last_notification = get_pconfig($b['uid'], 'facebook', 'session_expired_mailsent');
if (!$last_notification || $last_notification < (time() - FACEBOOK_SESSION_ERR_NOTIFICATION_INTERVAL)) {
require_once('include/enotify.php');
-
+
$r = q("SELECT * FROM `user` WHERE `uid` = %d LIMIT 1", intval($b['uid']) );
notification(array(
'uid' => $b['uid'],
@@ -1203,7 +1203,7 @@ function facebook_post_hook(&$a,&$b) {
'source_link' => $a->config["system"]["url"],
'source_photo' => $a->config["system"]["url"] . '/images/person-80.jpg',
));
-
+
set_pconfig($b['uid'], 'facebook', 'session_expired_mailsent', time());
} else logger('Facebook: No notification, as the last one was sent on ' . $last_notification, LOGGER_DEBUG);
}
@@ -1307,11 +1307,11 @@ function fb_queue_hook(&$a,&$b) {
$retj = json_decode($j);
if($retj->id) {
- q("UPDATE `item` SET `extid` = '%s' WHERE `id` = %d LIMIT 1",
+ q("UPDATE `item` SET `extid` = '%s' WHERE `id` = %d",
dbesc('fb::' . $retj->id),
intval($item)
);
- logger('facebook_queue: success: ' . $j);
+ logger('facebook_queue: success: ' . $j);
remove_queue_item($x['id']);
}
else {
diff --git a/fbpost/fbpost.php b/fbpost/fbpost.php
index 3b064a56..db905a15 100644
--- a/fbpost/fbpost.php
+++ b/fbpost/fbpost.php
@@ -207,7 +207,7 @@ function fbpost_content(&$a) {
$a->page['htmlhead'] .= '' . "\r\n";
- $o .= '
' . t('Facebook Post') . '
';
+ $o .= '
' . t('Facebook') . '
';
if(! $fb_installed) {
$o .= '
';
@@ -293,8 +293,7 @@ function fbpost_content(&$a) {
function fbpost_plugin_settings(&$a,&$b) {
$b .= '
';
}
@@ -1173,7 +1172,7 @@ function fbpost_get_photo($uid,$link) {
function fpost_cleanpicture($image) {
- if (strpos($image, ".fbcdn.net/") and (substr($image, -6) == "_s.jpg"))
+ if ((strpos($image, ".fbcdn.net/") OR strpos($image, "/fbcdn-photos-")) and (substr($image, -6) == "_s.jpg"))
$image = substr($image, 0, -6)."_n.jpg";
$queryvar = fbpost_parse_query($image);
diff --git a/fbsync/fbsync.php b/fbsync/fbsync.php
index ee70481c..e69cd2c0 100644
--- a/fbsync/fbsync.php
+++ b/fbsync/fbsync.php
@@ -120,11 +120,11 @@ function fbsync_settings(&$a,&$s) {
/* Add some HTML to the existing form */
$s .= '';
- $s .= '
' . t('Facebook Import Settings') . '
';
+ $s .= '
' . t('Facebook Import') . '
';
$s .= '';
$s .= '
';
$s .= '';
- $s .= '
' . t('Facebook Import Settings') . '
';
+ $s .= '
' . t('Facebook Import') . '
';
$s .= '';
$s .= '
';
diff --git a/forumlist/forumlist.php b/forumlist/forumlist.php
index 50fc0a5c..61a20c71 100644
--- a/forumlist/forumlist.php
+++ b/forumlist/forumlist.php
@@ -158,11 +158,11 @@ function forumlist_plugin_settings(&$a,&$s) {
/* Add some HTML to the existing form */
$s .= '';
- $s .= '
' . t('Not Safe For Work (General Purpose Content Filter) settings') . '
';
+ $s .= '
' . t('Not Safe For Work (General Purpose Content Filter)') . '
';
$s .= '';
$s .= '
';
$s .= '';
- $s .= '
' . t('Not Safe For Work (General Purpose Content Filter) settings') . '
';
+ $s .= '
' . t('Not Safe For Work (General Purpose Content Filter)') . '
';
$s .= '';
$s .= '
';
diff --git a/public_server/public_server.php b/public_server/public_server.php
index 8dacc916..7d8b8136 100644
--- a/public_server/public_server.php
+++ b/public_server/public_server.php
@@ -36,7 +36,7 @@ function public_server_register_account($a,$b) {
if(! $days)
return;
- $r = q("UPDATE user set account_expires_on = '%s', expire = %d where uid = %d limit 1",
+ $r = q("UPDATE user set account_expires_on = '%s', expire = %d where uid = %d",
dbesc(datetime_convert('UTC','UTC','now +' . $days . ' days')),
intval($days_posts),
intval($uid)
@@ -66,7 +66,7 @@ function public_server_cron($a,$b) {
'source_photo' => $a->get_baseurl() . '/images/person-80.jpg',
));
- q("update user set expire_notification_sent = '%s' where uid = %d limit 1",
+ q("update user set expire_notification_sent = '%s' where uid = %d",
dbesc(datetime_convert()),
intval($rr['uid'])
);
@@ -85,7 +85,7 @@ function public_server_cron($a,$b) {
$r = q("select uid from user where account_expired = 0 and login_date = '0000-00-00 00:00:00' and register_date < UTC_TIMESTAMP() - INTERVAL %d DAY and account_expires_on = '0000-00-00 00:00:00'",intval($nologin));
if(count($r)) {
foreach($r as $rr)
- q("update user set account_expires_on = '%s' where uid = %d limit 1",
+ q("update user set account_expires_on = '%s' where uid = %d",
dbesc(datetime_convert('UTC','UTC','now +' . '6 days')),
intval($rr['uid'])
);
@@ -98,7 +98,7 @@ function public_server_cron($a,$b) {
$r = q("select uid from user where account_expired = 0 and login_date < UTC_TIMESTAMP() - INTERVAL %d DAY and account_expires_on = '0000-00-00 00:00:00' and `page-flags` = 0",intval($flagusers));
if(count($r)) {
foreach($r as $rr)
- q("update user set account_expires_on = '%s' where uid = %d limit 1",
+ q("update user set account_expires_on = '%s' where uid = %d",
dbesc(datetime_convert('UTC','UTC','now +' . '6 days')),
intval($rr['uid'])
);
@@ -111,7 +111,7 @@ function public_server_cron($a,$b) {
$r = q("select uid from user where account_expired = 0 and login_date < UTC_TIMESTAMP() - INTERVAL %d DAY and account_expires_on = '0000-00-00 00:00:00' and expire = 0 and `page-flags` = 0",intval($flagposts));
if(count($r)) {
foreach($r as $rr)
- q("update user set expire = %d where uid = %d limit 1",
+ q("update user set expire = %d where uid = %d",
intval($flagpostsexpire),
intval($rr['uid'])
);
@@ -136,7 +136,7 @@ function public_server_login($a,$b) {
$days = get_config('public_server','expiredays');
if(! $days)
return;
- $r = q("UPDATE user set account_expires_on = '%s' where uid = %d and account_expires_on > '0000-00-00 00:00:00' limit 1",
+ $r = q("UPDATE user set account_expires_on = '%s' where uid = %d and account_expires_on > '0000-00-00 00:00:00'",
dbesc(datetime_convert('UTC','UTC','now +' . $days . ' days')),
local_user()
);
diff --git a/pumpio/pumpio.php b/pumpio/pumpio.php
index ac28a00d..0280b517 100755
--- a/pumpio/pumpio.php
+++ b/pumpio/pumpio.php
@@ -219,11 +219,11 @@ function pumpio_settings(&$a,&$s) {
/* Add some HTML to the existing form */
$s .= '';
- $s .= '
' . t('Pump.io Post Settings') . '
';
+ $s .= '
' . t('Pump.io') . '
';
$s .= '';
$s .= '
';
$s .= '';
- $s .= '
' . t('Pump.io Post Settings') . '
';
+ $s .= '
' . t('Pump.io') . '
';
$s .= '';
$s .= '
';
@@ -1022,6 +1022,7 @@ function pumpio_dodelete(&$a, $uid, $self, $post, $own_id) {
function pumpio_dopost(&$a, $client, $uid, $self, $post, $own_id, $threadcompletion = false) {
require_once('include/items.php');
+ require_once('include/html2bbcode.php');
if (($post->verb == "like") OR ($post->verb == "favorite"))
return pumpio_dolike($a, $uid, $self, $post, $own_id);
diff --git a/snautofollow/snautofollow.php b/snautofollow/snautofollow.php
index 4afb8706..ca19d650 100644
--- a/snautofollow/snautofollow.php
+++ b/snautofollow/snautofollow.php
@@ -53,11 +53,11 @@ function snautofollow_settings(&$a,&$s) {
/* Add some HTML to the existing form */
$s .= '';
- $s .= '
' . t('StatusNet AutoFollow Settings') . '
';
+ $s .= '
' . t('StatusNet AutoFollow') . '
';
$s .= '';
$s .= '
';
$s .= '';
- $s .= '
' . t('StatusNet AutoFollow Settings') . '
';
+ $s .= '
' . t('StatusNet AutoFollow') . '
';
$s .= '';
$s .= '
';
diff --git a/startpage/startpage.php b/startpage/startpage.php
index 6c266ca8..e0d822ac 100644
--- a/startpage/startpage.php
+++ b/startpage/startpage.php
@@ -80,11 +80,11 @@ function startpage_settings(&$a,&$s) {
/* Add some HTML to the existing form */
$s .= '';
- $s .= '
' . t('Startpage Settings') . '
';
+ $s .= '
' . t('Startpage') . '
';
$s .= '';
$s .= '
';
$s .= '';
- $s .= '
' . t('Startpage Settings') . '
';
+ $s .= '
' . t('Startpage') . '
';
$s .= '';
$s .= '
';
$s .= '';
diff --git a/statusnet/statusnet.php b/statusnet/statusnet.php
index a159e87a..d4120aaf 100755
--- a/statusnet/statusnet.php
+++ b/statusnet/statusnet.php
@@ -155,7 +155,7 @@ function statusnet_settings_post ($a,$post) {
return;
// don't check statusnet settings if statusnet submit button is not clicked
if (!x($_POST,'statusnet-submit')) return;
-
+
if (isset($_POST['statusnet-disconnect'])) {
/***
* if the statusnet-disconnect checkbox is set, clear the statusnet configuration
@@ -279,11 +279,11 @@ function statusnet_settings(&$a,&$s) {
$shorteningchecked = (($shorteningenabled) ? ' checked="checked" ' : '');
$s .= '';
- $s .= '
'. t('StatusNet Posting Settings').'
';
+ $s .= '
'. t('StatusNet').'
';
$s .= '';
$s .= '
';
$s .= '';
- $s .= '
'. t('StatusNet Posting Settings').'
';
+ $s .= '
'. t('StatusNet').'
';
$s .= '';
if ( (!$ckey) && (!$csecret) ) {
diff --git a/testdrive/testdrive.php b/testdrive/testdrive.php
index 968aa834..eff149d3 100644
--- a/testdrive/testdrive.php
+++ b/testdrive/testdrive.php
@@ -41,13 +41,13 @@ function testdrive_register_account($a,$b) {
if(! $days)
return;
- $r = q("UPDATE user set account_expires_on = '%s' where uid = %d limit 1",
+ $r = q("UPDATE user set account_expires_on = '%s' where uid = %d",
dbesc(datetime_convert('UTC','UTC','now +' . $days . ' days')),
intval($uid)
);
};
-
+
function testdrive_cron($a,$b) {
require_once('include/enotify.php');
@@ -69,11 +69,11 @@ function testdrive_cron($a,$b) {
'source_photo' => $a->get_baseurl() . '/images/person-80.jpg',
));
- q("update user set expire_notification_sent = '%s' where uid = %d limit 1",
+ q("update user set expire_notification_sent = '%s' where uid = %d",
dbesc(datetime_convert()),
intval($rr['uid'])
);
-
+
}
}
diff --git a/tumblr/tumblr.php b/tumblr/tumblr.php
index 0102d633..114fcc5b 100755
--- a/tumblr/tumblr.php
+++ b/tumblr/tumblr.php
@@ -182,11 +182,11 @@ function tumblr_settings(&$a,&$s) {
/* Add some HTML to the existing form */
$s .= '';
- $s .= '