+++ /dev/null
-<?php
-
-use Friendica\Network\Probe;
-
-/**
- *
- * Probe a network address to discover what kind of protocols we need to communicate with it.
- *
- * Warning: this function is a bit touchy and there are some subtle dependencies within the logic flow.
- * Edit with care.
- *
- */
-
-/**
- *
- * PROBE_DIASPORA has a bias towards returning Diaspora information
- * while PROBE_NORMAL has a bias towards dfrn/zot - in the case where
- * an address (such as a Friendica address) supports more than one type
- * of network.
- *
- */
-
-define('PROBE_NORMAL', 0);
-define('PROBE_DIASPORA', 1);
-
-function probe_url($url, $mode = PROBE_NORMAL, $level = 1) {
-
- if ($mode == PROBE_DIASPORA)
- $network = NETWORK_DIASPORA;
- else
- $network = "";
-
- $data = Probe::uri($url, $network);
-
- return $data;
-}
use Friendica\App;
use Friendica\Core\Config;
-require_once('include/Scrape.php');
require_once 'include/queue_fn.php';
require_once 'include/html2plain.php';
+require_once 'include/probe.php';
require_once 'include/diaspora.php';
require_once 'include/ostatus.php';
require_once 'include/dfrn.php';
require_once 'include/items.php';
require_once 'include/bb2diaspora.php';
-require_once 'include/Scrape.php';
+require_once 'include/probe.php';
require_once 'include/Contact.php';
require_once 'include/Photo.php';
require_once 'include/socgraph.php';
@TODO old-lost code found?
function parse_event($h) {
- require_once('include/Scrape.php');
+ require_once 'include/probe.php';
require_once 'include/html2bbcode';
$h = '<html><body>' . $h . '</body></html>';
use Friendica\App;
-require_once("include/Scrape.php");
+require_once 'include/probe.php';
require_once 'include/socgraph.php';
require_once 'include/group.php';
require_once 'include/salmon.php';
use Friendica\Core\Config;
-require_once('include/Scrape.php');
+require_once 'include/probe.php';
require_once 'include/socgraph.php';
require_once 'include/datetime.php';
$convid = 0;
$reply = false;
- require_once('include/Scrape.php');
+ require_once 'include/probe.php';
$me = probe_url($replyto);
use Friendica\App;
use Friendica\Core\Config;
-require_once('include/Scrape.php');
require_once 'include/queue_fn.php';
require_once 'include/html2plain.php';
+require_once 'include/probe.php';
require_once 'include/diaspora.php';
require_once 'include/ostatus.php';
require_once 'include/salmon.php';
use Friendica\App;
use Friendica\Core\Config;
-require_once("include/Scrape.php");
use Friendica\Network\Probe;
require_once 'include/Contact.php';
require_once 'include/enotify.php';
require_once 'include/socgraph.php';
require_once 'include/Photo.php';
+require_once 'include/probe.php';
require_once 'include/follow.php';
require_once 'include/api.php';
require_once 'mod/proxy.php';
--- /dev/null
+<?php
+
+use Friendica\Network\Probe;
+
+/**
+ *
+ * Probe a network address to discover what kind of protocols we need to communicate with it.
+ *
+ * Warning: this function is a bit touchy and there are some subtle dependencies within the logic flow.
+ * Edit with care.
+ *
+ */
+
+/**
+ *
+ * PROBE_DIASPORA has a bias towards returning Diaspora information
+ * while PROBE_NORMAL has a bias towards dfrn/zot - in the case where
+ * an address (such as a Friendica address) supports more than one type
+ * of network.
+ *
+ */
+
+define('PROBE_NORMAL', 0);
+define('PROBE_DIASPORA', 1);
+
+function probe_url($url, $mode = PROBE_NORMAL, $level = 1) {
+
+ if ($mode == PROBE_DIASPORA)
+ $network = NETWORK_DIASPORA;
+ else
+ $network = "";
+
+ $data = Probe::uri($url, $network);
+
+ return $data;
+}
use Friendica\App;
use Friendica\Core\Config;
-require_once("include/Scrape.php");
use Friendica\Network\Probe;
require_once 'include/datetime.php';
+require_once 'include/probe.php';
require_once 'include/network.php';
require_once 'include/html2bbcode.php';
require_once 'include/Contact.php';
function update_gcontact_run(&$argv, &$argc) {
global $a;
- require_once 'include/Scrape.php';
+ require_once 'include/probe.php';
require_once 'include/socgraph.php';
logger('update_gcontact: start');
use Friendica\App;
-require_once('include/Scrape.php');
+require_once 'include/probe.php';
function acctlink_init(App $a) {
use Friendica\App;
use Friendica\Network\Probe;
-require_once('include/Scrape.php');
require_once 'include/Contact.php';
require_once 'include/socgraph.php';
require_once 'include/contact_selectors.php';
+require_once 'include/probe.php';
require_once 'mod/proxy.php';
require_once 'include/Photo.php';
*/
use Friendica\App;
-
-require_once('include/Scrape.php');
use Friendica\Network\Probe;
+
require_once 'include/enotify.php';
+require_once 'include/probe.php';
require_once 'include/group.php';
function dfrn_request_init(App $a) {
use Friendica\App;
-require_once('include/Scrape.php');
+require_once 'include/probe.php';
require_once 'include/follow.php';
require_once 'include/Contact.php';
require_once 'include/contact_selectors.php';
require_once 'include/threads.php';
require_once 'include/text.php';
require_once 'include/items.php';
-require_once 'include/Scrape.php';
+require_once 'include/probe.php';
require_once 'include/diaspora.php';
require_once 'include/Contact.php';
use Friendica\App;
-require_once('include/Scrape.php');
+require_once 'include/probe.php';
require_once 'include/follow.php';
function ostatus_subscribe_content(App $a) {
use Friendica\App;
-require_once('include/Scrape.php');
+require_once 'include/probe.php';
function probe_content(App $a) {
use Friendica\App;
-require_once('include/Scrape.php');
+require_once 'include/probe.php';
require_once 'include/follow.php';
function repair_ostatus_content(App $a) {