New class "System"

This commit is contained in:
Michael 2017-08-26 06:04:21 +00:00
parent b0c26921ad
commit 3c24bed412
121 changed files with 197 additions and 2 deletions

View file

@ -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;

View file

@ -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.

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -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`,

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -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) {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -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");

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -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");

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -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 have changed in this diff Show more