Move Probe to src

This commit is contained in:
Hypolite Petovan 2017-05-07 14:44:30 -04:00
parent 82b423c5ac
commit 36e515ee6d
15 changed files with 20 additions and 13 deletions

View File

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Network\Probe;
// Included here for completeness, but this is a very dangerous operation.
// It is the caller's responsibility to confirm the requestor's intent and
@ -363,7 +364,6 @@ function get_contact_details_by_addr($addr, $uid = -1) {
dbesc($addr));
if (!dbm::is_result($r)) {
require_once('include/Probe.php');
$data = Probe::uri($addr);
$profile = get_contact_details_by_url($data['url'], $uid);
@ -589,7 +589,6 @@ function get_contact($url, $uid = 0, $no_update = false) {
return 0;
}
require_once('include/Probe.php');
$data = Probe::uri($url);
// Last try in gcontact for unsupported networks

View File

@ -1,5 +1,6 @@
<?php
require_once('include/Probe.php');
use Friendica\Network\Probe;
/**
*

View File

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Network\Probe;
use League\HTMLToMarkdown\HtmlConverter;

View File

@ -2,11 +2,11 @@
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Network\Probe;
function cronjobs_run(&$argv, &$argc){
global $a;
require_once('include/Probe.php');
require_once 'include/datetime.php';
require_once 'include/ostatus.php';
require_once 'include/post_update.php';

View File

@ -6,9 +6,9 @@
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Network\Probe;
require_once("include/xml.php");
require_once('include/Probe.php');
/**
* @brief Curl wrapper

View File

@ -6,6 +6,7 @@
use Friendica\App;
use Friendica\Core\Config;
require_once("include/Scrape.php");
use Friendica\Network\Probe;
require_once 'include/Contact.php';
require_once 'include/threads.php';

View File

@ -1,7 +1,8 @@
<?php
use Friendica\Network\Probe;
require_once 'include/crypto.php';
require_once('include/Probe.php');
function get_salmon_key($uri, $keyhash) {
$ret = array();

View File

@ -10,6 +10,7 @@
use Friendica\App;
use Friendica\Core\Config;
require_once("include/Scrape.php");
use Friendica\Network\Probe;
require_once 'include/datetime.php';
require_once 'include/network.php';

View File

@ -1,6 +1,7 @@
<?php
use Friendica\App;
use Friendica\Network\Probe;
require_once('include/Scrape.php');
require_once 'include/Contact.php';

View File

@ -19,8 +19,8 @@
*/
use Friendica\App;
use Friendica\Network\Probe;
require_once('include/Probe.php');
require_once 'include/enotify.php';
require_once 'include/group.php';

View File

@ -15,7 +15,7 @@
use Friendica\App;
require_once('include/Scrape.php');
require_once('include/Probe.php');
use Friendica\Network\Probe;
require_once 'include/enotify.php';
require_once 'include/group.php';

View File

@ -2,6 +2,7 @@
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Network\Probe;
require_once 'include/Photo.php';
require_once 'include/photos.php';
@ -12,7 +13,6 @@ require_once 'include/security.php';
require_once 'include/redir.php';
require_once 'include/tags.php';
require_once 'include/threads.php';
require_once 'include/Probe.php';
function photos_init(App $a) {

View File

@ -1,9 +1,9 @@
<?php
use Friendica\App;
use Friendica\Network\Probe;
require_once 'include/Contact.php';
require_once('include/Probe.php');
function profiles_init(App $a) {

View File

@ -1,8 +1,7 @@
<?php
use Friendica\App;
require_once("include/Probe.php");
use Friendica\Network\Probe;
function webfinger_content(App $a) {

View File

@ -1,6 +1,9 @@
<?php
namespace Friendica\Network;
/**
* @file include/Probe.php
* @file src/Network/Probe.php
* @brief Functions for probing URL
*
*/