Bläddra i källkod

Remove include/ requires that are now done directly from Composer

tags/2019.01
Hypolite Petovan 1 år sedan
förälder
incheckning
acaee626f5
100 ändrade filer med 0 tillägg och 253 borttagningar
  1. +0
    -1
      bin/auth_ejabberd.php
  2. +0
    -1
      bin/daemon.php
  3. +0
    -2
      boot.php
  4. +0
    -1
      include/api.php
  5. +0
    -3
      include/items.php
  6. +0
    -2
      include/text.php
  7. +0
    -2
      mod/acl.php
  8. +0
    -4
      mod/admin.php
  9. +0
    -2
      mod/allfriends.php
  10. +0
    -2
      mod/attach.php
  11. +0
    -3
      mod/bookmarklet.php
  12. +0
    -2
      mod/common.php
  13. +0
    -2
      mod/community.php
  14. +0
    -3
      mod/dfrn_confirm.php
  15. +0
    -2
      mod/dfrn_notify.php
  16. +0
    -2
      mod/dfrn_poll.php
  17. +0
    -2
      mod/dfrn_request.php
  18. +0
    -2
      mod/display.php
  19. +0
    -2
      mod/events.php
  20. +0
    -4
      mod/feedtest.php
  21. +0
    -2
      mod/filer.php
  22. +0
    -5
      mod/item.php
  23. +0
    -2
      mod/like.php
  24. +0
    -4
      mod/lostpass.php
  25. +0
    -2
      mod/manage.php
  26. +0
    -2
      mod/message.php
  27. +0
    -3
      mod/network.php
  28. +0
    -2
      mod/nodeinfo.php
  29. +0
    -2
      mod/notes.php
  30. +0
    -2
      mod/parse_url.php
  31. +0
    -4
      mod/photos.php
  32. +0
    -2
      mod/phpinfo.php
  33. +0
    -2
      mod/ping.php
  34. +0
    -2
      mod/poke.php
  35. +0
    -3
      mod/profile.php
  36. +0
    -2
      mod/pubsub.php
  37. +0
    -2
      mod/register.php
  38. +0
    -2
      mod/regmod.php
  39. +0
    -2
      mod/removeme.php
  40. +0
    -2
      mod/salmon.php
  41. +0
    -1
      mod/search.php
  42. +0
    -2
      mod/subthread.php
  43. +0
    -2
      mod/tagger.php
  44. +0
    -4
      mod/videos.php
  45. +0
    -3
      src/App.php
  46. +0
    -2
      src/BaseObject.php
  47. +0
    -2
      src/Content/ForumManager.php
  48. +0
    -3
      src/Content/Nav.php
  49. +0
    -2
      src/Content/OEmbed.php
  50. +0
    -3
      src/Content/Widget.php
  51. +0
    -3
      src/Content/Widget/CalendarExport.php
  52. +0
    -2
      src/Content/Widget/TagCloud.php
  53. +0
    -2
      src/Core/Config.php
  54. +0
    -2
      src/Core/Config/JITConfigAdapter.php
  55. +0
    -2
      src/Core/Config/JITPConfigAdapter.php
  56. +0
    -2
      src/Core/Config/PreloadConfigAdapter.php
  57. +0
    -2
      src/Core/Config/PreloadPConfigAdapter.php
  58. +0
    -2
      src/Core/Console/AutomaticInstallation.php
  59. +0
    -3
      src/Core/Console/DatabaseStructure.php
  60. +0
    -2
      src/Core/Console/GlobalCommunitySilence.php
  61. +0
    -3
      src/Core/Console/Maintenance.php
  62. +0
    -1
      src/Core/Installer.php
  63. +0
    -3
      src/Core/L10n.php
  64. +0
    -2
      src/Core/NotificationsManager.php
  65. +0
    -2
      src/Core/PConfig.php
  66. +0
    -3
      src/Core/Session/CacheSessionHandler.php
  67. +0
    -4
      src/Core/Session/DatabaseSessionHandler.php
  68. +0
    -2
      src/Core/Theme.php
  69. +0
    -2
      src/Core/UserImport.php
  70. +0
    -2
      src/Core/Worker.php
  71. +0
    -2
      src/Database/DBA.php
  72. +0
    -5
      src/Database/DBStructure.php
  73. +0
    -2
      src/Database/PostUpdate.php
  74. +0
    -2
      src/Model/APContact.php
  75. +0
    -6
      src/Model/Contact.php
  76. +0
    -2
      src/Model/Conversation.php
  77. +0
    -4
      src/Model/Event.php
  78. +0
    -2
      src/Model/GContact.php
  79. +0
    -4
      src/Model/Group.php
  80. +0
    -4
      src/Model/Item.php
  81. +0
    -4
      src/Model/ItemContent.php
  82. +0
    -2
      src/Model/ItemURI.php
  83. +0
    -2
      src/Model/Mail.php
  84. +0
    -2
      src/Model/PermissionSet.php
  85. +0
    -2
      src/Model/Photo.php
  86. +0
    -2
      src/Model/Process.php
  87. +0
    -2
      src/Model/Profile.php
  88. +0
    -2
      src/Model/PushSubscriber.php
  89. +0
    -2
      src/Model/Queue.php
  90. +0
    -4
      src/Model/Term.php
  91. +0
    -4
      src/Model/User.php
  92. +0
    -3
      src/Module/Hashtag.php
  93. +0
    -3
      src/Module/Login.php
  94. +0
    -2
      src/Module/Logout.php
  95. +0
    -2
      src/Network/FKOAuthDataStore.php
  96. +0
    -2
      src/Network/Probe.php
  97. +0
    -5
      src/Object/Post.php
  98. +0
    -3
      src/Object/Thread.php
  99. +0
    -6
      src/Protocol/DFRN.php
  100. +0
    -3
      src/Protocol/Diaspora.php

+ 0
- 1
bin/auth_ejabberd.php Visa fil

@@ -50,7 +50,6 @@ $directory = realpath($directory . DIRECTORY_SEPARATOR . "..");
chdir($directory);

require_once "boot.php";
require_once "include/dba.php";

$a = new App(dirname(__DIR__));



+ 0
- 1
bin/daemon.php Visa fil

@@ -31,7 +31,6 @@ if (!file_exists("boot.php") && (sizeof($_SERVER["argv"]) != 0)) {
}

require_once "boot.php";
require_once "include/dba.php";

$a = new App(dirname(__DIR__));



+ 0
- 2
boot.php Visa fil

@@ -35,8 +35,6 @@ use Friendica\Model\Contact;
use Friendica\Model\Conversation;
use Friendica\Util\DateTimeFormat;

require_once 'include/text.php';

define('FRIENDICA_PLATFORM', 'Friendica');
define('FRIENDICA_CODENAME', 'The Tazmans Flax-lily');
define('FRIENDICA_VERSION', '2018.12-rc');


+ 0
- 1
include/api.php Visa fil

@@ -46,7 +46,6 @@ use Friendica\Util\Proxy as ProxyUtils;
use Friendica\Util\Strings;
use Friendica\Util\XML;

require_once 'include/conversation.php';
require_once 'mod/share.php';
require_once 'mod/item.php';
require_once 'mod/wall_upload.php';


+ 0
- 3
include/items.php Visa fil

@@ -24,10 +24,7 @@ use Friendica\Util\ParseUrl;
use Friendica\Util\Strings;
use Friendica\Util\Temporal;

require_once 'include/text.php';
require_once 'mod/share.php';
require_once 'include/enotify.php';

