/// @TODO Get rid of this, include/datetime.php should care about it by itself
$a = get_app();
- require_once('include/datetime.php');
+ require_once 'include/datetime.php';
if ($contact['network'] === NETWORK_OSTATUS) {
- require_once('include/ostatus.php');
+ require_once 'include/ostatus.php';
// create an unfollow slap
$item = array();
$slap = ostatus::salmon($item, $user);
if ((x($contact,'notify')) && (strlen($contact['notify']))) {
- require_once('include/salmon.php');
+ require_once 'include/salmon.php';
slapper($user,$contact['notify'],$slap);
}
} elseif ($contact['network'] === NETWORK_DIASPORA) {
- require_once('include/diaspora.php');
+ require_once 'include/diaspora.php';
Diaspora::send_unshare($user,$contact);
} elseif ($contact['network'] === NETWORK_DFRN) {
- require_once('include/dfrn.php');
+ require_once 'include/dfrn.php';
dfrn::deliver($user,$contact,'placeholder', 1);
}
*/
function posts_from_gcontact(App $a, $gcontact_id) {
- require_once('include/conversation.php');
+ require_once 'include/conversation.php';
// There are no posts with "uid = 0" with connector networks
// This speeds up the query a lot
*/
function posts_from_contact_url(App $a, $contact_url) {
- require_once('include/conversation.php');
+ require_once 'include/conversation.php';
// There are no posts with "uid = 0" with connector networks
// This speeds up the query a lot
* @brief Methods for read and write notifications from/to database
* or for formatting notifications
*/
-require_once('include/html2plain.php');
-require_once("include/datetime.php");
-require_once("include/bbcode.php");
+require_once 'include/html2plain.php';
+require_once 'include/datetime.php';
+require_once 'include/bbcode.php';
/**
* @brief Methods for read and write notifications from/to database
use League\HTMLToMarkdown\HtmlConverter;
-require_once "include/oembed.php";
-require_once "include/event.php";
-require_once "library/markdown.php";
-require_once "include/html2bbcode.php";
-require_once "include/bbcode.php";
+require_once 'include/oembed.php';
+require_once 'include/event.php';
+require_once 'library/markdown.php';
+require_once 'include/html2bbcode.php';
+require_once 'include/bbcode.php';
/**
* @brief Callback function to replace a Diaspora style mention in a mention for Friendica
function cronjobs_run(&$argv, &$argc){
global $a;
- require_once('include/datetime.php');
- require_once('include/ostatus.php');
- require_once('include/post_update.php');
- require_once('mod/nodeinfo.php');
- require_once('include/photos.php');
- require_once('include/user.php');
- require_once('include/socgraph.php');
require_once('include/Probe.php');
+ require_once 'include/datetime.php';
+ require_once 'include/ostatus.php';
+ require_once 'include/post_update.php';
+ require_once 'mod/nodeinfo.php';
+ require_once 'include/photos.php';
+ require_once 'include/user.php';
+ require_once 'include/socgraph.php';
// No parameter set? So return
if ($argc <= 1) {
use Friendica\App;
use Friendica\Core\Config;
-require_once('include/queue_fn.php');
-require_once('include/html2plain.php');
require_once('include/Scrape.php');
-require_once('include/diaspora.php');
-require_once('include/ostatus.php');
-require_once('include/dfrn.php');
+require_once 'include/queue_fn.php';
+require_once 'include/html2plain.php';
+require_once 'include/diaspora.php';
+require_once 'include/ostatus.php';
+require_once 'include/dfrn.php';
function delivery_run(&$argv, &$argc){
global $a;
- require_once('include/datetime.php');
- require_once('include/items.php');
- require_once('include/bbcode.php');
- require_once('include/email.php');
+ require_once 'include/datetime.php';
+ require_once 'include/items.php';
+ require_once 'include/bbcode.php';
+ require_once 'include/email.php';
if ($argc < 3) {
return;
$public_message = true;
if (!($mail || $fsuggest || $relocate)) {
- require_once('include/group.php');
+ require_once 'include/group.php';
$parent = $items[0];
function parse_event($h) {
require_once('include/Scrape.php');
- require_once('include/html2bbcode');
+ require_once 'include/html2bbcode';
$h = '<html><body>' . $h . '</body></html>';
use Friendica\App;
require_once("include/Scrape.php");
-require_once("include/socgraph.php");
-require_once('include/group.php');
-require_once('include/salmon.php');
-require_once('include/ostatus.php');
-require_once("include/Photo.php");
-require_once('include/diaspora.php');
+require_once 'include/socgraph.php';
+require_once 'include/group.php';
+require_once 'include/salmon.php';
+require_once 'include/ostatus.php';
+require_once 'include/Photo.php';
+require_once 'include/diaspora.php';
function update_contact($id) {
/*
use Friendica\Core\Config;
require_once('include/Scrape.php');
-require_once('include/socgraph.php');
-require_once('include/datetime.php');
+require_once 'include/socgraph.php';
+require_once 'include/datetime.php';
function gprobe_run(&$argv, &$argc){
if ($argc != 2) {
use Friendica\App;
use Friendica\Core\Config;
-require_once('include/queue_fn.php');
-require_once('include/html2plain.php');
require_once('include/Scrape.php');
-require_once('include/diaspora.php');
-require_once('include/ostatus.php');
-require_once('include/salmon.php');
+require_once 'include/queue_fn.php';
+require_once 'include/html2plain.php';
+require_once 'include/diaspora.php';
+require_once 'include/ostatus.php';
+require_once 'include/salmon.php';
/*
* This file was at one time responsible for doing all deliveries, but this caused
function notifier_run(&$argv, &$argc){
global $a;
- require_once('include/datetime.php');
- require_once('include/items.php');
- require_once('include/bbcode.php');
- require_once('include/email.php');
+ require_once 'include/datetime.php';
+ require_once 'include/items.php';
+ require_once 'include/bbcode.php';
+ require_once 'include/email.php';
if ($argc < 3) {
return;
if (!$r) {
return;
}
- require_once('include/Contact.php');
+ require_once 'include/Contact.php';
foreach ($r as $contact) {
terminate_friendship($user, $self, $contact);
}
$slap = ostatus::salmon($target_item,$owner);
- require_once('include/group.php');
+ require_once 'include/group.php';
$parent = $items[0];
use Friendica\App;
use Friendica\Core\Config;
-
-require_once("include/Contact.php");
-require_once("include/threads.php");
-require_once("include/html2bbcode.php");
-require_once("include/bbcode.php");
-require_once("include/items.php");
-require_once("mod/share.php");
-require_once("include/enotify.php");
-require_once("include/socgraph.php");
-require_once("include/Photo.php");
require_once("include/Scrape.php");
-require_once("include/follow.php");
-require_once("include/api.php");
-require_once("mod/proxy.php");
-require_once("include/xml.php");
+
+require_once 'include/Contact.php';
+require_once 'include/threads.php';
+require_once 'include/html2bbcode.php';
+require_once 'include/bbcode.php';
+require_once 'include/items.php';
+require_once 'mod/share.php';
+require_once 'include/enotify.php';
+require_once 'include/socgraph.php';
+require_once 'include/Photo.php';
+require_once 'include/follow.php';
+require_once 'include/api.php';
+require_once 'mod/proxy.php';
+require_once 'include/xml.php';
/**
* @brief This class contain functions for the OStatus protocol
<?php
-require_once('include/crypto.php');
+require_once 'include/crypto.php';
require_once('include/Probe.php');
function get_salmon_key($uri, $keyhash) {
use Friendica\App;
use Friendica\Core\Config;
-
-require_once('include/datetime.php');
require_once("include/Scrape.php");
-require_once("include/network.php");
-require_once("include/html2bbcode.php");
-require_once("include/Contact.php");
-require_once("include/Photo.php");
+
+require_once 'include/datetime.php';
+require_once 'include/network.php';
+require_once 'include/html2bbcode.php';
+require_once 'include/Contact.php';
+require_once 'include/Photo.php';
/**
* @brief Fetch POCO data
use Friendica\App;
-require_once('include/Contact.php');
-require_once('include/socgraph.php');
-require_once('include/contact_selectors.php');
require_once('include/Scrape.php');
-require_once('mod/proxy.php');
-require_once('include/Photo.php');
+require_once 'include/Contact.php';
+require_once 'include/socgraph.php';
+require_once 'include/contact_selectors.php';
+require_once 'mod/proxy.php';
+require_once 'include/Photo.php';
function contacts_init(App $a) {
if (! local_user()) {
}
}
- require_once('include/group.php');
- require_once('include/contact_widgets.php');
+ require_once 'include/group.php';
+ require_once 'include/contact_widgets.php';
if ($_GET['nets'] == "all") {
$_GET['nets'] = "";
'$baseurl' => App::get_baseurl(true),
));
- require_once('include/contact_selectors.php');
+ require_once 'include/contact_selectors.php';
$tpl = get_markup_template("contact_edit.tpl");
use Friendica\App;
-require_once('include/enotify.php');
-require_once('include/group.php');
require_once('include/Probe.php');
+require_once 'include/enotify.php';
+require_once 'include/group.php';
function dfrn_confirm_post(App $a, $handsfree = null) {
* worried about key leakage than anybody cracking it.
*
*/
- require_once('include/crypto.php');
+ require_once 'include/crypto.php';
$res = new_keypair(4096);
*
*/
- require_once('include/Photo.php');
+ require_once 'include/Photo.php';
update_contact_avatar($contact['photo'],$uid,$contact_id);
if ((isset($new_relation) && $new_relation == CONTACT_IS_FRIEND)) {
if (($contact) && ($contact['network'] === NETWORK_DIASPORA)) {
- require_once('include/diaspora.php');
+ require_once 'include/diaspora.php';
$ret = Diaspora::send_share($user[0],$r[0]);
logger('share returns: ' . $ret);
}
if((dbm::is_result($r)) && ($r[0]['hide-friends'] == 0) && ($activity) && (! $hidden)) {
- require_once('include/items.php');
+ require_once 'include/items.php';
$self = q("SELECT * FROM `contact` WHERE `self` = 1 AND `uid` = %d LIMIT 1",
intval($uid)
$photo = App::get_baseurl() . '/images/person-175.jpg';
}
- require_once("include/Photo.php");
+ require_once 'include/Photo.php';
update_contact_avatar($photo,$local_uid,$dfrn_record);
if((dbm::is_result($r)) && ($r[0]['hide-friends'] == 0)) {
- require_once('include/items.php');
+ require_once 'include/items.php';
$self = q("SELECT * FROM `contact` WHERE `self` = 1 AND `uid` = %d LIMIT 1",
intval($local_uid)
use Friendica\App;
-require_once('include/enotify.php');
require_once('include/Scrape.php');
require_once('include/Probe.php');
-require_once('include/group.php');
+require_once 'include/enotify.php';
+require_once 'include/group.php';
function dfrn_request_init(App $a) {
return; // NOTREACHED
}
- require_once('include/Scrape.php');
-
$parms = Probe::profile(($hcard) ? $hcard : $url);
if (! count($parms)) {
}
if($auto_confirm) {
- require_once('mod/dfrn_confirm.php');
+ require_once 'mod/dfrn_confirm.php';
$handsfree = array(
'uid' => $r[0]['uid'],
'node' => $r[0]['nickname'],
use Friendica\App;
require_once('include/Scrape.php');
-require_once('include/follow.php');
-require_once('include/Contact.php');
-require_once('include/contact_selectors.php');
+require_once 'include/follow.php';
+require_once 'include/Contact.php';
+require_once 'include/contact_selectors.php';
function follow_content(App $a) {
$parent_contact = get_contact_details_by_url($thrparent[0]["author-link"]);
if (!isset($parent_contact["nick"])) {
- require_once 'include/Scrape.php';
$probed_contact = probe_url($thrparent[0]["author-link"]);
if ($probed_contact["network"] != NETWORK_FEED) {
$parent_contact = $probed_contact;
* @return boolean true if replaced, false if not replaced
*/
function handle_tag(App $a, &$body, &$inform, &$str_tags, $profile_uid, $tag, $network = "") {
- require_once 'include/Scrape.php';
require_once 'include/socgraph.php';
$replaced = false;
use Friendica\App;
require_once('include/Scrape.php');
-require_once('include/follow.php');
+require_once 'include/follow.php';
function ostatus_subscribe_content(App $a) {
return;
}
- require_once('include/bbcode.php');
- require_once('include/security.php');
- require_once('include/conversation.php');
+ require_once 'include/bbcode.php';
+ require_once 'include/security.php';
+ require_once 'include/conversation.php';
if (! x($a->data,'user')) {
notice( t('No photos selected') . EOL );
use Friendica\App;
-require_once("include/Contact.php");
+require_once 'include/Contact.php';
require_once('include/Probe.php');
function profiles_init(App $a) {
proc_run(PRIORITY_LOW, "include/directory.php", $url);
}
- require_once('include/profile_update.php');
+ require_once 'include/profile_update.php';
profile_change();
// Update the global contact for the user
return;
}
- require_once('include/items.php');
+ require_once 'include/items.php';
$self = q("SELECT * FROM `contact` WHERE `self` = 1 AND `uid` = %d LIMIT 1",
intval(local_user())
return;
}
- require_once('include/profile_selectors.php');
+ require_once 'include/profile_selectors.php';
$a->page['htmlhead'] .= replace_macros(get_markup_template('profed_head.tpl'), array(
use Friendica\App;
require_once('include/Scrape.php');
-require_once('include/follow.php');
+require_once 'include/follow.php';
function repair_ostatus_content(App $a) {