forked from friendica/friendica-addons
Remove references to include/bbcode.php
This commit is contained in:
parent
16c3c2b93a
commit
88ca2f5a1e
|
@ -183,8 +183,6 @@ function blogger_send(&$a, &$b)
|
||||||
$bl_blog = PConfig::get($b['uid'], 'blogger', 'bl_blog');
|
$bl_blog = PConfig::get($b['uid'], 'blogger', 'bl_blog');
|
||||||
|
|
||||||
if ($bl_username && $bl_password && $bl_blog) {
|
if ($bl_username && $bl_password && $bl_blog) {
|
||||||
require_once('include/bbcode.php');
|
|
||||||
|
|
||||||
$title = '<title>' . (($b['title']) ? $b['title'] : L10n::t('Post from Friendica')) . '</title>';
|
$title = '<title>' . (($b['title']) ? $b['title'] : L10n::t('Post from Friendica')) . '</title>';
|
||||||
$post = $title . BBCode::convert($b['body']);
|
$post = $title . BBCode::convert($b['body']);
|
||||||
$post = xmlify($post);
|
$post = xmlify($post);
|
||||||
|
|
|
@ -179,9 +179,6 @@ function dwpost_send(&$a,&$b) {
|
||||||
$dw_blog = 'http://www.dreamwidth.org/interface/xmlrpc';
|
$dw_blog = 'http://www.dreamwidth.org/interface/xmlrpc';
|
||||||
|
|
||||||
if($dw_username && $dw_password && $dw_blog) {
|
if($dw_username && $dw_password && $dw_blog) {
|
||||||
|
|
||||||
require_once('include/bbcode.php');
|
|
||||||
|
|
||||||
$title = $b['title'];
|
$title = $b['title'];
|
||||||
$post = BBCode::convert($b['body']);
|
$post = BBCode::convert($b['body']);
|
||||||
$post = xmlify($post);
|
$post = xmlify($post);
|
||||||
|
|
|
@ -178,9 +178,6 @@ function ijpost_send(&$a,&$b) {
|
||||||
$ij_blog = 'http://www.insanejournal.com/interface/xmlrpc';
|
$ij_blog = 'http://www.insanejournal.com/interface/xmlrpc';
|
||||||
|
|
||||||
if($ij_username && $ij_password && $ij_blog) {
|
if($ij_username && $ij_password && $ij_blog) {
|
||||||
|
|
||||||
require_once('include/bbcode.php');
|
|
||||||
|
|
||||||
$title = $b['title'];
|
$title = $b['title'];
|
||||||
$post = BBCode::convert($b['body']);
|
$post = BBCode::convert($b['body']);
|
||||||
$post = xmlify($post);
|
$post = xmlify($post);
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
* License: 3-clause BSD license
|
* License: 3-clause BSD license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once 'include/bbcode.php';
|
|
||||||
require_once 'mod/proxy.php';
|
require_once 'mod/proxy.php';
|
||||||
|
|
||||||
use Friendica\Content\Text\BBCode;
|
use Friendica\Content\Text\BBCode;
|
||||||
|
|
|
@ -179,9 +179,6 @@ function ljpost_send(&$a,&$b) {
|
||||||
$lj_blog = xmlify('http://www.livejournal.com/interface/xmlrpc');
|
$lj_blog = xmlify('http://www.livejournal.com/interface/xmlrpc');
|
||||||
|
|
||||||
if($lj_username && $lj_password && $lj_blog) {
|
if($lj_username && $lj_password && $lj_blog) {
|
||||||
|
|
||||||
require_once('include/bbcode.php');
|
|
||||||
|
|
||||||
$title = xmlify($b['title']);
|
$title = xmlify($b['title']);
|
||||||
$post = BBCode::convert($b['body']);
|
$post = BBCode::convert($b['body']);
|
||||||
$post = xmlify($post);
|
$post = xmlify($post);
|
||||||
|
|
|
@ -257,7 +257,7 @@ function mailstream_send($a, $message_id, $item, $user) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
require_once(dirname(__file__).'/phpmailer/class.phpmailer.php');
|
require_once(dirname(__file__).'/phpmailer/class.phpmailer.php');
|
||||||
require_once('include/bbcode.php');
|
|
||||||
$attachments = [];
|
$attachments = [];
|
||||||
mailstream_do_images($a, $item, $attachments);
|
mailstream_do_images($a, $item, $attachments);
|
||||||
$frommail = Config::get('mailstream', 'frommail');
|
$frommail = Config::get('mailstream', 'frommail');
|
||||||
|
|
|
@ -6,8 +6,6 @@
|
||||||
* Author: Tobias Diekershoff <https://f.diekershoff.de/profile/tobias>
|
* Author: Tobias Diekershoff <https://f.diekershoff.de/profile/tobias>
|
||||||
***/
|
***/
|
||||||
|
|
||||||
require_once 'include/bbcode.php';
|
|
||||||
|
|
||||||
use Friendica\Content\Text\BBCode;
|
use Friendica\Content\Text\BBCode;
|
||||||
use Friendica\Core\Addon;
|
use Friendica\Core\Addon;
|
||||||
use Friendica\Core\Config;
|
use Friendica\Core\Config;
|
||||||
|
|
|
@ -471,9 +471,6 @@ function pumpio_send(&$a,&$b) {
|
||||||
$public = PConfig::get($b['uid'], "pumpio", "public");
|
$public = PConfig::get($b['uid'], "pumpio", "public");
|
||||||
|
|
||||||
if($oauth_token && $oauth_token_secret) {
|
if($oauth_token && $oauth_token_secret) {
|
||||||
|
|
||||||
require_once('include/bbcode.php');
|
|
||||||
|
|
||||||
$title = trim($b['title']);
|
$title = trim($b['title']);
|
||||||
|
|
||||||
$content = BBCode::convert($b['body'], false, 4);
|
$content = BBCode::convert($b['body'], false, 4);
|
||||||
|
|
|
@ -544,7 +544,6 @@ function statusnet_post_hook(App $a, &$b)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once 'include/bbcode.php';
|
|
||||||
$dent = new StatusNetOAuth($api, $ckey, $csecret, $otoken, $osecret);
|
$dent = new StatusNetOAuth($api, $ckey, $csecret, $otoken, $osecret);
|
||||||
$max_char = $dent->get_maxlength(); // max. length for a dent
|
$max_char = $dent->get_maxlength(); // max. length for a dent
|
||||||
|
|
||||||
|
|
|
@ -342,9 +342,6 @@ function tumblr_send(&$a,&$b) {
|
||||||
$tmbl_blog = 'blog/'.$page.'/post';
|
$tmbl_blog = 'blog/'.$page.'/post';
|
||||||
|
|
||||||
if($oauth_token && $oauth_token_secret && $tmbl_blog) {
|
if($oauth_token && $oauth_token_secret && $tmbl_blog) {
|
||||||
|
|
||||||
require_once('include/bbcode.php');
|
|
||||||
|
|
||||||
$tag_arr = [];
|
$tag_arr = [];
|
||||||
$tags = '';
|
$tags = '';
|
||||||
$x = preg_match_all('/\#\[(.*?)\](.*?)\[/',$b['tag'],$matches,PREG_SET_ORDER);
|
$x = preg_match_all('/\#\[(.*?)\](.*?)\[/',$b['tag'],$matches,PREG_SET_ORDER);
|
||||||
|
|
|
@ -211,8 +211,8 @@ function windowsphonepush_cron()
|
||||||
if (substr($body, 0, 4) == "[url") {
|
if (substr($body, 0, 4) == "[url") {
|
||||||
$body = "URL/Image ...";
|
$body = "URL/Image ...";
|
||||||
} else {
|
} else {
|
||||||
require_once('include/bbcode.php');
|
|
||||||
require_once("include/html2plain.php");
|
require_once("include/html2plain.php");
|
||||||
|
|
||||||
$body = BBCode::convert($body, false, 2, true);
|
$body = BBCode::convert($body, false, 2, true);
|
||||||
$body = html2plain($body, 0);
|
$body = html2plain($body, 0);
|
||||||
$body = ((strlen($body) > 137) ? substr($body, 0, 137) . "..." : $body);
|
$body = ((strlen($body) > 137) ? substr($body, 0, 137) . "..." : $body);
|
||||||
|
|
|
@ -221,7 +221,6 @@ function wppost_send(&$a,&$b) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($wp_username && $wp_password && $wp_blog) {
|
if ($wp_username && $wp_password && $wp_blog) {
|
||||||
require_once 'include/bbcode.php';
|
|
||||||
require_once 'include/html2plain.php';
|
require_once 'include/html2plain.php';
|
||||||
|
|
||||||
$wptitle = trim($b['title']);
|
$wptitle = trim($b['title']);
|
||||||
|
|
Loading…
Reference in a new issue