Remove references to include/bbcode.php

This commit is contained in:
Hypolite Petovan 2018-02-14 22:01:14 -05:00
parent 05a2ea4220
commit 9e3bae5caa
36 changed files with 1 additions and 50 deletions

View file

@ -186,9 +186,6 @@ function contact_selector($selname, $selclass, $options, $preselected = false)
function contact_select($selname, $selclass, $preselected = false, $size = 4, $privmail = false, $celeb = false, $privatenet = false, $tabindex = null) { function contact_select($selname, $selclass, $preselected = false, $size = 4, $privmail = false, $celeb = false, $privatenet = false, $tabindex = null) {
require_once "include/bbcode.php";
$a = get_app(); $a = get_app();
$o = ''; $o = '';

View file

@ -40,7 +40,6 @@ use Friendica\Util\DateTimeFormat;
use Friendica\Util\Network; use Friendica\Util\Network;
use Friendica\Util\XML; use Friendica\Util\XML;
require_once 'include/bbcode.php';
require_once 'include/conversation.php'; require_once 'include/conversation.php';
require_once 'include/html2plain.php'; require_once 'include/html2plain.php';
require_once 'mod/share.php'; require_once 'mod/share.php';

View file

@ -12,7 +12,6 @@ use League\HTMLToMarkdown\HtmlConverter;
require_once 'include/event.php'; require_once 'include/event.php';
require_once 'include/html2bbcode.php'; require_once 'include/html2bbcode.php';
require_once 'include/bbcode.php';
/** /**
* @brief Callback function to replace a Diaspora style mention in a mention for Friendica * @brief Callback function to replace a Diaspora style mention in a mention for Friendica

View file

@ -21,7 +21,6 @@ use Friendica\Util\DateTimeFormat;
use Friendica\Util\Temporal; use Friendica\Util\Temporal;
use Friendica\Util\XML; use Friendica\Util\XML;
require_once "include/bbcode.php";
require_once "include/acl_selectors.php"; require_once "include/acl_selectors.php";
function item_extract_images($body) { function item_extract_images($body) {
@ -499,7 +498,6 @@ function item_condition() {
* *
*/ */
function conversation(App $a, $items, $mode, $update, $preview = false) { function conversation(App $a, $items, $mode, $update, $preview = false) {
require_once 'include/bbcode.php';
require_once 'mod/proxy.php'; require_once 'mod/proxy.php';
$ssl_state = ((local_user()) ? true : false); $ssl_state = ((local_user()) ? true : false);

View file

@ -12,7 +12,6 @@ use Friendica\Database\DBM;
use Friendica\Util\DateTimeFormat; use Friendica\Util\DateTimeFormat;
use Friendica\Util\Emailer; use Friendica\Util\Emailer;
require_once 'include/bbcode.php';
require_once 'include/html2bbcode.php'; require_once 'include/html2bbcode.php';
/** /**

View file

@ -16,7 +16,6 @@ use Friendica\Model\Profile;
use Friendica\Util\DateTimeFormat; use Friendica\Util\DateTimeFormat;
use Friendica\Util\Map; use Friendica\Util\Map;
require_once 'include/bbcode.php';
require_once 'include/conversation.php'; require_once 'include/conversation.php';
function format_event_html($ev, $simple = false) { function format_event_html($ev, $simple = false) {
@ -239,7 +238,6 @@ function event_delete($event_id) {
function event_store($arr) { function event_store($arr) {
require_once 'include/items.php'; require_once 'include/items.php';
require_once 'include/bbcode.php';
$a = get_app(); $a = get_app();

View file

@ -19,7 +19,6 @@ use Friendica\Util\Network;
use Friendica\Util\ParseUrl; use Friendica\Util\ParseUrl;
use Friendica\Util\Temporal; use Friendica\Util\Temporal;
require_once 'include/bbcode.php';
require_once 'include/text.php'; require_once 'include/text.php';
require_once 'mod/share.php'; require_once 'mod/share.php';
require_once 'include/enotify.php'; require_once 'include/enotify.php';

View file

@ -1424,9 +1424,6 @@ function prepare_body(&$item, $attach = false, $preview = false) {
* @return string Formattet HTML. * @return string Formattet HTML.
*/ */
function prepare_text($text) { function prepare_text($text) {
require_once 'include/bbcode.php';
if (stristr($text, '[nosmile]')) { if (stristr($text, '[nosmile]')) {
$s = BBCode::convert($text); $s = BBCode::convert($text);
} else { } else {

View file

@ -7,7 +7,6 @@ use Friendica\Content\Text\BBCode;
use Friendica\Content\Text\Markdown; use Friendica\Content\Text\Markdown;
use Friendica\Core\L10n; use Friendica\Core\L10n;
require_once 'include/bbcode.php';
require_once 'include/bb2diaspora.php'; require_once 'include/bb2diaspora.php';
require_once 'include/html2bbcode.php'; require_once 'include/html2bbcode.php';
@ -43,7 +42,6 @@ function babel_content()
$o .= '<h2>' . L10n::t("bbcode \x28raw HTML\x28: ") . '</h2>' . EOL . EOL; $o .= '<h2>' . L10n::t("bbcode \x28raw HTML\x28: ") . '</h2>' . EOL . EOL;
$o .= htmlspecialchars($html) . EOL . EOL; $o .= htmlspecialchars($html) . EOL . EOL;
//$html = bbcode($text);
$o .= '<h2>' . L10n::t('bbcode: ') . '</h2>' . EOL . EOL; $o .= '<h2>' . L10n::t('bbcode: ') . '</h2>' . EOL . EOL;
$o .= $html . EOL . EOL; $o .= $html . EOL . EOL;

View file

@ -63,7 +63,6 @@ function community_content(App $a, $update = 0)
} }
} }
require_once 'include/bbcode.php';
require_once 'include/security.php'; require_once 'include/security.php';
require_once 'include/conversation.php'; require_once 'include/conversation.php';

View file

@ -367,8 +367,8 @@ function display_content(App $a, $update = false, $update_uid = 0) {
$o .= conversation($a, $items, 'display', $update_uid); $o .= conversation($a, $items, 'display', $update_uid);
// Preparing the meta header // Preparing the meta header
require_once 'include/bbcode.php';
require_once 'include/html2plain.php'; require_once 'include/html2plain.php';
$description = trim(html2plain(BBCode::convert($s[0]["body"], false), 0, true)); $description = trim(html2plain(BBCode::convert($s[0]["body"], false), 0, true));
$title = trim(html2plain(BBCode::convert($s[0]["title"], false), 0, true)); $title = trim(html2plain(BBCode::convert($s[0]["title"], false), 0, true));
$author_name = $s[0]["author-name"]; $author_name = $s[0]["author-name"];

View file

@ -15,7 +15,6 @@ use Friendica\Model\Profile;
use Friendica\Util\DateTimeFormat; use Friendica\Util\DateTimeFormat;
use Friendica\Util\Temporal; use Friendica\Util\Temporal;
require_once 'include/bbcode.php';
require_once 'include/event.php'; require_once 'include/event.php';
require_once 'include/items.php'; require_once 'include/items.php';

View file

@ -7,7 +7,6 @@ use Friendica\Core\L10n;
use Friendica\Core\PConfig; use Friendica\Core\PConfig;
require_once 'include/security.php'; require_once 'include/security.php';
require_once 'include/bbcode.php';
require_once 'include/items.php'; require_once 'include/items.php';
function filer_content(App $a) function filer_content(App $a)

View file

@ -5,7 +5,6 @@ use Friendica\Core\System;
use Friendica\Model\Item; use Friendica\Model\Item;
require_once 'include/security.php'; require_once 'include/security.php';
require_once 'include/bbcode.php';
require_once 'include/items.php'; require_once 'include/items.php';
function like_content(App $a) { function like_content(App $a) {

View file

@ -336,8 +336,6 @@ function message_content(App $a)
intval(local_user()) intval(local_user())
); );
require_once("include/bbcode.php");
$tpl = get_markup_template('msg-header.tpl'); $tpl = get_markup_template('msg-header.tpl');
$a->page['htmlhead'] .= replace_macros($tpl, [ $a->page['htmlhead'] .= replace_macros($tpl, [
'$baseurl' => System::baseUrl(true), '$baseurl' => System::baseUrl(true),

View file

@ -31,7 +31,6 @@ function notes_content(App $a, $update = false)
return; return;
} }
require_once 'include/bbcode.php';
require_once 'include/security.php'; require_once 'include/security.php';
require_once 'include/conversation.php'; require_once 'include/conversation.php';
require_once 'include/acl_selectors.php'; require_once 'include/acl_selectors.php';

View file

@ -62,7 +62,6 @@ function notify_content(App $a)
$notif_tpl = get_markup_template('notifications.tpl'); $notif_tpl = get_markup_template('notifications.tpl');
$not_tpl = get_markup_template('notify.tpl'); $not_tpl = get_markup_template('notify.tpl');
require_once('include/bbcode.php');
$r = $nm->getAll(['seen'=>0]); $r = $nm->getAll(['seen'=>0]);
if (DBM::is_result($r) > 0) { if (DBM::is_result($r) > 0) {

View file

@ -27,7 +27,6 @@ use Friendica\Util\Temporal;
require_once 'include/items.php'; require_once 'include/items.php';
require_once 'include/acl_selectors.php'; require_once 'include/acl_selectors.php';
require_once 'include/bbcode.php';
require_once 'include/security.php'; require_once 'include/security.php';
function photos_init(App $a) { function photos_init(App $a) {
@ -934,7 +933,6 @@ function photos_content(App $a)
return; return;
} }
require_once 'include/bbcode.php';
require_once 'include/security.php'; require_once 'include/security.php';
require_once 'include/conversation.php'; require_once 'include/conversation.php';

View file

@ -19,7 +19,6 @@ use Friendica\Util\DateTimeFormat;
use Friendica\Util\Temporal; use Friendica\Util\Temporal;
use Friendica\Util\XML; use Friendica\Util\XML;
require_once 'include/bbcode.php';
require_once 'mod/proxy.php'; require_once 'mod/proxy.php';
require_once 'include/enotify.php'; require_once 'include/enotify.php';

View file

@ -246,7 +246,6 @@ function poco_init(App $a) {
} }
$about = Cache::get("about:" . $contact['updated'] . ":" . $contact['nurl']); $about = Cache::get("about:" . $contact['updated'] . ":" . $contact['nurl']);
if (is_null($about)) { if (is_null($about)) {
require_once 'include/bbcode.php';
$about = BBCode::convert($contact['about'], false); $about = BBCode::convert($contact['about'], false);
Cache::set("about:" . $contact['updated'] . ":" . $contact['nurl'], $about); Cache::set("about:" . $contact['updated'] . ":" . $contact['nurl'], $about);
} }

View file

@ -22,7 +22,6 @@ use Friendica\Database\DBM;
use Friendica\Model\Item; use Friendica\Model\Item;
require_once 'include/security.php'; require_once 'include/security.php';
require_once 'include/bbcode.php';
require_once 'include/items.php'; require_once 'include/items.php';
function poke_init(App $a) { function poke_init(App $a) {

View file

@ -116,7 +116,6 @@ function profile_content(App $a, $update = 0)
return Login::form(); return Login::form();
} }
require_once 'include/bbcode.php';
require_once 'include/security.php'; require_once 'include/security.php';
require_once 'include/conversation.php'; require_once 'include/conversation.php';
require_once 'include/acl_selectors.php'; require_once 'include/acl_selectors.php';

View file

@ -15,7 +15,6 @@ use Friendica\Model\User;
use Friendica\Util\DateTimeFormat; use Friendica\Util\DateTimeFormat;
require_once 'include/enotify.php'; require_once 'include/enotify.php';
require_once 'include/bbcode.php';
function register_post(App $a) function register_post(App $a)
{ {

View file

@ -11,7 +11,6 @@ use Friendica\Core\L10n;
use Friendica\Core\System; use Friendica\Core\System;
use Friendica\Database\DBM; use Friendica\Database\DBM;
require_once "include/bbcode.php";
require_once 'include/security.php'; require_once 'include/security.php';
require_once 'include/conversation.php'; require_once 'include/conversation.php';
require_once 'mod/dirfind.php'; require_once 'mod/dirfind.php';

View file

@ -10,7 +10,6 @@ use Friendica\Database\DBM;
use Friendica\Model\Item; use Friendica\Model\Item;
require_once 'include/security.php'; require_once 'include/security.php';
require_once 'include/bbcode.php';
require_once 'include/items.php'; require_once 'include/items.php';
function subthread_content(App $a) { function subthread_content(App $a) {

View file

@ -11,7 +11,6 @@ use Friendica\Database\DBM;
use Friendica\Model\Item; use Friendica\Model\Item;
require_once 'include/security.php'; require_once 'include/security.php';
require_once 'include/bbcode.php';
require_once 'include/items.php'; require_once 'include/items.php';
function tagger_content(App $a) { function tagger_content(App $a) {

View file

@ -10,8 +10,6 @@ use Friendica\Core\System;
use Friendica\Database\DBM; use Friendica\Database\DBM;
use Friendica\Model\Item; use Friendica\Model\Item;
require_once 'include/bbcode.php';
function tagrm_post(App $a) { function tagrm_post(App $a) {
if (!local_user()) { if (!local_user()) {

View file

@ -20,7 +20,6 @@ use Friendica\Util\DateTimeFormat;
require_once 'include/items.php'; require_once 'include/items.php';
require_once 'include/acl_selectors.php'; require_once 'include/acl_selectors.php';
require_once 'include/bbcode.php';
require_once 'include/security.php'; require_once 'include/security.php';
function videos_init(App $a) { function videos_init(App $a) {
@ -202,8 +201,6 @@ function videos_content(App $a) {
return; return;
} }
require_once('include/bbcode.php');
require_once('include/security.php'); require_once('include/security.php');
require_once('include/conversation.php'); require_once('include/conversation.php');

View file

@ -23,7 +23,6 @@ use Friendica\Util\Map;
use Friendica\Util\Network; use Friendica\Util\Network;
use Friendica\Util\ParseUrl; use Friendica\Util\ParseUrl;
require_once "include/bbcode.php";
require_once "include/event.php"; require_once "include/event.php";
require_once "include/html2plain.php"; require_once "include/html2plain.php";
require_once "mod/proxy.php"; require_once "mod/proxy.php";

View file

@ -20,7 +20,6 @@ use Friendica\Util\XML;
require_once 'include/dba.php'; require_once 'include/dba.php';
require_once 'include/html2plain.php'; require_once 'include/html2plain.php';
require_once 'include/bbcode.php';
/** /**
* @brief Methods for read and write notifications from/to database * @brief Methods for read and write notifications from/to database

View file

@ -24,7 +24,6 @@ use Friendica\Util\Temporal;
use dba; use dba;
require_once 'include/dba.php'; require_once 'include/dba.php';
require_once 'include/bbcode.php';
require_once 'mod/proxy.php'; require_once 'mod/proxy.php';
class Profile class Profile
@ -625,8 +624,6 @@ class Profile
public static function getEvents() public static function getEvents()
{ {
require_once 'include/bbcode.php';
$a = get_app(); $a = get_app();
$o = ''; $o = '';

View file

@ -43,7 +43,6 @@ require_once "include/items.php";
require_once "include/event.php"; require_once "include/event.php";
require_once "include/text.php"; require_once "include/text.php";
require_once "include/html2bbcode.php"; require_once "include/html2bbcode.php";
require_once "include/bbcode.php";
/** /**
* @brief This class contain functions to create and send DFRN XML files * @brief This class contain functions to create and send DFRN XML files

View file

@ -26,7 +26,6 @@ use DOMXPath;
require_once 'include/dba.php'; require_once 'include/dba.php';
require_once 'include/html2bbcode.php'; require_once 'include/html2bbcode.php';
require_once 'include/bbcode.php';
require_once 'include/items.php'; require_once 'include/items.php';
require_once 'mod/share.php'; require_once 'mod/share.php';
require_once 'include/enotify.php'; require_once 'include/enotify.php';

View file

@ -19,7 +19,6 @@ use dba;
require_once 'include/html2plain.php'; require_once 'include/html2plain.php';
require_once 'include/items.php'; require_once 'include/items.php';
require_once 'include/bbcode.php';
/// @todo This is some ugly code that needs to be split into several methods /// @todo This is some ugly code that needs to be split into several methods

View file

@ -20,7 +20,6 @@ use dba;
require_once 'include/dba.php'; require_once 'include/dba.php';
require_once 'include/html2plain.php'; require_once 'include/html2plain.php';
require_once 'include/items.php'; require_once 'include/items.php';
require_once 'include/bbcode.php';
/* /*
* This file was at one time responsible for doing all deliveries, but this caused * This file was at one time responsible for doing all deliveries, but this caused

View file

@ -18,7 +18,6 @@ use dba;
require_once 'include/dba.php'; require_once 'include/dba.php';
require_once 'include/items.php'; require_once 'include/items.php';
require_once 'include/bbcode.php';
class Queue class Queue
{ {