Browse Source

New class "System"

pull/3658/head
Michael 4 years ago
parent
commit
3c24bed412
  1. 1
      boot.php
  2. 1
      include/Contact.php
  3. 1
      include/Photo.php
  4. 1
      include/Smilies.php
  5. 1
      include/api.php
  6. 1
      include/auth.php
  7. 1
      include/bb2diaspora.php
  8. 1
      include/bbcode.php
  9. 1
      include/contact_widgets.php
  10. 1
      include/conversation.php
  11. 1
      include/dbstructure.php
  12. 1
      include/delivery.php
  13. 1
      include/dfrn.php
  14. 1
      include/diaspora.php
  15. 1
      include/enotify.php
  16. 1
      include/event.php
  17. 1
      include/follow.php
  18. 1
      include/identity.php
  19. 1
      include/items.php
  20. 1
      include/like.php
  21. 1
      include/message.php
  22. 1
      include/nav.php
  23. 1
      include/network.php
  24. 1
      include/oauth.php
  25. 1
      include/oembed.php
  26. 1
      include/ostatus.php
  27. 1
      include/plugin.php
  28. 1
      include/poller.php
  29. 1
      include/pubsubpublish.php
  30. 1
      include/redir.php
  31. 1
      include/security.php
  32. 1
      include/socgraph.php
  33. 1
      include/tags.php
  34. 1
      include/text.php
  35. 1
      include/threads.php
  36. 1
      include/uimport.php
  37. 1
      index.php
  38. 1
      mod/admin.php
  39. 1
      mod/allfriends.php
  40. 1
      mod/bookmarklet.php
  41. 1
      mod/cal.php
  42. 1
      mod/contacts.php
  43. 1
      mod/content.php
  44. 1
      mod/delegate.php
  45. 1
      mod/dfrn_confirm.php
  46. 1
      mod/dfrn_poll.php
  47. 1
      mod/dfrn_request.php
  48. 1
      mod/dirfind.php
  49. 1
      mod/display.php
  50. 1
      mod/editpost.php
  51. 1
      mod/events.php
  52. 1
      mod/fbrowser.php
  53. 1
      mod/fetch.php
  54. 1
      mod/filerm.php
  55. 1
      mod/follow.php
  56. 1
      mod/friendica.php
  57. 1
      mod/group.php
  58. 1
      mod/hcard.php
  59. 1
      mod/help.php
  60. 1
      mod/home.php
  61. 1
      mod/ignored.php
  62. 1
      mod/install.php
  63. 1
      mod/invite.php
  64. 1
      mod/item.php
  65. 1
      mod/like.php
  66. 3
      mod/localtime.php
  67. 1
      mod/lostpass.php
  68. 1
      mod/manage.php
  69. 1
      mod/manifest.php
  70. 1
      mod/match.php
  71. 1
      mod/message.php
  72. 1
      mod/mood.php
  73. 1
      mod/msearch.php
  74. 1
      mod/navigation.php
  75. 1
      mod/network.php
  76. 1
      mod/nodeinfo.php
  77. 1
      mod/noscrape.php
  78. 1
      mod/notice.php
  79. 1
      mod/notify.php
  80. 1
      mod/oexchange.php
  81. 1
      mod/openid.php
  82. 1
      mod/opensearch.php
  83. 1
      mod/ostatus_subscribe.php
  84. 1
      mod/p.php
  85. 1
      mod/photos.php
  86. 1
      mod/ping.php
  87. 1
      mod/poke.php
  88. 1
      mod/profile.php
  89. 1
      mod/profile_photo.php
  90. 1
      mod/profiles.php
  91. 1
      mod/proxy.php
  92. 1
      mod/randprof.php
  93. 1
      mod/redir.php
  94. 1
      mod/register.php
  95. 1
      mod/regmod.php
  96. 1
      mod/removeme.php
  97. 1
      mod/repair_ostatus.php
  98. 3
      mod/rsd_xml.php
  99. 1
      mod/settings.php
  100. 1
      mod/starred.php

1
boot.php

