]> git.mxchange.org Git - friendica.git/commitdiff
Remove old file
authorAdam Magness <adam.magness@gmail.com>
Sat, 27 Jan 2018 13:28:20 +0000 (08:28 -0500)
committerAdam Magness <adam.magness@gmail.com>
Sat, 27 Jan 2018 13:28:20 +0000 (08:28 -0500)
remove network.php and all require_once statements

boot.php
include/bbcode.php
include/network.php [deleted file]
src/Content/Text/BBCode.php
src/Model/GContact.php
src/Model/User.php
src/Network/Probe.php
src/Protocol/PortableContact.php
src/Util/ParseUrl.php

index ede6fc77b9be4c94f416f806501e16c074bccaf7..98db95227fa096256643e355099b1c086bba852e 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -32,7 +32,6 @@ use Friendica\Model\Contact;
 use Friendica\Database\DBStructure;
 use Friendica\Module\Login;
 
-require_once 'include/network.php';
 require_once 'include/text.php';
 require_once 'include/datetime.php';
 
index 0544c4c61665e1f285ee2122bfb56d7e582e5ec7..8f758ae616a9de291916ce3a7f3dfb3f2985fc3c 100644 (file)
@@ -748,8 +748,6 @@ function bb_RemovePictureLinks($match) {
                        $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();
@@ -805,8 +803,6 @@ function bb_CleanPictureLinksSub($match) {
                        $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();
diff --git a/include/network.php b/include/network.php
deleted file mode 100644 (file)
index 840991a..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-<?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);
-}
index 9162316d72444498f781fc4d535d7bce98527f45..664be933ae6642de82c6a2d5bbd951f34aa99e1f 100644 (file)
@@ -12,7 +12,6 @@ use Friendica\Util\ParseUrl;
 
 require_once "include/bbcode.php";
 require_once "include/html2plain.php";
-require_once "include/network.php";
 
 class BBCode
 {
index 231970820f99c32c081aeaf221f563b7e08d08ce..0991110316d28429a277b9a41f6a1c93a8d4bd05 100644 (file)
@@ -19,7 +19,6 @@ use Exception;
 
 require_once 'include/datetime.php';
 require_once 'include/dba.php';
-require_once 'include/network.php';
 require_once 'include/html2bbcode.php';
 
 /**
index bc14098d40145c73849617b8cd2791881fda9dbc..c767ec1b62f887e90fc6fac42724ed531e04ab23 100644 (file)
@@ -24,7 +24,6 @@ use Exception;
 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';
 /**
index db4f307b6b15f8e0dd67602640d7862d713dbaea..79b3840034d69a39a908a5af1afabf1e7dbce8f8 100644 (file)
@@ -209,7 +209,7 @@ class Probe
        /**
         * @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.
         *
index 35ec7fe9624b7fa29629eff0008d02bcb81b00c7..9ed48b1cf4f7fb5af5d7790b8c4056a6ad38a933 100644 (file)
@@ -23,7 +23,6 @@ use Exception;
 
 require_once 'include/dba.php';
 require_once 'include/datetime.php';
-require_once 'include/network.php';
 require_once 'include/html2bbcode.php';
 
 class PortableContact
index ba9b7ec1467c3eedbd09d95a375a55a191421668..1c5676aced15b516e3fd137d30cd4423e21f821d 100644 (file)
@@ -16,7 +16,6 @@ use DOMXPath;
 use DOMDocument;
 
 require_once 'include/dba.php';
-require_once "include/network.php";
 
 /**
  * @brief Class with methods for extracting certain content from an url