1
1
Fork 0
friendica_2019-12_sharedHos.../include/network.php

59 lines
1.1 KiB
PHP
Raw Normal View History

<?php
/**
* @file include/network.php
*/
use Friendica\App;
use Friendica\Core\Addon;
2018-01-21 19:33:59 +01:00
use Friendica\Core\L10n;
2017-08-26 08:04:21 +02:00
use Friendica\Core\System;
2017-04-30 06:01:26 +02:00
use Friendica\Core\Config;
2017-05-07 20:44:30 +02:00
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);
}
2011-08-18 13:20:30 +02:00
function scale_external_images($srctext, $include_link = true, $scale_replace = false)
{
return Network::scaleExternalImages($srctext, $include_link, $scale_replace);
2012-02-25 23:22:51 +01:00
}
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);
}