Remove include/ requires that are now done directly from Composer
This commit is contained in:
parent
35a6e33e0d
commit
acaee626f5
122 changed files with 0 additions and 312 deletions
|
@ -50,7 +50,6 @@ $directory = realpath($directory . DIRECTORY_SEPARATOR . "..");
|
||||||
chdir($directory);
|
chdir($directory);
|
||||||
|
|
||||||
require_once "boot.php";
|
require_once "boot.php";
|
||||||
require_once "include/dba.php";
|
|
||||||
|
|
||||||
$a = new App(dirname(__DIR__));
|
$a = new App(dirname(__DIR__));
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,6 @@ if (!file_exists("boot.php") && (sizeof($_SERVER["argv"]) != 0)) {
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once "boot.php";
|
require_once "boot.php";
|
||||||
require_once "include/dba.php";
|
|
||||||
|
|
||||||
$a = new App(dirname(__DIR__));
|
$a = new App(dirname(__DIR__));
|
||||||
|
|
||||||
|
|
2
boot.php
2
boot.php
|
@ -35,8 +35,6 @@ use Friendica\Model\Contact;
|
||||||
use Friendica\Model\Conversation;
|
use Friendica\Model\Conversation;
|
||||||
use Friendica\Util\DateTimeFormat;
|
use Friendica\Util\DateTimeFormat;
|
||||||
|
|
||||||
require_once 'include/text.php';
|
|
||||||
|
|
||||||
define('FRIENDICA_PLATFORM', 'Friendica');
|
define('FRIENDICA_PLATFORM', 'Friendica');
|
||||||
define('FRIENDICA_CODENAME', 'The Tazmans Flax-lily');
|
define('FRIENDICA_CODENAME', 'The Tazmans Flax-lily');
|
||||||
define('FRIENDICA_VERSION', '2018.12-rc');
|
define('FRIENDICA_VERSION', '2018.12-rc');
|
||||||
|
|
|
@ -46,7 +46,6 @@ use Friendica\Util\Proxy as ProxyUtils;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
use Friendica\Util\XML;
|
use Friendica\Util\XML;
|
||||||
|
|
||||||
require_once 'include/conversation.php';
|
|
||||||
require_once 'mod/share.php';
|
require_once 'mod/share.php';
|
||||||
require_once 'mod/item.php';
|
require_once 'mod/item.php';
|
||||||
require_once 'mod/wall_upload.php';
|
require_once 'mod/wall_upload.php';
|
||||||
|
|
|
@ -24,10 +24,7 @@ use Friendica\Util\ParseUrl;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
use Friendica\Util\Temporal;
|
use Friendica\Util\Temporal;
|
||||||
|
|
||||||
require_once 'include/text.php';
|
|
||||||
require_once 'mod/share.php';
|
require_once 'mod/share.php';
|
||||||
require_once 'include/enotify.php';
|
|
||||||
|
|
||||||
function add_page_info_data(array $data, $no_photos = false)
|
function add_page_info_data(array $data, $no_photos = false)
|
||||||
{
|
{
|
||||||
Addon::callHooks('page_info_data', $data);
|
Addon::callHooks('page_info_data', $data);
|
||||||
|
|
|
@ -30,8 +30,6 @@ use Friendica\Util\Strings;
|
||||||
use Friendica\Util\XML;
|
use Friendica\Util\XML;
|
||||||
use Friendica\Content\Text\HTML;
|
use Friendica\Content\Text\HTML;
|
||||||
|
|
||||||
require_once "include/conversation.php";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Turn user/group ACLs stored as angle bracketed text into arrays
|
* Turn user/group ACLs stored as angle bracketed text into arrays
|
||||||
*
|
*
|
||||||
|
|
|
@ -14,8 +14,6 @@ use Friendica\Model\Item;
|
||||||
use Friendica\Util\Proxy as ProxyUtils;
|
use Friendica\Util\Proxy as ProxyUtils;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
|
|
||||||
function acl_content(App $a)
|
function acl_content(App $a)
|
||||||
{
|
{
|
||||||
if (!local_user()) {
|
if (!local_user()) {
|
||||||
|
|
|
@ -33,10 +33,6 @@ use Friendica\Util\Network;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
use Friendica\Util\Temporal;
|
use Friendica\Util\Temporal;
|
||||||
|
|
||||||
require_once 'include/enotify.php';
|
|
||||||
require_once 'include/text.php';
|
|
||||||
require_once 'include/items.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Process send data from the admin panels subpages
|
* @brief Process send data from the admin panels subpages
|
||||||
*
|
*
|
||||||
|
|
|
@ -15,8 +15,6 @@ use Friendica\Module;
|
||||||
use Friendica\Util\Proxy as ProxyUtils;
|
use Friendica\Util\Proxy as ProxyUtils;
|
||||||
|
|
||||||
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
|
|
||||||
function allfriends_content(App $a)
|
function allfriends_content(App $a)
|
||||||
{
|
{
|
||||||
$o = '';
|
$o = '';
|
||||||
|
|
|
@ -8,8 +8,6 @@ use Friendica\Core\L10n;
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
||||||
use Friendica\Util\Security;
|
use Friendica\Util\Security;
|
||||||
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
|
|
||||||
function attach_init(App $a)
|
function attach_init(App $a)
|
||||||
{
|
{
|
||||||
if ($a->argc != 2) {
|
if ($a->argc != 2) {
|
||||||
|
|
|
@ -11,9 +11,6 @@ use Friendica\Core\System;
|
||||||
use Friendica\Module\Login;
|
use Friendica\Module\Login;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
|
|
||||||
require_once 'include/conversation.php';
|
|
||||||
require_once 'include/items.php';
|
|
||||||
|
|
||||||
function bookmarklet_init()
|
function bookmarklet_init()
|
||||||
{
|
{
|
||||||
$_GET["mode"] = "minimal";
|
$_GET["mode"] = "minimal";
|
||||||
|
|
|
@ -14,8 +14,6 @@ use Friendica\Module;
|
||||||
use Friendica\Util\Proxy as ProxyUtils;
|
use Friendica\Util\Proxy as ProxyUtils;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
|
|
||||||
function common_content(App $a)
|
function common_content(App $a)
|
||||||
{
|
{
|
||||||
$o = '';
|
$o = '';
|
||||||
|
|
|
@ -93,8 +93,6 @@ function community_content(App $a, $update = 0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once 'include/conversation.php';
|
|
||||||
|
|
||||||
if (!$update) {
|
if (!$update) {
|
||||||
$tabs = [];
|
$tabs = [];
|
||||||
|
|
||||||
|
|
|
@ -36,9 +36,6 @@ use Friendica\Util\Network;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
use Friendica\Util\XML;
|
use Friendica\Util\XML;
|
||||||
|
|
||||||
require_once 'include/enotify.php';
|
|
||||||
require_once 'include/items.php';
|
|
||||||
|
|
||||||
function dfrn_confirm_post(App $a, $handsfree = null)
|
function dfrn_confirm_post(App $a, $handsfree = null)
|
||||||
{
|
{
|
||||||
$node = null;
|
$node = null;
|
||||||
|
|
|
@ -16,8 +16,6 @@ use Friendica\Protocol\DFRN;
|
||||||
use Friendica\Protocol\Diaspora;
|
use Friendica\Protocol\Diaspora;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
|
|
||||||
require_once 'include/items.php';
|
|
||||||
|
|
||||||
function dfrn_notify_post(App $a) {
|
function dfrn_notify_post(App $a) {
|
||||||
Logger::log(__function__, Logger::TRACE);
|
Logger::log(__function__, Logger::TRACE);
|
||||||
|
|
||||||
|
|
|
@ -17,8 +17,6 @@ use Friendica\Util\Network;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
use Friendica\Util\XML;
|
use Friendica\Util\XML;
|
||||||
|
|
||||||
require_once 'include/items.php';
|
|
||||||
|
|
||||||
function dfrn_poll_init(App $a)
|
function dfrn_poll_init(App $a)
|
||||||
{
|
{
|
||||||
Login::sessionAuth();
|
Login::sessionAuth();
|
||||||
|
|
|
@ -30,8 +30,6 @@ use Friendica\Util\DateTimeFormat;
|
||||||
use Friendica\Util\Network;
|
use Friendica\Util\Network;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
|
|
||||||
require_once 'include/enotify.php';
|
|
||||||
|
|
||||||
function dfrn_request_init(App $a)
|
function dfrn_request_init(App $a)
|
||||||
{
|
{
|
||||||
if ($a->argc > 1) {
|
if ($a->argc > 1) {
|
||||||
|
|
|
@ -214,8 +214,6 @@ function display_content(App $a, $update = false, $update_uid = 0)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once 'include/conversation.php';
|
|
||||||
|
|
||||||
$o = '';
|
$o = '';
|
||||||
|
|
||||||
if ($update) {
|
if ($update) {
|
||||||
|
|
|
@ -22,8 +22,6 @@ use Friendica\Util\DateTimeFormat;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
use Friendica\Util\Temporal;
|
use Friendica\Util\Temporal;
|
||||||
|
|
||||||
require_once 'include/items.php';
|
|
||||||
|
|
||||||
function events_init(App $a)
|
function events_init(App $a)
|
||||||
{
|
{
|
||||||
if (!local_user()) {
|
if (!local_user()) {
|
||||||
|
|
|
@ -12,10 +12,6 @@ use Friendica\Model\Contact;
|
||||||
use Friendica\Protocol\Feed;
|
use Friendica\Protocol\Feed;
|
||||||
use Friendica\Util\Network;
|
use Friendica\Util\Network;
|
||||||
|
|
||||||
require_once 'boot.php';
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
require_once 'include/text.php';
|
|
||||||
|
|
||||||
function feedtest_content(App $a)
|
function feedtest_content(App $a)
|
||||||
{
|
{
|
||||||
if (!local_user()) {
|
if (!local_user()) {
|
||||||
|
|
|
@ -10,8 +10,6 @@ use Friendica\Core\Renderer;
|
||||||
use Friendica\Model\FileTag;
|
use Friendica\Model\FileTag;
|
||||||
use Friendica\Util\XML;
|
use Friendica\Util\XML;
|
||||||
|
|
||||||
require_once 'include/items.php';
|
|
||||||
|
|
||||||
function filer_content(App $a)
|
function filer_content(App $a)
|
||||||
{
|
{
|
||||||
if (! local_user()) {
|
if (! local_user()) {
|
||||||
|
|
|
@ -38,10 +38,6 @@ use Friendica\Util\Emailer;
|
||||||
use Friendica\Util\Security;
|
use Friendica\Util\Security;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
|
|
||||||
require_once 'include/enotify.php';
|
|
||||||
require_once 'include/text.php';
|
|
||||||
require_once 'include/items.php';
|
|
||||||
|
|
||||||
function item_post(App $a) {
|
function item_post(App $a) {
|
||||||
if (!local_user() && !remote_user()) {
|
if (!local_user() && !remote_user()) {
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -668,7 +664,6 @@ function item_post(App $a) {
|
||||||
|
|
||||||
// preview mode - prepare the body for display and send it via json
|
// preview mode - prepare the body for display and send it via json
|
||||||
if ($preview) {
|
if ($preview) {
|
||||||
require_once 'include/conversation.php';
|
|
||||||
// We set the datarray ID to -1 because in preview mode the dataray
|
// We set the datarray ID to -1 because in preview mode the dataray
|
||||||
// doesn't have an ID.
|
// doesn't have an ID.
|
||||||
$datarray["id"] = -1;
|
$datarray["id"] = -1;
|
||||||
|
|
|
@ -5,8 +5,6 @@ use Friendica\Core\System;
|
||||||
use Friendica\Model\Item;
|
use Friendica\Model\Item;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
|
|
||||||
require_once 'include/items.php';
|
|
||||||
|
|
||||||
function like_content(App $a) {
|
function like_content(App $a) {
|
||||||
if (!local_user() && !remote_user()) {
|
if (!local_user() && !remote_user()) {
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -13,10 +13,6 @@ use Friendica\Model\User;
|
||||||
use Friendica\Util\DateTimeFormat;
|
use Friendica\Util\DateTimeFormat;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
|
|
||||||
require_once 'boot.php';
|
|
||||||
require_once 'include/enotify.php';
|
|
||||||
require_once 'include/text.php';
|
|
||||||
|
|
||||||
function lostpass_post(App $a)
|
function lostpass_post(App $a)
|
||||||
{
|
{
|
||||||
$loginame = Strings::escapeTags(trim($_POST['login-name']));
|
$loginame = Strings::escapeTags(trim($_POST['login-name']));
|
||||||
|
|
|
@ -10,8 +10,6 @@ use Friendica\Core\Renderer;
|
||||||
use Friendica\Core\System;
|
use Friendica\Core\System;
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
||||||
|
|
||||||
require_once "include/text.php";
|
|
||||||
|
|
||||||
function manage_post(App $a) {
|
function manage_post(App $a) {
|
||||||
|
|
||||||
if (! local_user()) {
|
if (! local_user()) {
|
||||||
|
|
|
@ -21,8 +21,6 @@ use Friendica\Util\Proxy as ProxyUtils;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
use Friendica\Util\Temporal;
|
use Friendica\Util\Temporal;
|
||||||
|
|
||||||
require_once 'include/conversation.php';
|
|
||||||
|
|
||||||
function message_init(App $a)
|
function message_init(App $a)
|
||||||
{
|
{
|
||||||
$tabs = '';
|
$tabs = '';
|
||||||
|
|
|
@ -30,9 +30,6 @@ use Friendica\Util\DateTimeFormat;
|
||||||
use Friendica\Util\Proxy as ProxyUtils;
|
use Friendica\Util\Proxy as ProxyUtils;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
|
|
||||||
require_once 'include/conversation.php';
|
|
||||||
require_once 'include/items.php';
|
|
||||||
|
|
||||||
function network_init(App $a)
|
function network_init(App $a)
|
||||||
{
|
{
|
||||||
if (!local_user()) {
|
if (!local_user()) {
|
||||||
|
|
|
@ -12,8 +12,6 @@ use Friendica\Core\Logger;
|
||||||
use Friendica\Core\System;
|
use Friendica\Core\System;
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
||||||
use Friendica\Util\Network;
|
use Friendica\Util\Network;
|
||||||
require_once 'include/dba.php';
|
|
||||||
|
|
||||||
function nodeinfo_wellknown(App $a) {
|
function nodeinfo_wellknown(App $a) {
|
||||||
$nodeinfo = ['links' => [['rel' => 'http://nodeinfo.diaspora.software/ns/schema/1.0',
|
$nodeinfo = ['links' => [['rel' => 'http://nodeinfo.diaspora.software/ns/schema/1.0',
|
||||||
'href' => System::baseUrl().'/nodeinfo/1.0']]];
|
'href' => System::baseUrl().'/nodeinfo/1.0']]];
|
||||||
|
|
|
@ -34,8 +34,6 @@ function notes_content(App $a, $update = false)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once 'include/conversation.php';
|
|
||||||
|
|
||||||
$o = Profile::getTabs($a, true);
|
$o = Profile::getTabs($a, true);
|
||||||
|
|
||||||
if (!$update) {
|
if (!$update) {
|
||||||
|
|
|
@ -15,8 +15,6 @@ use Friendica\Core\Logger;
|
||||||
use Friendica\Util\Network;
|
use Friendica\Util\Network;
|
||||||
use Friendica\Util\ParseUrl;
|
use Friendica\Util\ParseUrl;
|
||||||
|
|
||||||
require_once 'include/items.php';
|
|
||||||
|
|
||||||
function parse_url_content(App $a)
|
function parse_url_content(App $a)
|
||||||
{
|
{
|
||||||
$text = null;
|
$text = null;
|
||||||
|
|
|
@ -34,8 +34,6 @@ use Friendica\Util\Temporal;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
use Friendica\Util\XML;
|
use Friendica\Util\XML;
|
||||||
|
|
||||||
require_once 'include/items.php';
|
|
||||||
|
|
||||||
function photos_init(App $a) {
|
function photos_init(App $a) {
|
||||||
|
|
||||||
if ($a->argc > 1) {
|
if ($a->argc > 1) {
|
||||||
|
@ -946,8 +944,6 @@ function photos_content(App $a)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once 'include/conversation.php';
|
|
||||||
|
|
||||||
if (empty($a->data['user'])) {
|
if (empty($a->data['user'])) {
|
||||||
notice(L10n::t('No photos selected') . EOL);
|
notice(L10n::t('No photos selected') . EOL);
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -3,8 +3,6 @@
|
||||||
* @file mod/phpinfo.php
|
* @file mod/phpinfo.php
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once 'boot.php';
|
|
||||||
|
|
||||||
function phpinfo_content()
|
function phpinfo_content()
|
||||||
{
|
{
|
||||||
if (!is_site_admin()) {
|
if (!is_site_admin()) {
|
||||||
|
|
|
@ -22,8 +22,6 @@ use Friendica\Util\Temporal;
|
||||||
use Friendica\Util\Proxy as ProxyUtils;
|
use Friendica\Util\Proxy as ProxyUtils;
|
||||||
use Friendica\Util\XML;
|
use Friendica\Util\XML;
|
||||||
|
|
||||||
require_once 'include/enotify.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Outputs the counts and the lists of various notifications
|
* @brief Outputs the counts and the lists of various notifications
|
||||||
*
|
*
|
||||||
|
|
|
@ -25,8 +25,6 @@ use Friendica\Model\Item;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
use Friendica\Util\XML;
|
use Friendica\Util\XML;
|
||||||
|
|
||||||
require_once 'include/items.php';
|
|
||||||
|
|
||||||
function poke_init(App $a)
|
function poke_init(App $a)
|
||||||
{
|
{
|
||||||
if (!local_user()) {
|
if (!local_user()) {
|
||||||
|
|
|
@ -135,9 +135,6 @@ function profile_content(App $a, $update = 0)
|
||||||
return Login::form();
|
return Login::form();
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once 'include/conversation.php';
|
|
||||||
require_once 'include/items.php';
|
|
||||||
|
|
||||||
$groups = [];
|
$groups = [];
|
||||||
$remote_cid = null;
|
$remote_cid = null;
|
||||||
|
|
||||||
|
|
|
@ -9,8 +9,6 @@ use Friendica\Protocol\OStatus;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
use Friendica\Core\System;
|
use Friendica\Core\System;
|
||||||
|
|
||||||
require_once 'include/items.php';
|
|
||||||
|
|
||||||
function hub_return($valid, $body)
|
function hub_return($valid, $body)
|
||||||
{
|
{
|
||||||
if ($valid) {
|
if ($valid) {
|
||||||
|
|
|
@ -18,8 +18,6 @@ use Friendica\Model;
|
||||||
use Friendica\Module\Tos;
|
use Friendica\Module\Tos;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
|
|
||||||
require_once 'include/enotify.php';
|
|
||||||
|
|
||||||
function register_post(App $a)
|
function register_post(App $a)
|
||||||
{
|
{
|
||||||
BaseModule::checkFormSecurityTokenRedirectOnError('/register', 'register');
|
BaseModule::checkFormSecurityTokenRedirectOnError('/register', 'register');
|
||||||
|
|
|
@ -13,8 +13,6 @@ use Friendica\Model\Register;
|
||||||
use Friendica\Model\User;
|
use Friendica\Model\User;
|
||||||
use Friendica\Module\Login;
|
use Friendica\Module\Login;
|
||||||
|
|
||||||
require_once 'include/enotify.php';
|
|
||||||
|
|
||||||
function user_allow($hash)
|
function user_allow($hash)
|
||||||
{
|
{
|
||||||
$a = get_app();
|
$a = get_app();
|
||||||
|
|
|
@ -12,8 +12,6 @@ use Friendica\Database\DBA;
|
||||||
use Friendica\Model\User;
|
use Friendica\Model\User;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
|
|
||||||
require_once 'include/enotify.php';
|
|
||||||
|
|
||||||
function removeme_post(App $a)
|
function removeme_post(App $a)
|
||||||
{
|
{
|
||||||
if (!local_user()) {
|
if (!local_user()) {
|
||||||
|
|
|
@ -14,8 +14,6 @@ use Friendica\Protocol\Salmon;
|
||||||
use Friendica\Util\Crypto;
|
use Friendica\Util\Crypto;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
|
|
||||||
require_once 'include/items.php';
|
|
||||||
|
|
||||||
function salmon_post(App $a, $xml = '') {
|
function salmon_post(App $a, $xml = '') {
|
||||||
|
|
||||||
if (empty($xml)) {
|
if (empty($xml)) {
|
||||||
|
|
|
@ -18,7 +18,6 @@ use Friendica\Database\DBA;
|
||||||
use Friendica\Model\Item;
|
use Friendica\Model\Item;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
|
|
||||||
require_once 'include/conversation.php';
|
|
||||||
require_once 'mod/dirfind.php';
|
require_once 'mod/dirfind.php';
|
||||||
|
|
||||||
function search_saved_searches() {
|
function search_saved_searches() {
|
||||||
|
|
|
@ -13,8 +13,6 @@ use Friendica\Util\Security;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
use Friendica\Util\XML;
|
use Friendica\Util\XML;
|
||||||
|
|
||||||
require_once 'include/items.php';
|
|
||||||
|
|
||||||
function subthread_content(App $a) {
|
function subthread_content(App $a) {
|
||||||
|
|
||||||
if (!local_user() && !remote_user()) {
|
if (!local_user() && !remote_user()) {
|
||||||
|
|
|
@ -13,8 +13,6 @@ use Friendica\Model\Item;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
use Friendica\Util\XML;
|
use Friendica\Util\XML;
|
||||||
|
|
||||||
require_once 'include/items.php';
|
|
||||||
|
|
||||||
function tagger_content(App $a) {
|
function tagger_content(App $a) {
|
||||||
|
|
||||||
if (!local_user() && !remote_user()) {
|
if (!local_user() && !remote_user()) {
|
||||||
|
|
|
@ -18,8 +18,6 @@ use Friendica\Model\Profile;
|
||||||
use Friendica\Protocol\DFRN;
|
use Friendica\Protocol\DFRN;
|
||||||
use Friendica\Util\Security;
|
use Friendica\Util\Security;
|
||||||
|
|
||||||
require_once 'include/items.php';
|
|
||||||
|
|
||||||
function videos_init(App $a)
|
function videos_init(App $a)
|
||||||
{
|
{
|
||||||
if ($a->argc > 1) {
|
if ($a->argc > 1) {
|
||||||
|
@ -195,8 +193,6 @@ function videos_content(App $a)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once 'include/conversation.php';
|
|
||||||
|
|
||||||
if (empty($a->data['user'])) {
|
if (empty($a->data['user'])) {
|
||||||
notice(L10n::t('No videos selected') . EOL );
|
notice(L10n::t('No videos selected') . EOL );
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -11,9 +11,6 @@ use Exception;
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
||||||
use Friendica\Network\HTTPException\InternalServerErrorException;
|
use Friendica\Network\HTTPException\InternalServerErrorException;
|
||||||
|
|
||||||
require_once 'boot.php';
|
|
||||||
require_once 'include/text.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* class: App
|
* class: App
|
||||||
|
|
|
@ -4,8 +4,6 @@
|
||||||
*/
|
*/
|
||||||
namespace Friendica;
|
namespace Friendica;
|
||||||
|
|
||||||
require_once 'boot.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Basic object
|
* Basic object
|
||||||
*
|
*
|
||||||
|
|
|
@ -15,8 +15,6 @@ use Friendica\Database\DBA;
|
||||||
use Friendica\Model\Contact;
|
use Friendica\Model\Contact;
|
||||||
use Friendica\Util\Proxy as ProxyUtils;
|
use Friendica\Util\Proxy as ProxyUtils;
|
||||||
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief This class handles methods related to the forum functionality
|
* @brief This class handles methods related to the forum functionality
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -15,9 +15,6 @@ use Friendica\Database\DBA;
|
||||||
use Friendica\Model\Contact;
|
use Friendica\Model\Contact;
|
||||||
use Friendica\Model\Profile;
|
use Friendica\Model\Profile;
|
||||||
|
|
||||||
require_once 'boot.php';
|
|
||||||
require_once 'include/text.php';
|
|
||||||
|
|
||||||
class Nav
|
class Nav
|
||||||
{
|
{
|
||||||
private static $selected = [
|
private static $selected = [
|
||||||
|
|
|
@ -23,8 +23,6 @@ use Friendica\Util\ParseUrl;
|
||||||
use Friendica\Util\Proxy as ProxyUtils;
|
use Friendica\Util\Proxy as ProxyUtils;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handles all OEmbed content fetching and replacement
|
* Handles all OEmbed content fetching and replacement
|
||||||
*
|
*
|
||||||
|
|
|
@ -21,9 +21,6 @@ use Friendica\Model\Profile;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
use Friendica\Util\XML;
|
use Friendica\Util\XML;
|
||||||
|
|
||||||
require_once 'boot.php';
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
|
|
||||||
class Widget
|
class Widget
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -10,9 +10,6 @@ use Friendica\Content\Feature;
|
||||||
use Friendica\Core\L10n;
|
use Friendica\Core\L10n;
|
||||||
use Friendica\Core\Renderer;
|
use Friendica\Core\Renderer;
|
||||||
|
|
||||||
require_once 'boot.php';
|
|
||||||
require_once 'include/text.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TagCloud widget
|
* TagCloud widget
|
||||||
*
|
*
|
||||||
|
|
|
@ -13,8 +13,6 @@ use Friendica\Database\DBA;
|
||||||
use Friendica\Model\Item;
|
use Friendica\Model\Item;
|
||||||
use Friendica\Util\Security;
|
use Friendica\Util\Security;
|
||||||
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TagCloud widget
|
* TagCloud widget
|
||||||
*
|
*
|
||||||
|
|
|
@ -12,8 +12,6 @@ use Friendica\App;
|
||||||
use Friendica\BaseObject;
|
use Friendica\BaseObject;
|
||||||
use Friendica\Core\Config;
|
use Friendica\Core\Config;
|
||||||
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Arbitrary system configuration storage
|
* @brief Arbitrary system configuration storage
|
||||||
*
|
*
|
||||||
|
|
|
@ -4,8 +4,6 @@ namespace Friendica\Core\Config;
|
||||||
use Friendica\BaseObject;
|
use Friendica\BaseObject;
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
||||||
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* JustInTime Configuration Adapter
|
* JustInTime Configuration Adapter
|
||||||
*
|
*
|
||||||
|
|
|
@ -4,8 +4,6 @@ namespace Friendica\Core\Config;
|
||||||
use Friendica\BaseObject;
|
use Friendica\BaseObject;
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
||||||
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* JustInTime User Configuration Adapter
|
* JustInTime User Configuration Adapter
|
||||||
*
|
*
|
||||||
|
|
|
@ -6,8 +6,6 @@ use Exception;
|
||||||
use Friendica\BaseObject;
|
use Friendica\BaseObject;
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
||||||
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Preload Configuration Adapter
|
* Preload Configuration Adapter
|
||||||
*
|
*
|
||||||
|
|
|
@ -6,8 +6,6 @@ use Exception;
|
||||||
use Friendica\BaseObject;
|
use Friendica\BaseObject;
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
||||||
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Preload User Configuration Adapter
|
* Preload User Configuration Adapter
|
||||||
*
|
*
|
||||||
|
|
|
@ -11,8 +11,6 @@ use Friendica\Database\DBA;
|
||||||
use Friendica\Database\DBStructure;
|
use Friendica\Database\DBStructure;
|
||||||
use RuntimeException;
|
use RuntimeException;
|
||||||
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
|
|
||||||
class AutomaticInstallation extends Console
|
class AutomaticInstallation extends Console
|
||||||
{
|
{
|
||||||
protected function getHelp()
|
protected function getHelp()
|
||||||
|
|
|
@ -8,9 +8,6 @@ use Friendica\Database\DBA;
|
||||||
use Friendica\Database\DBStructure;
|
use Friendica\Database\DBStructure;
|
||||||
use RuntimeException;
|
use RuntimeException;
|
||||||
|
|
||||||
require_once 'boot.php';
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Performs database updates from the command line
|
* @brief Performs database updates from the command line
|
||||||
*
|
*
|
||||||
|
|
|
@ -8,8 +8,6 @@ use Friendica\Network\Probe;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
use RuntimeException;
|
use RuntimeException;
|
||||||
|
|
||||||
require_once 'include/text.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief tool to silence accounts on the global community page
|
* @brief tool to silence accounts on the global community page
|
||||||
*
|
*
|
||||||
|
|
|
@ -4,9 +4,6 @@ namespace Friendica\Core\Console;
|
||||||
|
|
||||||
use Friendica\Core;
|
use Friendica\Core;
|
||||||
|
|
||||||
require_once 'boot.php';
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Sets maintenance mode for this node
|
* @brief Sets maintenance mode for this node
|
||||||
*
|
*
|
||||||
|
|
|
@ -578,7 +578,6 @@ class Installer
|
||||||
*/
|
*/
|
||||||
public function checkDB($dbhost, $dbuser, $dbpass, $dbdata)
|
public function checkDB($dbhost, $dbuser, $dbpass, $dbdata)
|
||||||
{
|
{
|
||||||
require_once 'include/dba.php';
|
|
||||||
if (!DBA::connect($dbhost, $dbuser, $dbpass, $dbdata)) {
|
if (!DBA::connect($dbhost, $dbuser, $dbpass, $dbdata)) {
|
||||||
$this->addCheck(L10n::t('Could not connect to database.'), false, true, '');
|
$this->addCheck(L10n::t('Could not connect to database.'), false, true, '');
|
||||||
|
|
||||||
|
|
|
@ -10,9 +10,6 @@ use Friendica\Core\Addon;
|
||||||
use Friendica\Core\Logger;
|
use Friendica\Core\Logger;
|
||||||
use Friendica\Core\System;
|
use Friendica\Core\System;
|
||||||
|
|
||||||
require_once 'boot.php';
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provide Language, Translation, and Localization functions to the application
|
* Provide Language, Translation, and Localization functions to the application
|
||||||
* Localization can be referred to by the numeronym L10N (as in: "L", followed by ten more letters, and then "N").
|
* Localization can be referred to by the numeronym L10N (as in: "L", followed by ten more letters, and then "N").
|
||||||
|
|
|
@ -19,8 +19,6 @@ use Friendica\Util\Proxy as ProxyUtils;
|
||||||
use Friendica\Util\Temporal;
|
use Friendica\Util\Temporal;
|
||||||
use Friendica\Util\XML;
|
use Friendica\Util\XML;
|
||||||
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Methods for read and write notifications from/to database
|
* @brief Methods for read and write notifications from/to database
|
||||||
* or for formatting notifications
|
* or for formatting notifications
|
||||||
|
|
|
@ -11,8 +11,6 @@ namespace Friendica\Core;
|
||||||
use Friendica\App;
|
use Friendica\App;
|
||||||
use Friendica\BaseObject;
|
use Friendica\BaseObject;
|
||||||
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Management of user configuration storage
|
* @brief Management of user configuration storage
|
||||||
* Note:
|
* Note:
|
||||||
|
|
|
@ -8,9 +8,6 @@ use Friendica\Core\Logger;
|
||||||
use Friendica\Core\Session;
|
use Friendica\Core\Session;
|
||||||
use SessionHandlerInterface;
|
use SessionHandlerInterface;
|
||||||
|
|
||||||
require_once 'boot.php';
|
|
||||||
require_once 'include/text.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SessionHandler using Friendica Cache
|
* SessionHandler using Friendica Cache
|
||||||
*
|
*
|
||||||
|
|
|
@ -8,10 +8,6 @@ use Friendica\Core\Session;
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
||||||
use SessionHandlerInterface;
|
use SessionHandlerInterface;
|
||||||
|
|
||||||
require_once 'boot.php';
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
require_once 'include/text.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SessionHandler using database
|
* SessionHandler using database
|
||||||
*
|
*
|
||||||
|
|
|
@ -9,8 +9,6 @@ namespace Friendica\Core;
|
||||||
use Friendica\Core\Logger;
|
use Friendica\Core\Logger;
|
||||||
use Friendica\Core\System;
|
use Friendica\Core\System;
|
||||||
|
|
||||||
require_once 'boot.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Some functions to handle themes
|
* Some functions to handle themes
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -13,8 +13,6 @@ use Friendica\Model\Photo;
|
||||||
use Friendica\Object\Image;
|
use Friendica\Object\Image;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
|
|
||||||
require_once "include/dba.php";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief UserImport class
|
* @brief UserImport class
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -11,8 +11,6 @@ use Friendica\Model\Process;
|
||||||
use Friendica\Util\DateTimeFormat;
|
use Friendica\Util\DateTimeFormat;
|
||||||
use Friendica\Util\Network;
|
use Friendica\Util\Network;
|
||||||
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file src/Core/Worker.php
|
* @file src/Core/Worker.php
|
||||||
*
|
*
|
||||||
|
|
|
@ -16,8 +16,6 @@ use PDO;
|
||||||
use PDOException;
|
use PDOException;
|
||||||
use PDOStatement;
|
use PDOStatement;
|
||||||
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @class MySQL database class
|
* @class MySQL database class
|
||||||
*
|
*
|
||||||
|
|
|
@ -12,11 +12,6 @@ use Friendica\Core\L10n;
|
||||||
use Friendica\Core\Logger;
|
use Friendica\Core\Logger;
|
||||||
use Friendica\Util\DateTimeFormat;
|
use Friendica\Util\DateTimeFormat;
|
||||||
|
|
||||||
require_once 'boot.php';
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
require_once 'include/enotify.php';
|
|
||||||
require_once 'include/text.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief This class contain functions for the database management
|
* @brief This class contain functions for the database management
|
||||||
*
|
*
|
||||||
|
|
|
@ -13,8 +13,6 @@ use Friendica\Model\ItemURI;
|
||||||
use Friendica\Model\PermissionSet;
|
use Friendica\Model\PermissionSet;
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
||||||
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Post update functions
|
* Post update functions
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -16,8 +16,6 @@ use Friendica\Util\JsonLD;
|
||||||
use Friendica\Util\DateTimeFormat;
|
use Friendica\Util\DateTimeFormat;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
|
|
||||||
require_once 'boot.php';
|
|
||||||
|
|
||||||
class APContact extends BaseObject
|
class APContact extends BaseObject
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -27,10 +27,6 @@ use Friendica\Util\DateTimeFormat;
|
||||||
use Friendica\Util\Network;
|
use Friendica\Util\Network;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
|
|
||||||
require_once 'boot.php';
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
require_once 'include/text.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief functions for interacting with a contact
|
* @brief functions for interacting with a contact
|
||||||
*/
|
*/
|
||||||
|
@ -1376,8 +1372,6 @@ class Contact extends BaseObject
|
||||||
{
|
{
|
||||||
$a = self::getApp();
|
$a = self::getApp();
|
||||||
|
|
||||||
require_once 'include/conversation.php';
|
|
||||||
|
|
||||||
$cid = Self::getIdForURL($contact_url);
|
$cid = Self::getIdForURL($contact_url);
|
||||||
|
|
||||||
$contact = DBA::selectFirst('contact', ['contact-type', 'network'], ['id' => $cid]);
|
$contact = DBA::selectFirst('contact', ['contact-type', 'network'], ['id' => $cid]);
|
||||||
|
|
|
@ -10,8 +10,6 @@ use Friendica\Core\Protocol;
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
||||||
use Friendica\Util\DateTimeFormat;
|
use Friendica\Util\DateTimeFormat;
|
||||||
|
|
||||||
require_once "include/dba.php";
|
|
||||||
|
|
||||||
class Conversation
|
class Conversation
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -19,10 +19,6 @@ use Friendica\Util\DateTimeFormat;
|
||||||
use Friendica\Util\Map;
|
use Friendica\Util\Map;
|
||||||
use Friendica\Util\XML;
|
use Friendica\Util\XML;
|
||||||
|
|
||||||
require_once 'boot.php';
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
require_once 'include/items.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief functions for interacting with the event database table
|
* @brief functions for interacting with the event database table
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -19,8 +19,6 @@ use Friendica\Util\DateTimeFormat;
|
||||||
use Friendica\Util\Network;
|
use Friendica\Util\Network;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief This class handles GlobalContact related functions
|
* @brief This class handles GlobalContact related functions
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -12,10 +12,6 @@ use Friendica\Core\Renderer;
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
||||||
use Friendica\Util\Security;
|
use Friendica\Util\Security;
|
||||||
|
|
||||||
require_once 'boot.php';
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
require_once 'include/text.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief functions for interacting with the group database table
|
* @brief functions for interacting with the group database table
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -36,10 +36,6 @@ use Friendica\Util\Security;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
use Text_LanguageDetect;
|
use Text_LanguageDetect;
|
||||||
|
|
||||||
require_once 'boot.php';
|
|
||||||
require_once 'include/items.php';
|
|
||||||
require_once 'include/text.php';
|
|
||||||
|
|
||||||
class Item extends BaseObject
|
class Item extends BaseObject
|
||||||
{
|
{
|
||||||
// Posting types, inspired by https://www.w3.org/TR/activitystreams-vocabulary/#object-types
|
// Posting types, inspired by https://www.w3.org/TR/activitystreams-vocabulary/#object-types
|
||||||
|
|
|
@ -11,10 +11,6 @@ use Friendica\Content\Text;
|
||||||
use Friendica\Core\PConfig;
|
use Friendica\Core\PConfig;
|
||||||
use Friendica\Core\Protocol;
|
use Friendica\Core\Protocol;
|
||||||
|
|
||||||
require_once 'boot.php';
|
|
||||||
require_once 'include/items.php';
|
|
||||||
require_once 'include/text.php';
|
|
||||||
|
|
||||||
class ItemContent extends BaseObject
|
class ItemContent extends BaseObject
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -9,8 +9,6 @@ namespace Friendica\Model;
|
||||||
use Friendica\BaseObject;
|
use Friendica\BaseObject;
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
||||||
|
|
||||||
require_once 'boot.php';
|
|
||||||
|
|
||||||
class ItemURI extends BaseObject
|
class ItemURI extends BaseObject
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -13,8 +13,6 @@ use Friendica\Database\DBA;
|
||||||
use Friendica\Network\Probe;
|
use Friendica\Network\Probe;
|
||||||
use Friendica\Util\DateTimeFormat;
|
use Friendica\Util\DateTimeFormat;
|
||||||
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class to handle private messages
|
* Class to handle private messages
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -7,8 +7,6 @@ namespace Friendica\Model;
|
||||||
use Friendica\BaseObject;
|
use Friendica\BaseObject;
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
||||||
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief functions for interacting with the permission set of an object (item, photo, event, ...)
|
* @brief functions for interacting with the permission set of an object (item, photo, event, ...)
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -16,8 +16,6 @@ use Friendica\Util\DateTimeFormat;
|
||||||
use Friendica\Util\Network;
|
use Friendica\Util\Network;
|
||||||
use Friendica\Util\Security;
|
use Friendica\Util\Security;
|
||||||
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class to handle photo dabatase table
|
* Class to handle photo dabatase table
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -8,8 +8,6 @@ use Friendica\BaseObject;
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
||||||
use Friendica\Util\DateTimeFormat;
|
use Friendica\Util\DateTimeFormat;
|
||||||
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief functions for interacting with a process
|
* @brief functions for interacting with a process
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -28,8 +28,6 @@ use Friendica\Util\Proxy as ProxyUtils;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
use Friendica\Util\Temporal;
|
use Friendica\Util\Temporal;
|
||||||
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
|
|
||||||
class Profile
|
class Profile
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -9,8 +9,6 @@ use Friendica\Core\Worker;
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
||||||
use Friendica\Util\DateTimeFormat;
|
use Friendica\Util\DateTimeFormat;
|
||||||
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
|
|
||||||
class PushSubscriber
|
class PushSubscriber
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -9,8 +9,6 @@ use Friendica\Core\Logger;
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
||||||
use Friendica\Util\DateTimeFormat;
|
use Friendica\Util\DateTimeFormat;
|
||||||
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
|
|
||||||
class Queue
|
class Queue
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -7,10 +7,6 @@ namespace Friendica\Model;
|
||||||
use Friendica\Core\System;
|
use Friendica\Core\System;
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
||||||
|
|
||||||
require_once 'boot.php';
|
|
||||||
require_once 'include/conversation.php';
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
|
|
||||||
class Term
|
class Term
|
||||||
{
|
{
|
||||||
public static function tagTextFromItemId($itemid)
|
public static function tagTextFromItemId($itemid)
|
||||||
|
|
|
@ -24,10 +24,6 @@ use Friendica\Util\Network;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
use LightOpenID;
|
use LightOpenID;
|
||||||
|
|
||||||
require_once 'boot.php';
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
require_once 'include/enotify.php';
|
|
||||||
require_once 'include/text.php';
|
|
||||||
/**
|
/**
|
||||||
* @brief This class handles User related functions
|
* @brief This class handles User related functions
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -9,9 +9,6 @@ use Friendica\Core\System;
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
require_once 'include/text.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Hashtag module.
|
* Hashtag module.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -20,9 +20,6 @@ use Friendica\Util\Network;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
use LightOpenID;
|
use LightOpenID;
|
||||||
|
|
||||||
require_once 'boot.php';
|
|
||||||
require_once 'include/text.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Login module
|
* Login module
|
||||||
*
|
*
|
||||||
|
|
|
@ -10,8 +10,6 @@ use Friendica\Core\Authentication;
|
||||||
use Friendica\Core\L10n;
|
use Friendica\Core\L10n;
|
||||||
use Friendica\Core\System;
|
use Friendica\Core\System;
|
||||||
|
|
||||||
require_once 'boot.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Logout module
|
* Logout module
|
||||||
*
|
*
|
||||||
|
|
|
@ -19,8 +19,6 @@ use OAuthToken;
|
||||||
define('REQUEST_TOKEN_DURATION', 300);
|
define('REQUEST_TOKEN_DURATION', 300);
|
||||||
define('ACCESS_TOKEN_DURATION', 31536000);
|
define('ACCESS_TOKEN_DURATION', 31536000);
|
||||||
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief OAuthDataStore class
|
* @brief OAuthDataStore class
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -28,8 +28,6 @@ use Friendica\Util\Strings;
|
||||||
use Friendica\Util\XML;
|
use Friendica\Util\XML;
|
||||||
use DomXPath;
|
use DomXPath;
|
||||||
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief This class contain functions for probing URL
|
* @brief This class contain functions for probing URL
|
||||||
*
|
*
|
||||||
|
|
|
@ -24,11 +24,6 @@ use Friendica\Util\Proxy as ProxyUtils;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
use Friendica\Util\Temporal;
|
use Friendica\Util\Temporal;
|
||||||
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
require_once 'include/text.php';
|
|
||||||
require_once 'boot.php';
|
|
||||||
require_once 'include/conversation.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An item
|
* An item
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -10,9 +10,6 @@ use Friendica\Core\Protocol;
|
||||||
use Friendica\Object\Post;
|
use Friendica\Object\Post;
|
||||||
use Friendica\Util\Security;
|
use Friendica\Util\Security;
|
||||||
|
|
||||||
require_once 'boot.php';
|
|
||||||
require_once 'include/text.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A list of threads
|
* A list of threads
|
||||||
*
|
*
|
||||||
|
|
|
@ -37,12 +37,6 @@ use Friendica\Util\XML;
|
||||||
use HTMLPurifier;
|
use HTMLPurifier;
|
||||||
use HTMLPurifier_Config;
|
use HTMLPurifier_Config;
|
||||||
|
|
||||||
require_once 'boot.php';
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
require_once "include/enotify.php";
|
|
||||||
require_once "include/items.php";
|
|
||||||
require_once "include/text.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
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -38,9 +38,6 @@ use Friendica\Util\Strings;
|
||||||
use Friendica\Util\XML;
|
use Friendica\Util\XML;
|
||||||
use SimpleXMLElement;
|
use SimpleXMLElement;
|
||||||
|
|
||||||
require_once 'include/dba.php';
|
|
||||||
require_once 'include/items.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief This class contain functions to create and send Diaspora XML files
|
* @brief This class contain functions to create and send Diaspora XML files
|
||||||
*
|
*
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue