Browse Source

Remove include/ requires that are now done directly from Composer

tags/2019.01
Hypolite Petovan 6 months ago
parent
commit
acaee626f5
100 changed files with 0 additions and 250 deletions
  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
    0
      src/Protocol/Diaspora.php

+ 0
- 1
bin/auth_ejabberd.php View File

@@ -50,7 +50,6 @@ $directory = realpath($directory . DIRECTORY_SEPARATOR . "..");
50 50
 chdir($directory);
51 51
 
52 52
 require_once "boot.php";
53
-require_once "include/dba.php";
54 53
 
55 54
 $a = new App(dirname(__DIR__));
56 55
 

+ 0
- 1
bin/daemon.php View File

@@ -31,7 +31,6 @@ if (!file_exists("boot.php") && (sizeof($_SERVER["argv"]) != 0)) {
31 31
 }
32 32
 
33 33
 require_once "boot.php";
34
-require_once "include/dba.php";
35 34
 
36 35
 $a = new App(dirname(__DIR__));
37 36
 

+ 0
- 2
boot.php View File

@@ -35,8 +35,6 @@ use Friendica\Model\Contact;
35 35
 use Friendica\Model\Conversation;
36 36
 use Friendica\Util\DateTimeFormat;
37 37
 
38
-require_once 'include/text.php';
39
-
40 38
 define('FRIENDICA_PLATFORM',     'Friendica');
41 39
 define('FRIENDICA_CODENAME',     'The Tazmans Flax-lily');
42 40
 define('FRIENDICA_VERSION',      '2018.12-rc');

+ 0
- 1
include/api.php View File

@@ -46,7 +46,6 @@ use Friendica\Util\Proxy as ProxyUtils;
46 46
 use Friendica\Util\Strings;
47 47
 use Friendica\Util\XML;
48 48
 
49
-require_once 'include/conversation.php';
50 49
 require_once 'mod/share.php';
51 50
 require_once 'mod/item.php';
52 51
 require_once 'mod/wall_upload.php';

+ 0
- 3
include/items.php View File

@@ -24,10 +24,7 @@ use Friendica\Util\ParseUrl;
24 24
 use Friendica\Util\Strings;
25 25
 use Friendica\Util\Temporal;
26 26
 
27
-require_once 'include/text.php';
28 27
 require_once 'mod/share.php';
29
-require_once 'include/enotify.php';
30
-
31 28
 function add_page_info_data(array $data, $no_photos = false)
32 29
 {
33 30
 	Addon::callHooks('page_info_data', $data);

+ 0
- 2
include/text.php View File

@@ -30,8 +30,6 @@ use Friendica\Util\Strings;
30 30
 use Friendica\Util\XML;
31 31
 use Friendica\Content\Text\HTML;
32 32
 
33
-require_once "include/conversation.php";
34
-
35 33
 /**
36 34
  * Turn user/group ACLs stored as angle bracketed text into arrays
37 35
  *

+ 0
- 2
mod/acl.php View File

@@ -14,8 +14,6 @@ use Friendica\Model\Item;
14 14
 use Friendica\Util\Proxy as ProxyUtils;
15 15
 use Friendica\Util\Strings;
16 16
 
17
-require_once 'include/dba.php';
18
-
19 17
 function acl_content(App $a)
20 18
 {
21 19
 	if (!local_user()) {

+ 0
- 4
mod/admin.php View File

@@ -33,10 +33,6 @@ use Friendica\Util\Network;
33 33
 use Friendica\Util\Strings;
34 34
 use Friendica\Util\Temporal;
35 35
 
36
-require_once 'include/enotify.php';
37
-require_once 'include/text.php';
38
-require_once 'include/items.php';
39
-
40 36
 /**
41 37
  * @brief Process send data from the admin panels subpages
42 38
  *

+ 0
- 2
mod/allfriends.php View File

@@ -15,8 +15,6 @@ use Friendica\Module;
15 15
 use Friendica\Util\Proxy as ProxyUtils;
16 16
 
17 17
 
18
-require_once 'include/dba.php';
19
-
20 18
 function allfriends_content(App $a)
21 19
 {
22 20
 	$o = '';

+ 0
- 2
mod/attach.php View File

@@ -8,8 +8,6 @@ use Friendica\Core\L10n;
8 8
 use Friendica\Database\DBA;
9 9
 use Friendica\Util\Security;
10 10
 
11
-require_once 'include/dba.php';
12
-
13 11
 function attach_init(App $a)
14 12
 {
15 13
 	if ($a->argc != 2) {

+ 0
- 3
mod/bookmarklet.php View File

@@ -11,9 +11,6 @@ use Friendica\Core\System;
11 11
 use Friendica\Module\Login;
12 12
 use Friendica\Util\Strings;
13 13
 
14
-require_once 'include/conversation.php';
15
-require_once 'include/items.php';
16
-
17 14
 function bookmarklet_init()
18 15
 {
19 16
 	$_GET["mode"] = "minimal";

+ 0
- 2
mod/common.php View File

@@ -14,8 +14,6 @@ use Friendica\Module;
14 14
 use Friendica\Util\Proxy as ProxyUtils;
15 15
 use Friendica\Util\Strings;
16 16
 
17
-require_once 'include/dba.php';
18
-
19 17
 function common_content(App $a)
20 18
 {
21 19
 	$o = '';

+ 0
- 2
mod/community.php View File

@@ -93,8 +93,6 @@ function community_content(App $a, $update = 0)
93 93
 		}
94 94
 	}
95 95
 
96
-	require_once 'include/conversation.php';
97
-
98 96
 	if (!$update) {
99 97
 		$tabs = [];
100 98
 

+ 0
- 3
mod/dfrn_confirm.php View File

@@ -36,9 +36,6 @@ use Friendica\Util\Network;
36 36
 use Friendica\Util\Strings;
37 37
 use Friendica\Util\XML;
38 38
 
39
-require_once 'include/enotify.php';
40
-require_once 'include/items.php';
41
-
42 39
 function dfrn_confirm_post(App $a, $handsfree = null)
43 40
 {
44 41
 	$node = null;

+ 0
- 2
mod/dfrn_notify.php View File

@@ -16,8 +16,6 @@ use Friendica\Protocol\DFRN;
16 16
 use Friendica\Protocol\Diaspora;
17 17
 use Friendica\Util\Strings;
18 18
 
19
-require_once 'include/items.php';
20
-
21 19
 function dfrn_notify_post(App $a) {
22 20
 	Logger::log(__function__, Logger::TRACE);
23 21
 

+ 0
- 2
mod/dfrn_poll.php View File

@@ -17,8 +17,6 @@ use Friendica\Util\Network;
17 17
 use Friendica\Util\Strings;
18 18
 use Friendica\Util\XML;
19 19
 
20
-require_once 'include/items.php';
21
-
22 20
 function dfrn_poll_init(App $a)
23 21
 {
24 22
 	Login::sessionAuth();

+ 0
- 2
mod/dfrn_request.php View File

@@ -30,8 +30,6 @@ use Friendica\Util\DateTimeFormat;
30 30
 use Friendica\Util\Network;
31 31
 use Friendica\Util\Strings;
32 32
 
33
-require_once 'include/enotify.php';
34
-
35 33
 function dfrn_request_init(App $a)
36 34
 {
37 35
 	if ($a->argc > 1) {

+ 0
- 2
mod/display.php View File

@@ -214,8 +214,6 @@ function display_content(App $a, $update = false, $update_uid = 0)
214 214
 		return;
215 215
 	}
216 216
 
217
-	require_once 'include/conversation.php';
218
-
219 217
 	$o = '';
220 218
 
221 219
 	if ($update) {

+ 0
- 2
mod/events.php View File

@@ -22,8 +22,6 @@ use Friendica\Util\DateTimeFormat;
22 22
 use Friendica\Util\Strings;
23 23
 use Friendica\Util\Temporal;
24 24
 
25
-require_once 'include/items.php';
26
-
27 25
 function events_init(App $a)
28 26
 {
29 27
 	if (!local_user()) {

+ 0
- 4
mod/feedtest.php View File

@@ -12,10 +12,6 @@ use Friendica\Model\Contact;
12 12
 use Friendica\Protocol\Feed;
13 13
 use Friendica\Util\Network;
14 14
 
15
-require_once 'boot.php';
16
-require_once 'include/dba.php';
17
-require_once 'include/text.php';
18
-
19 15
 function feedtest_content(App $a)
20 16
 {
21 17
 	if (!local_user()) {

+ 0
- 2
mod/filer.php View File

@@ -10,8 +10,6 @@ use Friendica\Core\Renderer;
10 10
 use Friendica\Model\FileTag;
11 11
 use Friendica\Util\XML;
12 12
 
13
-require_once 'include/items.php';
14
-
15 13
 function filer_content(App $a)
16 14
 {
17 15
 	if (! local_user()) {

+ 0
- 5
mod/item.php View File

@@ -38,10 +38,6 @@ use Friendica\Util\Emailer;
38 38
 use Friendica\Util\Security;
39 39
 use Friendica\Util\Strings;
40 40
 
41
-require_once 'include/enotify.php';
42
-require_once 'include/text.php';
43
-require_once 'include/items.php';
44
-
45 41
 function item_post(App $a) {
46 42
 	if (!local_user() && !remote_user()) {
47 43
 		return 0;
@@ -668,7 +664,6 @@ function item_post(App $a) {
668 664
 
669 665
 	// preview mode - prepare the body for display and send it via json
670 666
 	if ($preview) {
671
-		require_once 'include/conversation.php';
672 667
 		// We set the datarray ID to -1 because in preview mode the dataray
673 668
 		// doesn't have an ID.
674 669
 		$datarray["id"] = -1;

+ 0
- 2
mod/like.php View File

@@ -5,8 +5,6 @@ use Friendica\Core\System;
5 5
 use Friendica\Model\Item;
6 6
 use Friendica\Util\Strings;
7 7
 
8
-require_once 'include/items.php';
9
-
10 8
 function like_content(App $a) {
11 9
 	if (!local_user() && !remote_user()) {
12 10
 		return false;

+ 0
- 4
mod/lostpass.php View File

@@ -13,10 +13,6 @@ use Friendica\Model\User;
13 13
 use Friendica\Util\DateTimeFormat;
14 14
 use Friendica\Util\Strings;
15 15
 
16
-require_once 'boot.php';
17
-require_once 'include/enotify.php';
18
-require_once 'include/text.php';
19
-
20 16
 function lostpass_post(App $a)
21 17
 {
22 18
 	$loginame = Strings::escapeTags(trim($_POST['login-name']));

+ 0
- 2
mod/manage.php View File

@@ -10,8 +10,6 @@ use Friendica\Core\Renderer;
10 10
 use Friendica\Core\System;
11 11
 use Friendica\Database\DBA;
12 12
 
13
-require_once "include/text.php";
14
-
15 13
 function manage_post(App $a) {
16 14
 
17 15
 	if (! local_user()) {

+ 0
- 2
mod/message.php View File

@@ -21,8 +21,6 @@ use Friendica\Util\Proxy as ProxyUtils;
21 21
 use Friendica\Util\Strings;
22 22
 use Friendica\Util\Temporal;
23 23
 
24
-require_once 'include/conversation.php';
25
-
26 24
 function message_init(App $a)
27 25
 {
28 26
 	$tabs = '';

+ 0
- 3
mod/network.php View File

@@ -30,9 +30,6 @@ use Friendica\Util\DateTimeFormat;
30 30
 use Friendica\Util\Proxy as ProxyUtils;
31 31
 use Friendica\Util\Strings;
32 32
 
33
-require_once 'include/conversation.php';
34
-require_once 'include/items.php';
35
-
36 33
 function network_init(App $a)
37 34
 {
38 35
 	if (!local_user()) {

+ 0
- 2
mod/nodeinfo.php View File

@@ -12,8 +12,6 @@ use Friendica\Core\Logger;
12 12
 use Friendica\Core\System;
13 13
 use Friendica\Database\DBA;
14 14
 use Friendica\Util\Network;
15
-require_once 'include/dba.php';
16
-
17 15
 function nodeinfo_wellknown(App $a) {
18 16
 	$nodeinfo = ['links' => [['rel' => 'http://nodeinfo.diaspora.software/ns/schema/1.0',
19 17
 					'href' => System::baseUrl().'/nodeinfo/1.0']]];

+ 0
- 2
mod/notes.php View File

@@ -34,8 +34,6 @@ function notes_content(App $a, $update = false)
34 34
 		return;
35 35
 	}
36 36
 
37
-	require_once 'include/conversation.php';
38
-
39 37
 	$o = Profile::getTabs($a, true);
40 38
 
41 39
 	if (!$update) {

+ 0
- 2
mod/parse_url.php View File

@@ -15,8 +15,6 @@ use Friendica\Core\Logger;
15 15
 use Friendica\Util\Network;
16 16
 use Friendica\Util\ParseUrl;
17 17
 
18
-require_once 'include/items.php';
19
-
20 18
 function parse_url_content(App $a)
21 19
 {
22 20
 	$text = null;

+ 0
- 4
mod/photos.php View File

@@ -34,8 +34,6 @@ use Friendica\Util\Temporal;
34 34
 use Friendica\Util\Strings;
35 35
 use Friendica\Util\XML;
36 36
 
37
-require_once 'include/items.php';
38
-
39 37
 function photos_init(App $a) {
40 38
 
41 39
 	if ($a->argc > 1) {
@@ -946,8 +944,6 @@ function photos_content(App $a)
946 944
 		return;
947 945
 	}
948 946
 
949
-	require_once 'include/conversation.php';
950
-
951 947
 	if (empty($a->data['user'])) {
952 948
 		notice(L10n::t('No photos selected') . EOL);
953 949
 		return;

+ 0
- 2
mod/phpinfo.php View File

@@ -3,8 +3,6 @@
3 3
  * @file mod/phpinfo.php
4 4
  */
5 5
 
6
-require_once 'boot.php';
7
-
8 6
 function phpinfo_content()
9 7
 {
10 8
 	if (!is_site_admin()) {

+ 0
- 2
mod/ping.php View File

@@ -22,8 +22,6 @@ use Friendica\Util\Temporal;
22 22
 use Friendica\Util\Proxy as ProxyUtils;
23 23
 use Friendica\Util\XML;
24 24
 
25
-require_once 'include/enotify.php';
26
-
27 25
 /**
28 26
  * @brief Outputs the counts and the lists of various notifications
29 27
  *

+ 0
- 2
mod/poke.php View File

@@ -25,8 +25,6 @@ use Friendica\Model\Item;
25 25
 use Friendica\Util\Strings;
26 26
 use Friendica\Util\XML;
27 27
 
28
-require_once 'include/items.php';
29
-
30 28
 function poke_init(App $a)
31 29
 {
32 30
 	if (!local_user()) {

+ 0
- 3
mod/profile.php View File

@@ -135,9 +135,6 @@ function profile_content(App $a, $update = 0)
135 135
 		return Login::form();
136 136
 	}
137 137
 
138
-	require_once 'include/conversation.php';
139
-	require_once 'include/items.php';
140
-
141 138
 	$groups = [];
142 139
 	$remote_cid = null;
143 140
 

+ 0
- 2
mod/pubsub.php View File

@@ -9,8 +9,6 @@ use Friendica\Protocol\OStatus;
9 9
 use Friendica\Util\Strings;
10 10
 use Friendica\Core\System;
11 11
 
12
-require_once 'include/items.php';
13
-
14 12
 function hub_return($valid, $body)
15 13
 {
16 14
 	if ($valid) {

+ 0
- 2
mod/register.php View File

@@ -18,8 +18,6 @@ use Friendica\Model;
18 18
 use Friendica\Module\Tos;
19 19
 use Friendica\Util\Strings;
20 20
 
21
-require_once 'include/enotify.php';
22
-
23 21
 function register_post(App $a)
24 22
 {
25 23
 	BaseModule::checkFormSecurityTokenRedirectOnError('/register', 'register');

+ 0
- 2
mod/regmod.php View File

@@ -13,8 +13,6 @@ use Friendica\Model\Register;
13 13
 use Friendica\Model\User;
14 14
 use Friendica\Module\Login;
15 15
 
16
-require_once 'include/enotify.php';
17
-
18 16
 function user_allow($hash)
19 17
 {
20 18
 	$a = get_app();

+ 0
- 2
mod/removeme.php View File

@@ -12,8 +12,6 @@ use Friendica\Database\DBA;
12 12
 use Friendica\Model\User;
13 13
 use Friendica\Util\Strings;
14 14
 
15
-require_once 'include/enotify.php';
16
-
17 15
 function removeme_post(App $a)
18 16
 {
19 17
 	if (!local_user()) {

+ 0
- 2
mod/salmon.php View File

@@ -14,8 +14,6 @@ use Friendica\Protocol\Salmon;
14 14
 use Friendica\Util\Crypto;
15 15
 use Friendica\Util\Strings;
16 16
 
17
-require_once 'include/items.php';
18
-
19 17
 function salmon_post(App $a, $xml = '') {
20 18
 
21 19
 	if (empty($xml)) {

+ 0
- 1
mod/search.php View File

@@ -18,7 +18,6 @@ use Friendica\Database\DBA;
18 18
 use Friendica\Model\Item;
19 19
 use Friendica\Util\Strings;
20 20
 
21
-require_once 'include/conversation.php';
22 21
 require_once 'mod/dirfind.php';
23 22
 
24 23
 function search_saved_searches() {

+ 0
- 2
mod/subthread.php View File

@@ -13,8 +13,6 @@ use Friendica\Util\Security;
13 13
 use Friendica\Util\Strings;
14 14
 use Friendica\Util\XML;
15 15
 
16
-require_once 'include/items.php';
17
-
18 16
 function subthread_content(App $a) {
19 17
 
20 18
 	if (!local_user() && !remote_user()) {

+ 0
- 2
mod/tagger.php View File

@@ -13,8 +13,6 @@ use Friendica\Model\Item;
13 13
 use Friendica\Util\Strings;
14 14
 use Friendica\Util\XML;
15 15
 
16
-require_once 'include/items.php';
17
-
18 16
 function tagger_content(App $a) {
19 17
 
20 18
 	if (!local_user() && !remote_user()) {

+ 0
- 4
mod/videos.php View File

@@ -18,8 +18,6 @@ use Friendica\Model\Profile;
18 18
 use Friendica\Protocol\DFRN;
19 19
 use Friendica\Util\Security;
20 20
 
21
-require_once 'include/items.php';
22
-
23 21
 function videos_init(App $a)
24 22
 {
25 23
 	if ($a->argc > 1) {
@@ -195,8 +193,6 @@ function videos_content(App $a)
195 193
 		return;
196 194
 	}
197 195
 
198
-	require_once 'include/conversation.php';
199
-
200 196
 	if (empty($a->data['user'])) {
201 197
 		notice(L10n::t('No videos selected') . EOL );
202 198
 		return;

+ 0
- 3
src/App.php View File

@@ -11,9 +11,6 @@ use Exception;
11 11
 use Friendica\Database\DBA;
12 12
 use Friendica\Network\HTTPException\InternalServerErrorException;
13 13
 
14
-require_once 'boot.php';
15
-require_once 'include/text.php';
16
-
17 14
 /**
18 15
  *
19 16
  * class: App

+ 0
- 2
src/BaseObject.php View File

@@ -4,8 +4,6 @@
4 4
  */
5 5
 namespace Friendica;
6 6
 
7
-require_once 'boot.php';
8
-
9 7
 /**
10 8
  * Basic object
11 9
  *

+ 0
- 2
src/Content/ForumManager.php View File

@@ -15,8 +15,6 @@ use Friendica\Database\DBA;
15 15
 use Friendica\Model\Contact;
16 16
 use Friendica\Util\Proxy as ProxyUtils;
17 17
 
18
-require_once 'include/dba.php';
19
-
20 18
 /**
21 19
  * @brief This class handles methods related to the forum functionality
22 20
  */

+ 0
- 3
src/Content/Nav.php View File

@@ -15,9 +15,6 @@ use Friendica\Database\DBA;
15 15
 use Friendica\Model\Contact;
16 16
 use Friendica\Model\Profile;
17 17
 
18
-require_once 'boot.php';
19
-require_once 'include/text.php';
20
-
21 18
 class Nav
22 19
 {
23 20
 	private static $selected = [

+ 0
- 2
src/Content/OEmbed.php View File

@@ -23,8 +23,6 @@ use Friendica\Util\ParseUrl;
23 23
 use Friendica\Util\Proxy as ProxyUtils;
24 24
 use Friendica\Util\Strings;
25 25
 
26
-require_once 'include/dba.php';
27
-
28 26
 /**
29 27
  * Handles all OEmbed content fetching and replacement
30 28
  *

+ 0
- 3
src/Content/Widget.php View File

@@ -21,9 +21,6 @@ use Friendica\Model\Profile;
21 21
 use Friendica\Util\Strings;
22 22
 use Friendica\Util\XML;
23 23
 
24
-require_once 'boot.php';
25
-require_once 'include/dba.php';
26
-
27 24
 class Widget
28 25
 {
29 26
 	/**

+ 0
- 3
src/Content/Widget/CalendarExport.php View File

@@ -10,9 +10,6 @@ use Friendica\Content\Feature;
10 10
 use Friendica\Core\L10n;
11 11
 use Friendica\Core\Renderer;
12 12
 
13
-require_once 'boot.php';
14
-require_once 'include/text.php';
15
-
16 13
 /**
17 14
  * TagCloud widget
18 15
  *

+ 0
- 2
src/Content/Widget/TagCloud.php View File

@@ -13,8 +13,6 @@ use Friendica\Database\DBA;
13 13
 use Friendica\Model\Item;
14 14
 use Friendica\Util\Security;
15 15
 
16
-require_once 'include/dba.php';
17
-
18 16
 /**
19 17
  * TagCloud widget
20 18
  *

+ 0
- 2
src/Core/Config.php View File

@@ -12,8 +12,6 @@ use Friendica\App;
12 12
 use Friendica\BaseObject;
13 13
 use Friendica\Core\Config;
14 14
 
15
-require_once 'include/dba.php';
16
-
17 15
 /**
18 16
  * @brief Arbitrary system configuration storage
19 17
  *

+ 0
- 2
src/Core/Config/JITConfigAdapter.php View File

@@ -4,8 +4,6 @@ namespace Friendica\Core\Config;
4 4
 use Friendica\BaseObject;
5 5
 use Friendica\Database\DBA;
6 6
 
7
-require_once 'include/dba.php';
8
-
9 7
 /**
10 8
  * JustInTime Configuration Adapter
11 9
  *

+ 0
- 2
src/Core/Config/JITPConfigAdapter.php View File

@@ -4,8 +4,6 @@ namespace Friendica\Core\Config;
4 4
 use Friendica\BaseObject;
5 5
 use Friendica\Database\DBA;
6 6
 
7
-require_once 'include/dba.php';
8
-
9 7
 /**
10 8
  * JustInTime User Configuration Adapter
11 9
  *

+ 0
- 2
src/Core/Config/PreloadConfigAdapter.php View File

@@ -6,8 +6,6 @@ use Exception;
6 6
 use Friendica\BaseObject;
7 7
 use Friendica\Database\DBA;
8 8
 
9
-require_once 'include/dba.php';
10
-
11 9
 /**
12 10
  * Preload Configuration Adapter
13 11
  *

+ 0
- 2
src/Core/Config/PreloadPConfigAdapter.php View File

@@ -6,8 +6,6 @@ use Exception;
6 6
 use Friendica\BaseObject;
7 7
 use Friendica\Database\DBA;
8 8
 
9
-require_once 'include/dba.php';
10
-
11 9
 /**
12 10
  * Preload User Configuration Adapter
13 11
  *

+ 0
- 2
src/Core/Console/AutomaticInstallation.php View File

@@ -11,8 +11,6 @@ use Friendica\Database\DBA;
11 11
 use Friendica\Database\DBStructure;
12 12
 use RuntimeException;
13 13
 
14
-require_once 'include/dba.php';
15
-
16 14
 class AutomaticInstallation extends Console
17 15
 {
18 16
 	protected function getHelp()

+ 0
- 3
src/Core/Console/DatabaseStructure.php View File

@@ -8,9 +8,6 @@ use Friendica\Database\DBA;
8 8
 use Friendica\Database\DBStructure;
9 9
 use RuntimeException;
10 10
 
11
-require_once 'boot.php';
12
-require_once 'include/dba.php';
13
-
14 11
 /**
15 12
  * @brief Performs database updates from the command line
16 13
  *

+ 0
- 2
src/Core/Console/GlobalCommunitySilence.php View File

@@ -8,8 +8,6 @@ use Friendica\Network\Probe;
8 8
 use Friendica\Util\Strings;
9 9
 use RuntimeException;
10 10
 
11
-require_once 'include/text.php';
12
-
13 11
 /**
14 12
  * @brief tool to silence accounts on the global community page
15 13
  *

+ 0
- 3
src/Core/Console/Maintenance.php View File

@@ -4,9 +4,6 @@ namespace Friendica\Core\Console;
4 4
 
5 5
 use Friendica\Core;
6 6
 
7
-require_once 'boot.php';
8
-require_once 'include/dba.php';
9
-
10 7
 /**
11 8
  * @brief Sets maintenance mode for this node
12 9
  *

+ 0
- 1
src/Core/Installer.php View File

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

+ 0
- 3
src/Core/L10n.php View File

@@ -10,9 +10,6 @@ use Friendica\Core\Addon;
10 10
 use Friendica\Core\Logger;
11 11
 use Friendica\Core\System;
12 12
 
13
-require_once 'boot.php';
14
-require_once 'include/dba.php';
15
-
16 13
 /**
17 14
  * Provide Language, Translation, and Localization functions to the application
18 15
  * 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 View File

@@ -19,8 +19,6 @@ use Friendica\Util\Proxy as ProxyUtils;
19 19
 use Friendica\Util\Temporal;
20 20
 use Friendica\Util\XML;
21 21
 
22
-require_once 'include/dba.php';
23
-
24 22
 /**
25 23
  * @brief Methods for read and write notifications from/to database
26 24
  *  or for formatting notifications

+ 0
- 2
src/Core/PConfig.php View File

@@ -11,8 +11,6 @@ namespace Friendica\Core;
11 11
 use Friendica\App;
12 12
 use Friendica\BaseObject;
13 13
 
14
-require_once 'include/dba.php';
15
-
16 14
 /**
17 15
  * @brief Management of user configuration storage
18 16
  * Note:

+ 0
- 3
src/Core/Session/CacheSessionHandler.php View File

@@ -8,9 +8,6 @@ use Friendica\Core\Logger;
8 8
 use Friendica\Core\Session;
9 9
 use SessionHandlerInterface;
10 10
 
11
-require_once 'boot.php';
12
-require_once 'include/text.php';
13
-
14 11
 /**
15 12
  * SessionHandler using Friendica Cache
16 13
  *

+ 0
- 4
src/Core/Session/DatabaseSessionHandler.php View File

@@ -8,10 +8,6 @@ use Friendica\Core\Session;
8 8
 use Friendica\Database\DBA;
9 9
 use SessionHandlerInterface;
10 10
 
11
-require_once 'boot.php';
12
-require_once 'include/dba.php';
13
-require_once 'include/text.php';
14
-
15 11
 /**
16 12
  * SessionHandler using database
17 13
  *

+ 0
- 2
src/Core/Theme.php View File

@@ -9,8 +9,6 @@ namespace Friendica\Core;
9 9
 use Friendica\Core\Logger;
10 10
 use Friendica\Core\System;
11 11
 
12
-require_once 'boot.php';
13
-
14 12
 /**
15 13
  * Some functions to handle themes
16 14
  */

+ 0
- 2
src/Core/UserImport.php View File

@@ -13,8 +13,6 @@ use Friendica\Model\Photo;
13 13
 use Friendica\Object\Image;
14 14
 use Friendica\Util\Strings;
15 15
 
16
-require_once "include/dba.php";
17
-
18 16
 /**
19 17
  * @brief UserImport class
20 18
  */

+ 0
- 2
src/Core/Worker.php View File

@@ -11,8 +11,6 @@ use Friendica\Model\Process;
11 11
 use Friendica\Util\DateTimeFormat;
12 12
 use Friendica\Util\Network;
13 13
 
14
-require_once 'include/dba.php';
15
-
16 14
 /**
17 15
  * @file src/Core/Worker.php
18 16
  *

+ 0
- 2
src/Database/DBA.php View File

@@ -16,8 +16,6 @@ use PDO;
16 16
 use PDOException;
17 17
 use PDOStatement;
18 18
 
19
-require_once 'include/dba.php';
20
-
21 19
 /**
22 20
  * @class MySQL database class
23 21
  *

+ 0
- 5
src/Database/DBStructure.php View File

@@ -12,11 +12,6 @@ use Friendica\Core\L10n;
12 12
 use Friendica\Core\Logger;
13 13
 use Friendica\Util\DateTimeFormat;
14 14
 
15
-require_once 'boot.php';
16
-require_once 'include/dba.php';
17
-require_once 'include/enotify.php';
18
-require_once 'include/text.php';
19
-
20 15
 /**
21 16
  * @brief This class contain functions for the database management
22 17
  *

+ 0
- 2
src/Database/PostUpdate.php View File

@@ -13,8 +13,6 @@ use Friendica\Model\ItemURI;
13 13
 use Friendica\Model\PermissionSet;
14 14
 use Friendica\Database\DBA;
15 15
 
16
-require_once 'include/dba.php';
17
-
18 16
 /**
19 17
  * Post update functions
20 18
  */

+ 0
- 2
src/Model/APContact.php View File

@@ -16,8 +16,6 @@ use Friendica\Util\JsonLD;
16 16
 use Friendica\Util\DateTimeFormat;
17 17
 use Friendica\Util\Strings;
18 18
 
19
-require_once 'boot.php';
20
-
21 19
 class APContact extends BaseObject
22 20
 {
23 21
 	/**

+ 0
- 6
src/Model/Contact.php View File

@@ -27,10 +27,6 @@ use Friendica\Util\DateTimeFormat;
27 27
 use Friendica\Util\Network;
28 28
 use Friendica\Util\Strings;
29 29
 
30
-require_once 'boot.php';
31
-require_once 'include/dba.php';
32
-require_once 'include/text.php';
33
-
34 30
 /**
35 31
  * @brief functions for interacting with a contact
36 32
  */
@@ -1376,8 +1372,6 @@ class Contact extends BaseObject
1376 1372
 	{
1377 1373
 		$a = self::getApp();
1378 1374
 
1379
-		require_once 'include/conversation.php';
1380
-
1381 1375
 		$cid = Self::getIdForURL($contact_url);
1382 1376
 
1383 1377
 		$contact = DBA::selectFirst('contact', ['contact-type', 'network'], ['id' => $cid]);

+ 0
- 2
src/Model/Conversation.php View File

@@ -10,8 +10,6 @@ use Friendica\Core\Protocol;
10 10
 use Friendica\Database\DBA;
11 11
 use Friendica\Util\DateTimeFormat;
12 12
 
13
-require_once "include/dba.php";
14
-
15 13
 class Conversation
16 14
 {
17 15
 	/*

+ 0
- 4
src/Model/Event.php View File

@@ -19,10 +19,6 @@ use Friendica\Util\DateTimeFormat;
19 19
 use Friendica\Util\Map;
20 20
 use Friendica\Util\XML;
21 21
 
22
-require_once 'boot.php';
23
-require_once 'include/dba.php';
24
-require_once 'include/items.php';
25
-
26 22
 /**
27 23
  * @brief functions for interacting with the event database table
28 24
  */

+ 0
- 2
src/Model/GContact.php View File

@@ -19,8 +19,6 @@ use Friendica\Util\DateTimeFormat;
19 19
 use Friendica\Util\Network;
20 20
 use Friendica\Util\Strings;
21 21
 
22
-require_once 'include/dba.php';
23
-
24 22
 /**
25 23
  * @brief This class handles GlobalContact related functions
26 24
  */

+ 0
- 4
src/Model/Group.php View File

@@ -12,10 +12,6 @@ use Friendica\Core\Renderer;
12 12
 use Friendica\Database\DBA;
13 13
 use Friendica\Util\Security;
14 14
 
15
-require_once 'boot.php';
16
-require_once 'include/dba.php';
17
-require_once 'include/text.php';
18
-
19 15
 /**
20 16
  * @brief functions for interacting with the group database table
21 17
  */

+ 0
- 4
src/Model/Item.php View File

@@ -36,10 +36,6 @@ use Friendica\Util\Security;
36 36
 use Friendica\Util\Strings;
37 37
 use Text_LanguageDetect;
38 38
 
39
-require_once 'boot.php';
40
-require_once 'include/items.php';
41
-require_once 'include/text.php';
42
-
43 39
 class Item extends BaseObject
44 40
 {
45 41
 	// Posting types, inspired by https://www.w3.org/TR/activitystreams-vocabulary/#object-types

+ 0
- 4
src/Model/ItemContent.php View File

@@ -11,10 +11,6 @@ use Friendica\Content\Text;
11 11
 use Friendica\Core\PConfig;
12 12
 use Friendica\Core\Protocol;
13 13
 
14
-require_once 'boot.php';
15
-require_once 'include/items.php';
16
-require_once 'include/text.php';
17
-
18 14
 class ItemContent extends BaseObject
19 15
 {
20 16
 	/**

+ 0
- 2
src/Model/ItemURI.php View File

@@ -9,8 +9,6 @@ namespace Friendica\Model;
9 9
 use Friendica\BaseObject;
10 10
 use Friendica\Database\DBA;
11 11
 
12
-require_once 'boot.php';
13
-
14 12
 class ItemURI extends BaseObject
15 13
 {
16 14
 	/**

+ 0
- 2
src/Model/Mail.php View File

@@ -13,8 +13,6 @@ use Friendica\Database\DBA;
13 13
 use Friendica\Network\Probe;
14 14
 use Friendica\Util\DateTimeFormat;
15 15
 
16
-require_once 'include/dba.php';
17
-
18 16
 /**
19 17
  * Class to handle private messages
20 18
  */

+ 0
- 2
src/Model/PermissionSet.php View File

@@ -7,8 +7,6 @@ namespace Friendica\Model;
7 7
 use Friendica\BaseObject;
8 8
 use Friendica\Database\DBA;
9 9
 
10
-require_once 'include/dba.php';
11
-
12 10
 /**
13 11
  * @brief functions for interacting with the permission set of an object (item, photo, event, ...)
14 12
  */

+ 0
- 2
src/Model/Photo.php View File

@@ -16,8 +16,6 @@ use Friendica\Util\DateTimeFormat;
16 16
 use Friendica\Util\Network;
17 17
 use Friendica\Util\Security;
18 18
 
19
-require_once 'include/dba.php';
20
-
21 19
 /**
22 20
  * Class to handle photo dabatase table
23 21
  */

+ 0
- 2
src/Model/Process.php View File

@@ -8,8 +8,6 @@ use Friendica\BaseObject;
8 8
 use Friendica\Database\DBA;
9 9
 use Friendica\Util\DateTimeFormat;
10 10
 
11
-require_once 'include/dba.php';
12
-
13 11
 /**
14 12
  * @brief functions for interacting with a process
15 13
  */

+ 0
- 2
src/Model/Profile.php View File

@@ -28,8 +28,6 @@ use Friendica\Util\Proxy as ProxyUtils;
28 28
 use Friendica\Util\Strings;
29 29
 use Friendica\Util\Temporal;
30 30
 
31
-require_once 'include/dba.php';
32
-
33 31
 class Profile
34 32
 {
35 33
 	/**

+ 0
- 2
src/Model/PushSubscriber.php View File

@@ -9,8 +9,6 @@ use Friendica\Core\Worker;
9 9
 use Friendica\Database\DBA;
10 10
 use Friendica\Util\DateTimeFormat;
11 11
 
12
-require_once 'include/dba.php';
13
-
14 12
 class PushSubscriber
15 13
 {
16 14
 	/**

+ 0
- 2
src/Model/Queue.php View File

@@ -9,8 +9,6 @@ use Friendica\Core\Logger;
9 9
 use Friendica\Database\DBA;
10 10
 use Friendica\Util\DateTimeFormat;
11 11
 
12
-require_once 'include/dba.php';
13
-
14 12
 class Queue
15 13
 {
16 14
 	/**

+ 0
- 4
src/Model/Term.php View File

@@ -7,10 +7,6 @@ namespace Friendica\Model;
7 7
 use Friendica\Core\System;
8 8
 use Friendica\Database\DBA;
9 9
 
10
-require_once 'boot.php';
11
-require_once 'include/conversation.php';
12
-require_once 'include/dba.php';
13
-
14 10
 class Term
15 11
 {
16 12
 	public static function tagTextFromItemId($itemid)

+ 0
- 4
src/Model/User.php View File

@@ -24,10 +24,6 @@ use Friendica\Util\Network;
24 24
 use Friendica\Util\Strings;
25 25
 use LightOpenID;
26 26
 
27
-require_once 'boot.php';
28
-require_once 'include/dba.php';
29
-require_once 'include/enotify.php';
30
-require_once 'include/text.php';
31 27
 /**
32 28
  * @brief This class handles User related functions
33 29
  */

+ 0
- 3
src/Module/Hashtag.php View File

@@ -9,9 +9,6 @@ use Friendica\Core\System;
9 9
 use Friendica\Database\DBA;
10 10
 use Friendica\Util\Strings;
11 11
 
12
-require_once 'include/dba.php';
13
-require_once 'include/text.php';
14
-
15 12
 /**
16 13
  * Hashtag module.
17 14
  */

+ 0
- 3
src/Module/Login.php View File

@@ -20,9 +20,6 @@ use Friendica\Util\Network;
20 20
 use Friendica\Util\Strings;
21 21
 use LightOpenID;
22 22
 
23
-require_once 'boot.php';
24
-require_once 'include/text.php';
25
-
26 23
 /**
27 24
  * Login module
28 25
  *

+ 0
- 2
src/Module/Logout.php View File

@@ -10,8 +10,6 @@ use Friendica\Core\Authentication;
10 10
 use Friendica\Core\L10n;
11 11
 use Friendica\Core\System;
12 12
 
13
-require_once 'boot.php';
14
-
15 13
 /**
16 14
  * Logout module
17 15
  *

+ 0
- 2
src/Network/FKOAuthDataStore.php View File

@@ -19,8 +19,6 @@ use OAuthToken;
19 19
 define('REQUEST_TOKEN_DURATION', 300);
20 20
 define('ACCESS_TOKEN_DURATION', 31536000);
21 21
 
22
-require_once 'include/dba.php';
23
-
24 22
 /**
25 23
  * @brief OAuthDataStore class
26 24
  */

+ 0
- 2
src/Network/Probe.php View File

@@ -28,8 +28,6 @@ use Friendica\Util\Strings;
28 28
 use Friendica\Util\XML;
29 29
 use DomXPath;
30 30
 
31
-require_once 'include/dba.php';
32
-
33 31
 /**
34 32
  * @brief This class contain functions for probing URL
35 33
  *

+ 0
- 5
src/Object/Post.php View File

@@ -24,11 +24,6 @@ use Friendica\Util\Proxy as ProxyUtils;
24 24
 use Friendica\Util\Strings;
25 25
 use Friendica\Util\Temporal;
26 26
 
27
-require_once 'include/dba.php';
28
-require_once 'include/text.php';
29
-require_once 'boot.php';
30
-require_once 'include/conversation.php';
31
-
32 27
 /**
33 28
  * An item
34 29
  */

+ 0
- 3
src/Object/Thread.php View File

@@ -10,9 +10,6 @@ use Friendica\Core\Protocol;
10 10
 use Friendica\Object\Post;
11 11
 use Friendica\Util\Security;
12 12
 
13
-require_once 'boot.php';
14
-require_once 'include/text.php';
15
-
16 13
 /**
17 14
  * A list of threads
18 15
  *

+ 0
- 6
src/Protocol/DFRN.php View File

@@ -37,12 +37,6 @@ use Friendica\Util\XML;
37 37
 use HTMLPurifier;
38 38
 use HTMLPurifier_Config;
39 39
 
40
-require_once 'boot.php';
41
-require_once 'include/dba.php';
42
-require_once "include/enotify.php";
43
-require_once "include/items.php";
44
-require_once "include/text.php";
45
-
46 40
 /**
47 41
  * @brief This class contain functions to create and send DFRN XML files
48 42
  */

+ 0
- 0
src/Protocol/Diaspora.php View File


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save