function add_page_info_data(array $data, $no_photos = false)
{
Addon::callHooks('page_info_data', $data);


+ 0
- 2
include/text.php Visa fil

@@ -30,8 +30,6 @@ use Friendica\Util\Strings;
use Friendica\Util\XML;
use Friendica\Content\Text\HTML;

require_once "include/conversation.php";

/**
* Turn user/group ACLs stored as angle bracketed text into arrays
*


+ 0
- 2
mod/acl.php Visa fil

@@ -14,8 +14,6 @@ use Friendica\Model\Item;
use Friendica\Util\Proxy as ProxyUtils;
use Friendica\Util\Strings;

require_once 'include/dba.php';

function acl_content(App $a)
{
if (!local_user()) {


+ 0
- 4
mod/admin.php Visa fil

@@ -33,10 +33,6 @@ use Friendica\Util\Network;
use Friendica\Util\Strings;
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
*


+ 0
- 2
mod/allfriends.php Visa fil

@@ -15,8 +15,6 @@ use Friendica\Module;
use Friendica\Util\Proxy as ProxyUtils;


require_once 'include/dba.php';

function allfriends_content(App $a)
{
$o = '';


+ 0
- 2
mod/attach.php Visa fil

@@ -8,8 +8,6 @@ use Friendica\Core\L10n;
use Friendica\Database\DBA;
use Friendica\Util\Security;

require_once 'include/dba.php';

function attach_init(App $a)
{
if ($a->argc != 2) {


+ 0
- 3
mod/bookmarklet.php Visa fil

@@ -11,9 +11,6 @@ use Friendica\Core\System;
use Friendica\Module\Login;
use Friendica\Util\Strings;

require_once 'include/conversation.php';
require_once 'include/items.php';

function bookmarklet_init()
{
$_GET["mode"] = "minimal";


+ 0
- 2
mod/common.php Visa fil

@@ -14,8 +14,6 @@ use Friendica\Module;
use Friendica\Util\Proxy as ProxyUtils;
use Friendica\Util\Strings;

require_once 'include/dba.php';

function common_content(App $a)
{
$o = '';


+ 0
- 2
mod/community.php Visa fil

@@ -93,8 +93,6 @@ function community_content(App $a, $update = 0)
}
}

require_once 'include/conversation.php';

if (!$update) {
$tabs = [];



+ 0
- 3
mod/dfrn_confirm.php Visa fil

@@ -36,9 +36,6 @@ use Friendica\Util\Network;
use Friendica\Util\Strings;
use Friendica\Util\XML;

require_once 'include/enotify.php';
require_once 'include/items.php';

function dfrn_confirm_post(App $a, $handsfree = null)
{
$node = null;


+ 0
- 2
mod/dfrn_notify.php Visa fil

@@ -16,8 +16,6 @@ use Friendica\Protocol\DFRN;
use Friendica\Protocol\Diaspora;
use Friendica\Util\Strings;

require_once 'include/items.php';

function dfrn_notify_post(App $a) {
Logger::log(__function__, Logger::TRACE);



+ 0
- 2
mod/dfrn_poll.php Visa fil

@@ -17,8 +17,6 @@ use Friendica\Util\Network;
use Friendica\Util\Strings;
use Friendica\Util\XML;

require_once 'include/items.php';

function dfrn_poll_init(App $a)
{
Login::sessionAuth();


+ 0
- 2
mod/dfrn_request.php Visa fil

@@ -30,8 +30,6 @@ use Friendica\Util\DateTimeFormat;
use Friendica\Util\Network;
use Friendica\Util\Strings;

require_once 'include/enotify.php';

function dfrn_request_init(App $a)
{
if ($a->argc > 1) {


+ 0
- 2
mod/display.php Visa fil

@@ -214,8 +214,6 @@ function display_content(App $a, $update = false, $update_uid = 0)
return;
}

require_once 'include/conversation.php';

$o = '';

if ($update) {


+ 0
- 2
mod/events.php Visa fil

@@ -22,8 +22,6 @@ use Friendica\Util\DateTimeFormat;
use Friendica\Util\Strings;
use Friendica\Util\Temporal;

require_once 'include/items.php';

function events_init(App $a)
{
if (!local_user()) {


+ 0
- 4
mod/feedtest.php Visa fil

@@ -12,10 +12,6 @@ use Friendica\Model\Contact;
use Friendica\Protocol\Feed;
use Friendica\Util\Network;

require_once 'boot.php';
require_once 'include/dba.php';
require_once 'include/text.php';

function feedtest_content(App $a)
{
if (!local_user()) {


+ 0
- 2
mod/filer.php Visa fil

@@ -10,8 +10,6 @@ use Friendica\Core\Renderer;
use Friendica\Model\FileTag;
use Friendica\Util\XML;

require_once 'include/items.php';

function filer_content(App $a)
{
if (! local_user()) {


+ 0
- 5
mod/item.php Visa fil

@@ -38,10 +38,6 @@ use Friendica\Util\Emailer;
use Friendica\Util\Security;
use Friendica\Util\Strings;

require_once 'include/enotify.php';
require_once 'include/text.php';
require_once 'include/items.php';

function item_post(App $a) {
if (!local_user() && !remote_user()) {
return 0;
@@ -668,7 +664,6 @@ function item_post(App $a) {

// preview mode - prepare the body for display and send it via json
if ($preview) {
require_once 'include/conversation.php';
// We set the datarray ID to -1 because in preview mode the dataray
// doesn't have an ID.
$datarray["id"] = -1;


+ 0
- 2
mod/like.php Visa fil

@@ -5,8 +5,6 @@ use Friendica\Core\System;
use Friendica\Model\Item;
use Friendica\Util\Strings;

require_once 'include/items.php';

function like_content(App $a) {
if (!local_user() && !remote_user()) {
return false;


+ 0
- 4
mod/lostpass.php Visa fil

@@ -13,10 +13,6 @@ use Friendica\Model\User;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Strings;

require_once 'boot.php';
require_once 'include/enotify.php';
require_once 'include/text.php';

function lostpass_post(App $a)
{
$loginame = Strings::escapeTags(trim($_POST['login-name']));


+ 0
- 2
mod/manage.php Visa fil

@@ -10,8 +10,6 @@ use Friendica\Core\Renderer;
use Friendica\Core\System;
use Friendica\Database\DBA;

require_once "include/text.php";

function manage_post(App $a) {

if (! local_user()) {


+ 0
- 2
mod/message.php Visa fil

@@ -21,8 +21,6 @@ use Friendica\Util\Proxy as ProxyUtils;
use Friendica\Util\Strings;
use Friendica\Util\Temporal;

require_once 'include/conversation.php';

function message_init(App $a)
{
$tabs = '';


+ 0
- 3
mod/network.php Visa fil

@@ -30,9 +30,6 @@ use Friendica\Util\DateTimeFormat;
use Friendica\Util\Proxy as ProxyUtils;
use Friendica\Util\Strings;

require_once 'include/conversation.php';
require_once 'include/items.php';

function network_init(App $a)
{
if (!local_user()) {


+ 0
- 2
mod/nodeinfo.php Visa fil

@@ -12,8 +12,6 @@ use Friendica\Core\Logger;
use Friendica\Core\System;
use Friendica\Database\DBA;
use Friendica\Util\Network;
require_once 'include/dba.php';

function nodeinfo_wellknown(App $a) {
$nodeinfo = ['links' => [['rel' => 'http://nodeinfo.diaspora.software/ns/schema/1.0',
'href' => System::baseUrl().'/nodeinfo/1.0']]];


+ 0
- 2
mod/notes.php Visa fil

@@ -34,8 +34,6 @@ function notes_content(App $a, $update = false)
return;
}

require_once 'include/conversation.php';

$o = Profile::getTabs($a, true);

if (!$update) {


+ 0
- 2
mod/parse_url.php Visa fil

@@ -15,8 +15,6 @@ use Friendica\Core\Logger;
use Friendica\Util\Network;
use Friendica\Util\ParseUrl;

require_once 'include/items.php';

function parse_url_content(App $a)
{
$text = null;


+ 0
- 4
mod/photos.php Visa fil

@@ -34,8 +34,6 @@ use Friendica\Util\Temporal;
use Friendica\Util\Strings;
use Friendica\Util\XML;

require_once 'include/items.php';

function photos_init(App $a) {

if ($a->argc > 1) {
@@ -946,8 +944,6 @@ function photos_content(App $a)
return;
}

require_once 'include/conversation.php';

if (empty($a->data['user'])) {
notice(L10n::t('No photos selected') . EOL);
return;


+ 0
- 2
mod/phpinfo.php Visa fil

@@ -3,8 +3,6 @@
* @file mod/phpinfo.php
*/

require_once 'boot.php';

function phpinfo_content()
{
if (!is_site_admin()) {


+ 0
- 2
mod/ping.php Visa fil

@@ -22,8 +22,6 @@ use Friendica\Util\Temporal;
use Friendica\Util\Proxy as ProxyUtils;
use Friendica\Util\XML;

require_once 'include/enotify.php';

/**
* @brief Outputs the counts and the lists of various notifications
*


+ 0
- 2
mod/poke.php Visa fil

@@ -25,8 +25,6 @@ use Friendica\Model\Item;
use Friendica\Util\Strings;
use Friendica\Util\XML;

require_once 'include/items.php';

function poke_init(App $a)
{
if (!local_user()) {


+ 0
- 3
mod/profile.php Visa fil

@@ -135,9 +135,6 @@ function profile_content(App $a, $update = 0)
return Login::form();
}

require_once 'include/conversation.php';
require_once 'include/items.php';

$groups = [];
$remote_cid = null;



+ 0
- 2
mod/pubsub.php Visa fil

@@ -9,8 +9,6 @@ use Friendica\Protocol\OStatus;
use Friendica\Util\Strings;
use Friendica\Core\System;

require_once 'include/items.php';

function hub_return($valid, $body)
{
if ($valid) {


+ 0
- 2
mod/register.php Visa fil

@@ -18,8 +18,6 @@ use Friendica\Model;
use Friendica\Module\Tos;
use Friendica\Util\Strings;

require_once 'include/enotify.php';

function register_post(App $a)
{
BaseModule::checkFormSecurityTokenRedirectOnError('/register', 'register');


+ 0
- 2
mod/regmod.php Visa fil

@@ -13,8 +13,6 @@ use Friendica\Model\Register;
use Friendica\Model\User;
use Friendica\Module\Login;

require_once 'include/enotify.php';

function user_allow($hash)
{
$a = get_app();


+ 0
- 2
mod/removeme.php Visa fil

@@ -12,8 +12,6 @@ use Friendica\Database\DBA;
use Friendica\Model\User;
use Friendica\Util\Strings;

require_once 'include/enotify.php';

function removeme_post(App $a)
{
if (!local_user()) {


+ 0
- 2
mod/salmon.php Visa fil

@@ -14,8 +14,6 @@ use Friendica\Protocol\Salmon;
use Friendica\Util\Crypto;
use Friendica\Util\Strings;

require_once 'include/items.php';

function salmon_post(App $a, $xml = '') {

if (empty($xml)) {


+ 0
- 1
mod/search.php Visa fil

@@ -18,7 +18,6 @@ use Friendica\Database\DBA;
use Friendica\Model\Item;
use Friendica\Util\Strings;

require_once 'include/conversation.php';
require_once 'mod/dirfind.php';

function search_saved_searches() {


+ 0
- 2
mod/subthread.php Visa fil

@@ -13,8 +13,6 @@ use Friendica\Util\Security;
use Friendica\Util\Strings;
use Friendica\Util\XML;

require_once 'include/items.php';

function subthread_content(App $a) {

if (!local_user() && !remote_user()) {


+ 0
- 2
mod/tagger.php Visa fil

@@ -13,8 +13,6 @@ use Friendica\Model\Item;
use Friendica\Util\Strings;
use Friendica\Util\XML;

require_once 'include/items.php';

function tagger_content(App $a) {

if (!local_user() && !remote_user()) {


+ 0
- 4
mod/videos.php Visa fil

@@ -18,8 +18,6 @@ use Friendica\Model\Profile;
use Friendica\Protocol\DFRN;
use Friendica\Util\Security;

require_once 'include/items.php';

function videos_init(App $a)
{
if ($a->argc > 1) {
@@ -195,8 +193,6 @@ function videos_content(App $a)
return;
}

require_once 'include/conversation.php';

if (empty($a->data['user'])) {
notice(L10n::t('No videos selected') . EOL );
return;


+ 0
- 3
src/App.php Visa fil

@@ -11,9 +11,6 @@ use Exception;
use Friendica\Database\DBA;
use Friendica\Network\HTTPException\InternalServerErrorException;

require_once 'boot.php';
require_once 'include/text.php';

/**
*
* class: App


+ 0
- 2
src/BaseObject.php Visa fil

@@ -4,8 +4,6 @@
*/
namespace Friendica;

require_once 'boot.php';

/**
* Basic object
*


+ 0
- 2
src/Content/ForumManager.php Visa fil

@@ -15,8 +15,6 @@ use Friendica\Database\DBA;
use Friendica\Model\Contact;
use Friendica\Util\Proxy as ProxyUtils;

require_once 'include/dba.php';

/**
* @brief This class handles methods related to the forum functionality
*/


+ 0
- 3
src/Content/Nav.php Visa fil

@@ -15,9 +15,6 @@ use Friendica\Database\DBA;
use Friendica\Model\Contact;
use Friendica\Model\Profile;

require_once 'boot.php';
require_once 'include/text.php';

class Nav
{
private static $selected = [


+ 0
- 2
src/Content/OEmbed.php Visa fil

@@ -23,8 +23,6 @@ use Friendica\Util\ParseUrl;
use Friendica\Util\Proxy as ProxyUtils;
use Friendica\Util\Strings;

require_once 'include/dba.php';

/**
* Handles all OEmbed content fetching and replacement
*


+ 0
- 3
src/Content/Widget.php Visa fil

@@ -21,9 +21,6 @@ use Friendica\Model\Profile;
use Friendica\Util\Strings;
use Friendica\Util\XML;

require_once 'boot.php';
require_once 'include/dba.php';

class Widget
{
/**


+ 0
- 3
src/Content/Widget/CalendarExport.php Visa fil

@@ -10,9 +10,6 @@ use Friendica\Content\Feature;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;

require_once 'boot.php';
require_once 'include/text.php';

/**
* TagCloud widget
*


+ 0
- 2
src/Content/Widget/TagCloud.php Visa fil

@@ -13,8 +13,6 @@ use Friendica\Database\DBA;
use Friendica\Model\Item;
use Friendica\Util\Security;

require_once 'include/dba.php';

/**
* TagCloud widget
*


+ 0
- 2
src/Core/Config.php Visa fil

@@ -12,8 +12,6 @@ use Friendica\App;
use Friendica\BaseObject;
use Friendica\Core\Config;

require_once 'include/dba.php';

/**
* @brief Arbitrary system configuration storage
*


+ 0
- 2
src/Core/Config/JITConfigAdapter.php Visa fil

@@ -4,8 +4,6 @@ namespace Friendica\Core\Config;
use Friendica\BaseObject;
use Friendica\Database\DBA;

require_once 'include/dba.php';

/**
* JustInTime Configuration Adapter
*


+ 0
- 2
src/Core/Config/JITPConfigAdapter.php Visa fil

@@ -4,8 +4,6 @@ namespace Friendica\Core\Config;
use Friendica\BaseObject;
use Friendica\Database\DBA;

require_once 'include/dba.php';

/**
* JustInTime User Configuration Adapter
*


+ 0
- 2
src/Core/Config/PreloadConfigAdapter.php Visa fil

@@ -6,8 +6,6 @@ use Exception;
use Friendica\BaseObject;
use Friendica\Database\DBA;

require_once 'include/dba.php';

/**
* Preload Configuration Adapter
*


+ 0
- 2
src/Core/Config/PreloadPConfigAdapter.php Visa fil

@@ -6,8 +6,6 @@ use Exception;
use Friendica\BaseObject;
use Friendica\Database\DBA;

require_once 'include/dba.php';

/**
* Preload User Configuration Adapter
*


+ 0
- 2
src/Core/Console/AutomaticInstallation.php Visa fil

@@ -11,8 +11,6 @@ use Friendica\Database\DBA;
use Friendica\Database\DBStructure;
use RuntimeException;

require_once 'include/dba.php';

class AutomaticInstallation extends Console
{
protected function getHelp()


+ 0
- 3
src/Core/Console/DatabaseStructure.php Visa fil

@@ -8,9 +8,6 @@ use Friendica\Database\DBA;
use Friendica\Database\DBStructure;
use RuntimeException;

require_once 'boot.php';
require_once 'include/dba.php';

/**
* @brief Performs database updates from the command line
*


+ 0
- 2
src/Core/Console/GlobalCommunitySilence.php Visa fil

@@ -8,8 +8,6 @@ use Friendica\Network\Probe;
use Friendica\Util\Strings;
use RuntimeException;

require_once 'include/text.php';

/**
* @brief tool to silence accounts on the global community page
*


+ 0
- 3
src/Core/Console/Maintenance.php Visa fil

@@ -4,9 +4,6 @@ namespace Friendica\Core\Console;

use Friendica\Core;

require_once 'boot.php';
require_once 'include/dba.php';

/**
* @brief Sets maintenance mode for this node
*


+ 0
- 1
src/Core/Installer.php Visa fil

@@ -578,7 +578,6 @@ class Installer
*/
public function checkDB($dbhost, $dbuser, $dbpass, $dbdata)
{
require_once 'include/dba.php';
if (!DBA::connect($dbhost, $dbuser, $dbpass, $dbdata)) {
$this->addCheck(L10n::t('Could not connect to database.'), false, true, '');



+ 0
- 3
src/Core/L10n.php Visa fil

@@ -10,9 +10,6 @@ use Friendica\Core\Addon;
use Friendica\Core\Logger;
use Friendica\Core\System;

require_once 'boot.php';
require_once 'include/dba.php';

/**
* 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").


+ 0
- 2
src/Core/NotificationsManager.php Visa fil

@@ -19,8 +19,6 @@ use Friendica\Util\Proxy as ProxyUtils;
use Friendica\Util\Temporal;
use Friendica\Util\XML;

require_once 'include/dba.php';

/**
* @brief Methods for read and write notifications from/to database
* or for formatting notifications


+ 0
- 2
src/Core/PConfig.php Visa fil

@@ -11,8 +11,6 @@ namespace Friendica\Core;
use Friendica\App;
use Friendica\BaseObject;

require_once 'include/dba.php';

/**
* @brief Management of user configuration storage
* Note:


+ 0
- 3
src/Core/Session/CacheSessionHandler.php Visa fil

@@ -8,9 +8,6 @@ use Friendica\Core\Logger;
use Friendica\Core\Session;
use SessionHandlerInterface;

require_once 'boot.php';
require_once 'include/text.php';

/**
* SessionHandler using Friendica Cache
*


+ 0
- 4
src/Core/Session/DatabaseSessionHandler.php Visa fil

@@ -8,10 +8,6 @@ use Friendica\Core\Session;
use Friendica\Database\DBA;
use SessionHandlerInterface;

require_once 'boot.php';
require_once 'include/dba.php';
require_once 'include/text.php';

/**
* SessionHandler using database
*


+ 0
- 2
src/Core/Theme.php Visa fil

@@ -9,8 +9,6 @@ namespace Friendica\Core;
use Friendica\Core\Logger;
use Friendica\Core\System;

require_once 'boot.php';

/**
* Some functions to handle themes
*/


+ 0
- 2
src/Core/UserImport.php Visa fil

@@ -13,8 +13,6 @@ use Friendica\Model\Photo;
use Friendica\Object\Image;
use Friendica\Util\Strings;

require_once "include/dba.php";

/**
* @brief UserImport class
*/


+ 0
- 2
src/Core/Worker.php Visa fil

@@ -11,8 +11,6 @@ use Friendica\Model\Process;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Network;

require_once 'include/dba.php';

/**
* @file src/Core/Worker.php
*


+ 0
- 2
src/Database/DBA.php Visa fil

@@ -16,8 +16,6 @@ use PDO;
use PDOException;
use PDOStatement;

require_once 'include/dba.php';

/**
* @class MySQL database class
*


+ 0
- 5
src/Database/DBStructure.php Visa fil

@@ -12,11 +12,6 @@ use Friendica\Core\L10n;
use Friendica\Core\Logger;
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
*


+ 0
- 2
src/Database/PostUpdate.php Visa fil

@@ -13,8 +13,6 @@ use Friendica\Model\ItemURI;
use Friendica\Model\PermissionSet;
use Friendica\Database\DBA;

require_once 'include/dba.php';

/**
* Post update functions
*/


+ 0
- 2
src/Model/APContact.php Visa fil

@@ -16,8 +16,6 @@ use Friendica\Util\JsonLD;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Strings;

require_once 'boot.php';

class APContact extends BaseObject
{
/**


+ 0
- 6
src/Model/Contact.php Visa fil

@@ -27,10 +27,6 @@ use Friendica\Util\DateTimeFormat;
use Friendica\Util\Network;
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
*/
@@ -1376,8 +1372,6 @@ class Contact extends BaseObject
{
$a = self::getApp();

require_once 'include/conversation.php';

$cid = Self::getIdForURL($contact_url);

$contact = DBA::selectFirst('contact', ['contact-type', 'network'], ['id' => $cid]);


+ 0
- 2
src/Model/Conversation.php Visa fil

@@ -10,8 +10,6 @@ use Friendica\Core\Protocol;
use Friendica\Database\DBA;
use Friendica\Util\DateTimeFormat;

require_once "include/dba.php";

class Conversation
{
/*


+ 0
- 4
src/Model/Event.php Visa fil

@@ -19,10 +19,6 @@ use Friendica\Util\DateTimeFormat;
use Friendica\Util\Map;
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
*/


+ 0
- 2
src/Model/GContact.php Visa fil

@@ -19,8 +19,6 @@ use Friendica\Util\DateTimeFormat;
use Friendica\Util\Network;
use Friendica\Util\Strings;

require_once 'include/dba.php';

/**
* @brief This class handles GlobalContact related functions
*/


+ 0
- 4
src/Model/Group.php Visa fil

@@ -12,10 +12,6 @@ use Friendica\Core\Renderer;
use Friendica\Database\DBA;
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
*/


+ 0
- 4
src/Model/Item.php Visa fil

@@ -36,10 +36,6 @@ use Friendica\Util\Security;
use Friendica\Util\Strings;
use Text_LanguageDetect;

require_once 'boot.php';
require_once 'include/items.php';
require_once 'include/text.php';

class Item extends BaseObject
{
// Posting types, inspired by https://www.w3.org/TR/activitystreams-vocabulary/#object-types


+ 0
- 4
src/Model/ItemContent.php Visa fil

@@ -11,10 +11,6 @@ use Friendica\Content\Text;
use Friendica\Core\PConfig;
use Friendica\Core\Protocol;

require_once 'boot.php';
require_once 'include/items.php';
require_once 'include/text.php';

class ItemContent extends BaseObject
{
/**


+ 0
- 2
src/Model/ItemURI.php Visa fil

@@ -9,8 +9,6 @@ namespace Friendica\Model;
use Friendica\BaseObject;
use Friendica\Database\DBA;

require_once 'boot.php';

class ItemURI extends BaseObject
{
/**


+ 0
- 2
src/Model/Mail.php Visa fil

@@ -13,8 +13,6 @@ use Friendica\Database\DBA;
use Friendica\Network\Probe;
use Friendica\Util\DateTimeFormat;

require_once 'include/dba.php';

/**
* Class to handle private messages
*/


+ 0
- 2
src/Model/PermissionSet.php Visa fil

@@ -7,8 +7,6 @@ namespace Friendica\Model;
use Friendica\BaseObject;
use Friendica\Database\DBA;

require_once 'include/dba.php';

/**
* @brief functions for interacting with the permission set of an object (item, photo, event, ...)
*/


+ 0
- 2
src/Model/Photo.php Visa fil

@@ -16,8 +16,6 @@ use Friendica\Util\DateTimeFormat;
use Friendica\Util\Network;
use Friendica\Util\Security;

require_once 'include/dba.php';

/**
* Class to handle photo dabatase table
*/


+ 0
- 2
src/Model/Process.php Visa fil

@@ -8,8 +8,6 @@ use Friendica\BaseObject;
use Friendica\Database\DBA;
use Friendica\Util\DateTimeFormat;

require_once 'include/dba.php';

/**
* @brief functions for interacting with a process
*/


+ 0
- 2
src/Model/Profile.php Visa fil

@@ -28,8 +28,6 @@ use Friendica\Util\Proxy as ProxyUtils;
use Friendica\Util\Strings;
use Friendica\Util\Temporal;

require_once 'include/dba.php';

class Profile
{
/**


+ 0
- 2
src/Model/PushSubscriber.php Visa fil

@@ -9,8 +9,6 @@ use Friendica\Core\Worker;
use Friendica\Database\DBA;
use Friendica\Util\DateTimeFormat;

require_once 'include/dba.php';

class PushSubscriber
{
/**


+ 0
- 2
src/Model/Queue.php Visa fil

@@ -9,8 +9,6 @@ use Friendica\Core\Logger;
use Friendica\Database\DBA;
use Friendica\Util\DateTimeFormat;

require_once 'include/dba.php';

class Queue
{
/**


+ 0
- 4
src/Model/Term.php Visa fil

@@ -7,10 +7,6 @@ namespace Friendica\Model;
use Friendica\Core\System;
use Friendica\Database\DBA;

require_once 'boot.php';
require_once 'include/conversation.php';
require_once 'include/dba.php';

class Term
{
public static function tagTextFromItemId($itemid)


+ 0
- 4
src/Model/User.php Visa fil

@@ -24,10 +24,6 @@ use Friendica\Util\Network;
use Friendica\Util\Strings;
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
*/


+ 0
- 3
src/Module/Hashtag.php Visa fil

@@ -9,9 +9,6 @@ use Friendica\Core\System;
use Friendica\Database\DBA;
use Friendica\Util\Strings;

require_once 'include/dba.php';
require_once 'include/text.php';

/**
* Hashtag module.
*/


+ 0
- 3
src/Module/Login.php Visa fil

@@ -20,9 +20,6 @@ use Friendica\Util\Network;
use Friendica\Util\Strings;
use LightOpenID;

require_once 'boot.php';
require_once 'include/text.php';

/**
* Login module
*


+ 0
- 2
src/Module/Logout.php Visa fil

@@ -10,8 +10,6 @@ use Friendica\Core\Authentication;
use Friendica\Core\L10n;
use Friendica\Core\System;

require_once 'boot.php';

/**
* Logout module
*


+ 0
- 2
src/Network/FKOAuthDataStore.php Visa fil

@@ -19,8 +19,6 @@ use OAuthToken;
define('REQUEST_TOKEN_DURATION', 300);
define('ACCESS_TOKEN_DURATION', 31536000);

require_once 'include/dba.php';

/**
* @brief OAuthDataStore class
*/


+ 0
- 2
src/Network/Probe.php Visa fil

@@ -28,8 +28,6 @@ use Friendica\Util\Strings;
use Friendica\Util\XML;
use DomXPath;

require_once 'include/dba.php';

/**
* @brief This class contain functions for probing URL
*


+ 0
- 5
src/Object/Post.php Visa fil

@@ -24,11 +24,6 @@ use Friendica\Util\Proxy as ProxyUtils;
use Friendica\Util\Strings;
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
*/


+ 0
- 3
src/Object/Thread.php Visa fil

@@ -10,9 +10,6 @@ use Friendica\Core\Protocol;
use Friendica\Object\Post;
use Friendica\Util\Security;

require_once 'boot.php';
require_once 'include/text.php';

/**
* A list of threads
*


+ 0
- 6
src/Protocol/DFRN.php Visa fil

@@ -37,12 +37,6 @@ use Friendica\Util\XML;
use HTMLPurifier;
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
*/


+ 0
- 3
src/Protocol/Diaspora.php Visa fil

@@ -38,9 +38,6 @@ use Friendica\Util\Strings;
use Friendica\Util\XML;
use SimpleXMLElement;

require_once 'include/dba.php';
require_once 'include/items.php';

/**
* @brief This class contain functions to create and send Diaspora XML files
*


Vissa filer visades inte eftersom för många filer har ändrats

Laddar…
Avbryt
Spara