chdir($directory);
require_once "boot.php";
-require_once "include/dba.php";
$a = new App(dirname(__DIR__));
}
require_once "boot.php";
-require_once "include/dba.php";
$a = new App(dirname(__DIR__));
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');
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';
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);
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
*
use Friendica\Util\Proxy as ProxyUtils;
use Friendica\Util\Strings;
-require_once 'include/dba.php';
-
function acl_content(App $a)
{
if (!local_user()) {
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
*
use Friendica\Util\Proxy as ProxyUtils;
-require_once 'include/dba.php';
-
function allfriends_content(App $a)
{
$o = '';
use Friendica\Database\DBA;
use Friendica\Util\Security;
-require_once 'include/dba.php';
-
function attach_init(App $a)
{
if ($a->argc != 2) {
use Friendica\Module\Login;
use Friendica\Util\Strings;
-require_once 'include/conversation.php';
-require_once 'include/items.php';
-
function bookmarklet_init()
{
$_GET["mode"] = "minimal";
use Friendica\Util\Proxy as ProxyUtils;
use Friendica\Util\Strings;
-require_once 'include/dba.php';
-
function common_content(App $a)
{
$o = '';
}
}
- require_once 'include/conversation.php';
-
if (!$update) {
$tabs = [];
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;
use Friendica\Protocol\Diaspora;
use Friendica\Util\Strings;
-require_once 'include/items.php';
-
function dfrn_notify_post(App $a) {
Logger::log(__function__, Logger::TRACE);
use Friendica\Util\Strings;
use Friendica\Util\XML;
-require_once 'include/items.php';
-
function dfrn_poll_init(App $a)
{
Login::sessionAuth();
use Friendica\Util\Network;
use Friendica\Util\Strings;
-require_once 'include/enotify.php';
-
function dfrn_request_init(App $a)
{
if ($a->argc > 1) {
return;
}
- require_once 'include/conversation.php';
-
$o = '';
if ($update) {
use Friendica\Util\Strings;
use Friendica\Util\Temporal;
-require_once 'include/items.php';
-
function events_init(App $a)
{
if (!local_user()) {
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()) {
use Friendica\Model\FileTag;
use Friendica\Util\XML;
-require_once 'include/items.php';
-
function filer_content(App $a)
{
if (! local_user()) {
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;
// 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;
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;
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']));
use Friendica\Core\System;
use Friendica\Database\DBA;
-require_once "include/text.php";
-
function manage_post(App $a) {
if (! local_user()) {
use Friendica\Util\Strings;
use Friendica\Util\Temporal;
-require_once 'include/conversation.php';
-
function message_init(App $a)
{
$tabs = '';
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()) {
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']]];
return;
}
- require_once 'include/conversation.php';
-
$o = Profile::getTabs($a, true);
if (!$update) {
use Friendica\Util\Network;
use Friendica\Util\ParseUrl;
-require_once 'include/items.php';
-
function parse_url_content(App $a)
{
$text = null;
use Friendica\Util\Strings;
use Friendica\Util\XML;
-require_once 'include/items.php';
-
function photos_init(App $a) {
if ($a->argc > 1) {
return;
}
- require_once 'include/conversation.php';
-
if (empty($a->data['user'])) {
notice(L10n::t('No photos selected') . EOL);
return;
* @file mod/phpinfo.php
*/
-require_once 'boot.php';
-
function phpinfo_content()
{
if (!is_site_admin()) {
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
*
use Friendica\Util\Strings;
use Friendica\Util\XML;
-require_once 'include/items.php';
-
function poke_init(App $a)
{
if (!local_user()) {
return Login::form();
}
- require_once 'include/conversation.php';
- require_once 'include/items.php';
-
$groups = [];
$remote_cid = null;
use Friendica\Util\Strings;
use Friendica\Core\System;
-require_once 'include/items.php';
-
function hub_return($valid, $body)
{
if ($valid) {
use Friendica\Module\Tos;
use Friendica\Util\Strings;
-require_once 'include/enotify.php';
-
function register_post(App $a)
{
BaseModule::checkFormSecurityTokenRedirectOnError('/register', 'register');
use Friendica\Model\User;
use Friendica\Module\Login;
-require_once 'include/enotify.php';
-
function user_allow($hash)
{
$a = get_app();
use Friendica\Model\User;
use Friendica\Util\Strings;
-require_once 'include/enotify.php';
-
function removeme_post(App $a)
{
if (!local_user()) {
use Friendica\Util\Crypto;
use Friendica\Util\Strings;
-require_once 'include/items.php';
-
function salmon_post(App $a, $xml = '') {
if (empty($xml)) {
use Friendica\Model\Item;
use Friendica\Util\Strings;
-require_once 'include/conversation.php';
require_once 'mod/dirfind.php';
function search_saved_searches() {
use Friendica\Util\Strings;
use Friendica\Util\XML;
-require_once 'include/items.php';
-
function subthread_content(App $a) {
if (!local_user() && !remote_user()) {
use Friendica\Util\Strings;
use Friendica\Util\XML;
-require_once 'include/items.php';
-
function tagger_content(App $a) {
if (!local_user() && !remote_user()) {
use Friendica\Protocol\DFRN;
use Friendica\Util\Security;
-require_once 'include/items.php';
-
function videos_init(App $a)
{
if ($a->argc > 1) {
return;
}
- require_once 'include/conversation.php';
-
if (empty($a->data['user'])) {
notice(L10n::t('No videos selected') . EOL );
return;
use Friendica\Database\DBA;
use Friendica\Network\HTTPException\InternalServerErrorException;
-require_once 'boot.php';
-require_once 'include/text.php';
-
/**
*
* class: App
*/
namespace Friendica;
-require_once 'boot.php';
-
/**
* Basic object
*
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
*/
use Friendica\Model\Contact;
use Friendica\Model\Profile;
-require_once 'boot.php';
-require_once 'include/text.php';
-
class Nav
{
private static $selected = [
use Friendica\Util\Proxy as ProxyUtils;
use Friendica\Util\Strings;
-require_once 'include/dba.php';
-
/**
* Handles all OEmbed content fetching and replacement
*
use Friendica\Util\Strings;
use Friendica\Util\XML;
-require_once 'boot.php';
-require_once 'include/dba.php';
-
class Widget
{
/**
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
-require_once 'boot.php';
-require_once 'include/text.php';
-
/**
* TagCloud widget
*
use Friendica\Model\Item;
use Friendica\Util\Security;
-require_once 'include/dba.php';
-
/**
* TagCloud widget
*
use Friendica\BaseObject;
use Friendica\Core\Config;
-require_once 'include/dba.php';
-
/**
* @brief Arbitrary system configuration storage
*
use Friendica\BaseObject;
use Friendica\Database\DBA;
-require_once 'include/dba.php';
-
/**
* JustInTime Configuration Adapter
*
use Friendica\BaseObject;
use Friendica\Database\DBA;
-require_once 'include/dba.php';
-
/**
* JustInTime User Configuration Adapter
*
use Friendica\BaseObject;
use Friendica\Database\DBA;
-require_once 'include/dba.php';
-
/**
* Preload Configuration Adapter
*
use Friendica\BaseObject;
use Friendica\Database\DBA;
-require_once 'include/dba.php';
-
/**
* Preload User Configuration Adapter
*
use Friendica\Database\DBStructure;
use RuntimeException;
-require_once 'include/dba.php';
-
class AutomaticInstallation extends Console
{
protected function getHelp()
use Friendica\Database\DBStructure;
use RuntimeException;
-require_once 'boot.php';
-require_once 'include/dba.php';
-
/**
* @brief Performs database updates from the command line
*
use Friendica\Util\Strings;
use RuntimeException;
-require_once 'include/text.php';
-
/**
* @brief tool to silence accounts on the global community page
*
use Friendica\Core;
-require_once 'boot.php';
-require_once 'include/dba.php';
-
/**
* @brief Sets maintenance mode for this node
*
*/
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, '');
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").
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
use Friendica\App;
use Friendica\BaseObject;
-require_once 'include/dba.php';
-
/**
* @brief Management of user configuration storage
* Note:
use Friendica\Core\Session;
use SessionHandlerInterface;
-require_once 'boot.php';
-require_once 'include/text.php';
-
/**
* SessionHandler using Friendica Cache
*
use Friendica\Database\DBA;
use SessionHandlerInterface;
-require_once 'boot.php';
-require_once 'include/dba.php';
-require_once 'include/text.php';
-
/**
* SessionHandler using database
*
use Friendica\Core\Logger;
use Friendica\Core\System;
-require_once 'boot.php';
-
/**
* Some functions to handle themes
*/
use Friendica\Object\Image;
use Friendica\Util\Strings;
-require_once "include/dba.php";
-
/**
* @brief UserImport class
*/
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Network;
-require_once 'include/dba.php';
-
/**
* @file src/Core/Worker.php
*
use PDOException;
use PDOStatement;
-require_once 'include/dba.php';
-
/**
* @class MySQL database class
*
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
*
use Friendica\Model\PermissionSet;
use Friendica\Database\DBA;
-require_once 'include/dba.php';
-
/**
* Post update functions
*/
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Strings;
-require_once 'boot.php';
-
class APContact extends BaseObject
{
/**
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
*/
{
$a = self::getApp();
- require_once 'include/conversation.php';
-
$cid = Self::getIdForURL($contact_url);
$contact = DBA::selectFirst('contact', ['contact-type', 'network'], ['id' => $cid]);
use Friendica\Database\DBA;
use Friendica\Util\DateTimeFormat;
-require_once "include/dba.php";
-
class Conversation
{
/*
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
*/
use Friendica\Util\Network;
use Friendica\Util\Strings;
-require_once 'include/dba.php';
-
/**
* @brief This class handles GlobalContact related functions
*/
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
*/
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
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
{
/**
use Friendica\BaseObject;
use Friendica\Database\DBA;
-require_once 'boot.php';
-
class ItemURI extends BaseObject
{
/**
use Friendica\Network\Probe;
use Friendica\Util\DateTimeFormat;
-require_once 'include/dba.php';
-
/**
* Class to handle private messages
*/
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, ...)
*/
use Friendica\Util\Network;
use Friendica\Util\Security;
-require_once 'include/dba.php';
-
/**
* Class to handle photo dabatase table
*/
use Friendica\Database\DBA;
use Friendica\Util\DateTimeFormat;
-require_once 'include/dba.php';
-
/**
* @brief functions for interacting with a process
*/
use Friendica\Util\Strings;
use Friendica\Util\Temporal;
-require_once 'include/dba.php';
-
class Profile
{
/**
use Friendica\Database\DBA;
use Friendica\Util\DateTimeFormat;
-require_once 'include/dba.php';
-
class PushSubscriber
{
/**
use Friendica\Database\DBA;
use Friendica\Util\DateTimeFormat;
-require_once 'include/dba.php';
-
class Queue
{
/**
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)
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
*/
use Friendica\Database\DBA;
use Friendica\Util\Strings;
-require_once 'include/dba.php';
-require_once 'include/text.php';
-
/**
* Hashtag module.
*/
use Friendica\Util\Strings;
use LightOpenID;
-require_once 'boot.php';
-require_once 'include/text.php';
-
/**
* Login module
*
use Friendica\Core\L10n;
use Friendica\Core\System;
-require_once 'boot.php';
-
/**
* Logout module
*
define('REQUEST_TOKEN_DURATION', 300);
define('ACCESS_TOKEN_DURATION', 31536000);
-require_once 'include/dba.php';
-
/**
* @brief OAuthDataStore class
*/
use Friendica\Util\XML;
use DomXPath;
-require_once 'include/dba.php';
-
/**
* @brief This class contain functions for probing URL
*
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
*/
use Friendica\Object\Post;
use Friendica\Util\Security;
-require_once 'boot.php';
-require_once 'include/text.php';
-
/**
* A list of threads
*
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
*/
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
*
use Friendica\Util\Network;
use Friendica\Util\XML;
-require_once 'include/dba.php';
-require_once 'include/items.php';
-
/**
* @brief This class contain functions to import feeds
*
use Friendica\Util\Strings;
use Friendica\Util\XML;
-require_once 'include/dba.php';
-require_once 'include/items.php';
require_once 'mod/share.php';
-require_once 'include/enotify.php';
require_once 'include/api.php';
/**
use Friendica\Util\Strings;
use Friendica\Util\XML;
-require_once 'include/dba.php';
-
class PortableContact
{
/**
use Friendica\Database\DBA;
use Friendica\Model\User;
-require_once 'include/dba.php';
-
class ExAuth
{
private $bDebug;
use Friendica\Object\Image;
use Friendica\Util\Strings;
-require_once 'include/dba.php';
-
/**
* @brief Class with methods for extracting certain content from an url
*/
use Friendica\Core\Renderer;
use Friendica\Database\DBA;
-require_once 'boot.php';
-require_once 'include/text.php';
-
/**
* @brief Temporal class
*/
use Friendica\Model\Contact;
use Friendica\Util\DateTimeFormat;
-require_once 'include/dba.php';
-
class Cron
{
public static function execute($parameter = '', $generation = 0)
use Friendica\Protocol\PortableContact;
use Friendica\Util\Proxy as ProxyUtils;
-require_once 'include/dba.php';
require_once 'mod/nodeinfo.php';
class CronJobs
use Friendica\Core\Worker;
use Friendica\Database\DBA;
-require_once 'include/dba.php';
-
class DBClean {
public static function execute($stage = 0) {
use Friendica\Util\Strings;
use Friendica\Util\Network;
-require_once 'include/items.php';
-
class Delivery extends BaseObject
{
const MAIL = 'mail';
use Friendica\Database\DBA;
use Friendica\Model\Item;
-require_once 'include/dba.php';
-
class Expire
{
public static function execute($param = '', $hook_function = '')
{
$a = BaseObject::getApp();
- require_once 'include/items.php';
-
Hook::loadHooks();
if ($param == 'delete') {
use Friendica\Protocol\OStatus;
use Friendica\Protocol\Salmon;
-require_once 'include/dba.php';
-require_once 'include/items.php';
-
/*
* The notifier is typically called with:
*
use Friendica\Util\Strings;
use Friendica\Util\XML;
-require_once 'include/dba.php';
-
class OnePoll
{
public static function execute($contact_id = 0, $command = '')
{
$a = BaseObject::getApp();
- require_once 'include/items.php';
-
Logger::log('start');
$manual_id = 0;
use Friendica\Protocol\OStatus;
use Friendica\Util\Network;
-require_once 'include/items.php';
-
class PubSubPublish
{
public static function execute($pubsubpublish_id = 0)
use Friendica\Protocol\PortableContact;
use Friendica\Protocol\Salmon;
-require_once 'include/dba.php';
-require_once 'include/items.php';
-
class Queue
{
public static function execute($queue_id = 0)
use Friendica\Core\Protocol;
use Friendica\Model\Item;
-require_once 'include/dba.php';
-
class RemoveContact {
public static function execute($id) {
use Friendica\Database\DBA;
use Friendica\Model\Item;
-require_once 'include/dba.php';
-
class RemoveUser {
public static function execute($uid)
{
use Friendica\Core\Logger;
use Friendica\Model\Item;
-require_once "include/items.php";
-
class SpoolPost {
public static function execute() {
$path = get_spoolpath();
// Mocking that we can use CURL
$this->setFunctions(['curl_init' => true]);
- // needed because of "normalise_link"
- require_once __DIR__ . '/../../../include/text.php';
-
$install = new Installer();
$this->assertFalse($install->checkHtAccess('https://test'));
class CurlResultTest extends TestCase
{
- public function setUp()
- {
- parent::setUp();
-
- require_once __DIR__.'/../../../boot.php';
- require_once __DIR__.'/../../../include/text.php';
- }
-
/**
* @small
*/
use Friendica\Model\User;
use Friendica\Util\DateTimeFormat;
-require_once 'include/dba.php';
-
/**
*
* update.php - automatic system update
*/
use Friendica\Core\PConfig;
-require_once 'boot.php';
-
function get_scheme_info($scheme)
{
$theme = get_app()->getCurrentTheme();