@ -21,6 +21,7 @@
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php');
use Friendica\App;
use Friendica\Core\System;
use Friendica\Core\Config;
use Friendica\Util\Lock;

1
include/Contact.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
use Friendica\Network\Probe;
// Included here for completeness, but this is a very dangerous operation.

1
include/Photo.php

@ -5,6 +5,7 @@
*/
use Friendica\App;
use Friendica\Core\System;
require_once("include/photos.php");

1
include/Smilies.php

@ -6,6 +6,7 @@
*/
use Friendica\App;
use Friendica\Core\System;
/**
* This class contains functions to handle smiles

1
include/api.php

@ -7,6 +7,7 @@
*/
use Friendica\App;
use Friendica\Core\System;
use Friendica\Core\Config;
require_once 'include/HTTPExceptions.php';

1
include/auth.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
use Friendica\Core\Config;
require_once('include/security.php');

1
include/bb2diaspora.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
use Friendica\Network\Probe;
use League\HTMLToMarkdown\HtmlConverter;

1
include/bbcode.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
use Friendica\Core\Config;
require_once 'include/oembed.php';

1
include/contact_widgets.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
use Friendica\Core\Config;
require_once 'include/contact_selectors.php';

1
include/conversation.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
require_once "include/bbcode.php";
require_once "include/acl_selectors.php";

1
include/dbstructure.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
use Friendica\Core\Config;
require_once "boot.php";

1
include/delivery.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
use Friendica\Core\Config;
require_once 'include/queue_fn.php';

1
include/dfrn.php

@ -8,6 +8,7 @@
*/
use Friendica\App;
use Friendica\Core\System;
require_once("include/Contact.php");
require_once("include/ostatus.php");

1
include/diaspora.php

@ -9,6 +9,7 @@
*/
use Friendica\App;
use Friendica\Core\System;
use Friendica\Core\Config;
require_once 'include/items.php';

1
include/enotify.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
require_once('include/Emailer.php');
require_once('include/email.php');

1
include/event.php

@ -5,6 +5,7 @@
*/
use Friendica\App;
use Friendica\Core\System;
require_once 'include/bbcode.php';
require_once 'include/map.php';

1
include/follow.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
require_once 'include/probe.php';
require_once 'include/socgraph.php';

1
include/identity.php

@ -4,6 +4,7 @@
*/
use Friendica\App;
use Friendica\Core\System;
require_once 'include/ForumManager.php';
require_once 'include/bbcode.php';

1
include/items.php

@ -5,6 +5,7 @@
*/
use Friendica\App;
use Friendica\Core\System;
use Friendica\ParseUrl;
use Friendica\Util\Lock;
use Friendica\Core\Config;

1
include/like.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
require_once("include/diaspora.php");

1
include/message.php

