use Friendica\Database\DBStructure;
use Friendica\Module\Login;
-require_once 'include/network.php';
require_once 'include/text.php';
require_once 'include/datetime.php';
$text = "[url=".$match[2]."]".$match[2]."[/url]";
// if its not a picture then look if its a page that contains a picture link
- require_once("include/network.php");
-
$body = Network::fetchURL($match[1]);
$doc = new DOMDocument();
$text = "[img]".$match[2]."[/img]";
// if its not a picture then look if its a page that contains a picture link
- require_once("include/network.php");
-
$body = Network::fetchURL($match[1]);
$doc = new DOMDocument();
+++ /dev/null
-<?php
-/**
- * @file include/network.php
- */
-use Friendica\App;
-use Friendica\Core\Addon;
-use Friendica\Core\L10n;
-use Friendica\Core\System;
-use Friendica\Core\Config;
-use Friendica\Network\Probe;
-use Friendica\Object\Image;
-use Friendica\Util\Network;
-use Friendica\Util\XML;
-
-function parse_xml_string($s, $strict = true)
-{
- return Network::parseXmlString($s, $strict);
-}
-
-function scale_external_images($srctext, $include_link = true, $scale_replace = false)
-{
- return Network::scaleExternalImages($srctext, $include_link, $scale_replace);
-}
-
-function fix_contact_ssl_policy(&$contact, $new_policy)
-{
- Network::fixContactSslPolicy($contact, $new_policy);
-}
-
-function strip_tracking_query_params($url)
-{
- return Network::stripTrackingQueryParams($url);
-}
-
-function original_url($url, $depth = 1, $fetchbody = false)
-{
- return Network::originalURL($url, $depth, $fetchbody);
-}
-
-function short_link($url)
-{
- return Network::shortLink($url);
-}
-
-function json_return_and_die($x)
-{
- Network::jsonReturnAndDie($x);
-}
-
-function matching_url($url1, $url2)
-{
- return Network::matchingURL($url1, $url2);
-}
-
-function unParseUrl($parsed)
-{
- return Network::unParseURL($parsed);
-}
require_once "include/bbcode.php";
require_once "include/html2plain.php";
-require_once "include/network.php";
class BBCode
{
require_once 'include/datetime.php';
require_once 'include/dba.php';
-require_once 'include/network.php';
require_once 'include/html2bbcode.php';
/**
require_once 'boot.php';
require_once 'include/dba.php';
require_once 'include/enotify.php';
-require_once 'include/network.php';
require_once 'library/openid.php';
require_once 'include/text.php';
/**
/**
* @brief Check an URI for LRDD data
*
- * this is a replacement for the "lrdd" function in include/network.php.
+ * this is a replacement for the "lrdd" function.
* It isn't used in this class and has some redundancies in the code.
* When time comes we can check the existing calls for "lrdd" if we can rework them.
*
require_once 'include/dba.php';
require_once 'include/datetime.php';
-require_once 'include/network.php';
require_once 'include/html2bbcode.php';
class PortableContact
use DOMDocument;
require_once 'include/dba.php';
-require_once "include/network.php";
/**
* @brief Class with methods for extracting certain content from an url