@ -3,6 +3,7 @@
// send a private message
use Friendica\App;
use Friendica\Core\System;
function send_message($recipient=0, $body='', $subject='', $replyto=''){

1
include/nav.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
function nav(App $a) {

1
include/network.php

@ -5,6 +5,7 @@
*/
use Friendica\App;
use Friendica\Core\System;
use Friendica\Core\Config;
use Friendica\Network\Probe;

1
include/oauth.php

@ -6,6 +6,7 @@
*/
use Friendica\App;
use Friendica\Core\System;
define('REQUEST_TOKEN_DURATION', 300);
define('ACCESS_TOKEN_DURATION', 31536000);

1
include/oembed.php

@ -5,6 +5,7 @@
*/
use Friendica\App;
use Friendica\Core\System;
use Friendica\ParseUrl;
use Friendica\Core\Config;

1
include/ostatus.php

@ -4,6 +4,7 @@
*/
use Friendica\App;
use Friendica\Core\System;
use Friendica\Core\Config;
use Friendica\Network\Probe;

1
include/plugin.php

@ -6,6 +6,7 @@
*/
use Friendica\App;
use Friendica\Core\System;
/**
* @brief uninstalls an addon.

1
include/poller.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
use Friendica\Core\Config;
use Friendica\Util\Lock;

1
include/pubsubpublish.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
use Friendica\Core\Config;
require_once('include/items.php');

1
include/redir.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
function auto_redir(App $a, $contact_nick) {

1
include/security.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
/**
* @brief Calculate the hash that is needed for the "Friendica" cookie

1
include/socgraph.php

@ -8,6 +8,7 @@
*/
use Friendica\App;
use Friendica\Core\System;
use Friendica\Core\Config;
use Friendica\Network\Probe;

1
include/tags.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
function create_tags_from_item($itemid) {
$profile_base = App::get_baseurl();

1
include/text.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
require_once "include/template_processor.php";
require_once "include/friendica_smarty.php";

1
include/threads.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
function add_thread($itemid, $onlyshadow = false) {
$items = q("SELECT `uid`, `created`, `edited`, `commented`, `received`, `changed`, `wall`, `private`, `pubmail`,

1
include/uimport.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
require_once("include/Photo.php");
define("IMPORT_DEBUG", False);

1
index.php

@ -14,6 +14,7 @@
*/
use Friendica\App;
use Friendica\Core\System;
use Friendica\Core\Config;
require_once 'boot.php';

1
mod/admin.php

@ -7,6 +7,7 @@
*/
use Friendica\App;
use Friendica\Core\System;
use Friendica\Core\Config;
require_once("include/enotify.php");

1
mod/allfriends.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
require_once('include/socgraph.php');
require_once('include/Contact.php');

1
mod/bookmarklet.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
require_once('include/conversation.php');
require_once('include/items.php');

1
mod/cal.php

@ -7,6 +7,7 @@
*/
use Friendica\App;
use Friendica\Core\System;
require_once('include/event.php');
require_once('include/redir.php');

1
mod/contacts.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
use Friendica\Network\Probe;
require_once 'include/Contact.php';

1
mod/content.php

@ -16,6 +16,7 @@
// and 10-20 milliseconds to fetch all the child items.
use Friendica\App;
use Friendica\Core\System;
function content_content(App $a, $update = 0) {

1
mod/delegate.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
require_once('mod/settings.php');

1
mod/dfrn_confirm.php

@ -19,6 +19,7 @@
*/
use Friendica\App;
use Friendica\Core\System;
use Friendica\Network\Probe;
require_once 'include/enotify.php';

1
mod/dfrn_poll.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
require_once('include/items.php');
require_once('include/auth.php');

1
mod/dfrn_request.php

@ -13,6 +13,7 @@
*/
use Friendica\App;
use Friendica\Core\System;
use Friendica\Network\Probe;
require_once 'include/enotify.php';

1
mod/dirfind.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
require_once 'include/contact_widgets.php';
require_once 'include/probe.php';

1
mod/display.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
require_once('include/dfrn.php');

1
mod/editpost.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
require_once('include/acl_selectors.php');

1
mod/events.php

@ -5,6 +5,7 @@
*/
use Friendica\App;
use Friendica\Core\System;
require_once 'include/bbcode.php';
require_once 'include/datetime.php';

1
mod/fbrowser.php

@ -6,6 +6,7 @@
*/
use Friendica\App;
use Friendica\Core\System;
require_once('include/Photo.php');

1
mod/fetch.php

@ -4,6 +4,7 @@ This file is part of the Diaspora protocol. It is used for fetching single publi
*/
use Friendica\App;
use Friendica\Core\System;
require_once("include/crypto.php");
require_once("include/diaspora.php");

1
mod/filerm.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
function filerm_content(App $a) {

1
mod/follow.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
require_once 'include/probe.php';
require_once 'include/follow.php';

1
mod/friendica.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
use Friendica\Core\Config;
function friendica_init(App $a) {

1
mod/group.php

@ -6,6 +6,7 @@
*/
use Friendica\App;
use Friendica\Core\System;
function group_init(App $a) {
if (local_user()) {

1
mod/hcard.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
function hcard_init(App $a) {

1
mod/help.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
require_once('library/markdown.php');

1
mod/home.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
if(! function_exists('home_init')) {
function home_init(App $a) {

1
mod/ignored.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
function ignored_init(App $a) {

1
mod/install.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
require_once "include/Photo.php";

1
mod/invite.php

@ -8,6 +8,7 @@
*/
use Friendica\App;
use Friendica\Core\System;
require_once('include/email.php');

1
mod/item.php

@ -16,6 +16,7 @@
*/
use Friendica\App;
use Friendica\Core\System;
require_once 'include/crypto.php';
require_once 'include/enotify.php';

1
mod/like.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
require_once('include/security.php');
require_once('include/bbcode.php');

3
mod/localtime.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
require_once('include/datetime.php');
@ -47,4 +48,4 @@ function localtime_content(App $a) {
return $o;
}
}

1
mod/lostpass.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
require_once('include/email.php');
require_once('include/enotify.php');

1
mod/manage.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
require_once("include/text.php");

1
mod/manifest.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
use Friendica\Core\Config;
function manifest_content(App $a) {

1
mod/match.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
require_once('include/text.php');
require_once('include/socgraph.php');

1
mod/message.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
require_once('include/acl_selectors.php');
require_once('include/message.php');

1
mod/mood.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
require_once('include/security.php');
require_once('include/bbcode.php');

1
mod/msearch.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
function msearch_post(App $a) {

1
mod/navigation.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
require_once("include/nav.php");

1
mod/network.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
function network_init(App $a) {
if (! local_user()) {

1
mod/nodeinfo.php

@ -6,6 +6,7 @@
*/
use Friendica\App;
use Friendica\Core\System;
use Friendica\Core\Config;
require_once 'include/plugin.php';

1
mod/noscrape.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
function noscrape_init(App $a) {

1
mod/notice.php

@ -3,6 +3,7 @@
/* identi.ca -> friendica items permanent-url compatibility */
use Friendica\App;
use Friendica\Core\System;
function notice_init(App $a) {

1
mod/notify.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
require_once('include/NotificationsManager.php');

1
mod/oexchange.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
function oexchange_init(App $a) {

1
mod/openid.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
require_once('library/openid.php');

1
mod/opensearch.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
function opensearch_content(App $a) {

1
mod/ostatus_subscribe.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
require_once 'include/probe.php';
require_once 'include/follow.php';

1
mod/p.php

@ -4,6 +4,7 @@ This file is part of the Diaspora protocol. It is used for fetching single publi
*/
use Friendica\App;
use Friendica\Core\System;
require_once("include/diaspora.php");

1
mod/photos.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
use Friendica\Core\Config;
use Friendica\Network\Probe;

1
mod/ping.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
require_once('include/datetime.php');
require_once('include/bbcode.php');

1
mod/poke.php

@ -15,6 +15,7 @@
*/
use Friendica\App;
use Friendica\Core\System;
require_once('include/security.php');
require_once('include/bbcode.php');

1
mod/profile.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
require_once('include/contact_widgets.php');
require_once('include/redir.php');

1
mod/profile_photo.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
require_once("include/Photo.php");

1
mod/profiles.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
use Friendica\Network\Probe;
require_once 'include/Contact.php';

1
mod/proxy.php

@ -2,6 +2,7 @@
// Based upon "Privacy Image Cache" by Tobias Hößl <https://github.com/CatoTH/>
use Friendica\App;
use Friendica\Core\System;
define('PROXY_DEFAULT_TIME', 86400); // 1 Day

1
mod/randprof.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
function randprof_init(App $a) {
require_once('include/Contact.php');

1
mod/redir.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
function redir_init(App $a) {

1
mod/register.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
require_once('include/enotify.php');
require_once('include/bbcode.php');

1
mod/regmod.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
require_once('include/enotify.php');
require_once('include/user.php');

1
mod/removeme.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
function removeme_post(App $a) {

1
mod/repair_ostatus.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
require_once 'include/probe.php';
require_once 'include/follow.php';

3
mod/rsd_xml.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
function rsd_xml_content(App $a)
{
@ -22,4 +23,4 @@ function rsd_xml_content(App $a)
</rsd>';
killme();
}
}

1
mod/settings.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
require_once('include/group.php');
require_once('include/socgraph.php');

1
mod/starred.php

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Core\System;
function starred_init(App $a) {

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

Loading…
Cancel
Save