mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
Merge pull request #3445 from Hypolite/improvement/move-probe-to-src
Move Probe to src
This commit is contained in:
commit
6680ce1dd7
34 changed files with 168 additions and 223 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
use Friendica\App;
|
||||
|
||||
require_once('include/Scrape.php');
|
||||
require_once 'include/probe.php';
|
||||
|
||||
function acctlink_init(App $a) {
|
||||
|
||||
|
|
|
@ -1,13 +1,14 @@
|
|||
<?php
|
||||
|
||||
use Friendica\App;
|
||||
use Friendica\Network\Probe;
|
||||
|
||||
require_once('include/Contact.php');
|
||||
require_once('include/socgraph.php');
|
||||
require_once('include/contact_selectors.php');
|
||||
require_once('include/Scrape.php');
|
||||
require_once('mod/proxy.php');
|
||||
require_once('include/Photo.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';
|
||||
|
||||
function contacts_init(App $a) {
|
||||
if (! local_user()) {
|
||||
|
@ -27,8 +28,8 @@ function contacts_init(App $a) {
|
|||
}
|
||||
}
|
||||
|
||||
require_once('include/group.php');
|
||||
require_once('include/contact_widgets.php');
|
||||
require_once 'include/group.php';
|
||||
require_once 'include/contact_widgets.php';
|
||||
|
||||
if ($_GET['nets'] == "all") {
|
||||
$_GET['nets'] = "";
|
||||
|
@ -498,7 +499,7 @@ function contacts_content(App $a) {
|
|||
'$baseurl' => App::get_baseurl(true),
|
||||
));
|
||||
|
||||
require_once('include/contact_selectors.php');
|
||||
require_once 'include/contact_selectors.php';
|
||||
|
||||
$tpl = get_markup_template("contact_edit.tpl");
|
||||
|
||||
|
|
|
@ -19,10 +19,10 @@
|
|||
*/
|
||||
|
||||
use Friendica\App;
|
||||
use Friendica\Network\Probe;
|
||||
|
||||
require_once('include/enotify.php');
|
||||
require_once('include/group.php');
|
||||
require_once('include/Probe.php');
|
||||
require_once 'include/enotify.php';
|
||||
require_once 'include/group.php';
|
||||
|
||||
function dfrn_confirm_post(App $a, $handsfree = null) {
|
||||
|
||||
|
@ -154,7 +154,7 @@ function dfrn_confirm_post(App $a, $handsfree = null) {
|
|||
* worried about key leakage than anybody cracking it.
|
||||
*
|
||||
*/
|
||||
require_once('include/crypto.php');
|
||||
require_once 'include/crypto.php';
|
||||
|
||||
$res = new_keypair(4096);
|
||||
|
||||
|
@ -319,7 +319,7 @@ function dfrn_confirm_post(App $a, $handsfree = null) {
|
|||
*
|
||||
*/
|
||||
|
||||
require_once('include/Photo.php');
|
||||
require_once 'include/Photo.php';
|
||||
|
||||
update_contact_avatar($contact['photo'],$uid,$contact_id);
|
||||
|
||||
|
@ -435,7 +435,7 @@ function dfrn_confirm_post(App $a, $handsfree = null) {
|
|||
if ((isset($new_relation) && $new_relation == CONTACT_IS_FRIEND)) {
|
||||
|
||||
if (($contact) && ($contact['network'] === NETWORK_DIASPORA)) {
|
||||
require_once('include/diaspora.php');
|
||||
require_once 'include/diaspora.php';
|
||||
$ret = Diaspora::send_share($user[0],$r[0]);
|
||||
logger('share returns: ' . $ret);
|
||||
}
|
||||
|
@ -448,7 +448,7 @@ function dfrn_confirm_post(App $a, $handsfree = null) {
|
|||
|
||||
if((dbm::is_result($r)) && ($r[0]['hide-friends'] == 0) && ($activity) && (! $hidden)) {
|
||||
|
||||
require_once('include/items.php');
|
||||
require_once 'include/items.php';
|
||||
|
||||
$self = q("SELECT * FROM `contact` WHERE `self` = 1 AND `uid` = %d LIMIT 1",
|
||||
intval($uid)
|
||||
|
@ -672,7 +672,7 @@ function dfrn_confirm_post(App $a, $handsfree = null) {
|
|||
$photo = App::get_baseurl() . '/images/person-175.jpg';
|
||||
}
|
||||
|
||||
require_once("include/Photo.php");
|
||||
require_once 'include/Photo.php';
|
||||
|
||||
update_contact_avatar($photo,$local_uid,$dfrn_record);
|
||||
|
||||
|
@ -752,7 +752,7 @@ function dfrn_confirm_post(App $a, $handsfree = null) {
|
|||
|
||||
if((dbm::is_result($r)) && ($r[0]['hide-friends'] == 0)) {
|
||||
|
||||
require_once('include/items.php');
|
||||
require_once 'include/items.php';
|
||||
|
||||
$self = q("SELECT * FROM `contact` WHERE `self` = 1 AND `uid` = %d LIMIT 1",
|
||||
intval($local_uid)
|
||||
|
|
|
@ -13,11 +13,11 @@
|
|||
*/
|
||||
|
||||
use Friendica\App;
|
||||
use Friendica\Network\Probe;
|
||||
|
||||
require_once('include/enotify.php');
|
||||
require_once('include/Scrape.php');
|
||||
require_once('include/Probe.php');
|
||||
require_once('include/group.php');
|
||||
require_once 'include/enotify.php';
|
||||
require_once 'include/probe.php';
|
||||
require_once 'include/group.php';
|
||||
|
||||
function dfrn_request_init(App $a) {
|
||||
|
||||
|
@ -522,8 +522,6 @@ function dfrn_request_post(App $a) {
|
|||
return; // NOTREACHED
|
||||
}
|
||||
|
||||
require_once('include/Scrape.php');
|
||||
|
||||
$parms = Probe::profile(($hcard) ? $hcard : $url);
|
||||
|
||||
if (! count($parms)) {
|
||||
|
@ -767,7 +765,7 @@ function dfrn_request_content(App $a) {
|
|||
}
|
||||
|
||||
if($auto_confirm) {
|
||||
require_once('mod/dfrn_confirm.php');
|
||||
require_once 'mod/dfrn_confirm.php';
|
||||
$handsfree = array(
|
||||
'uid' => $r[0]['uid'],
|
||||
'node' => $r[0]['nickname'],
|
||||
|
|
|
@ -2,11 +2,12 @@
|
|||
|
||||
use Friendica\App;
|
||||
|
||||
require_once('include/contact_widgets.php');
|
||||
require_once('include/socgraph.php');
|
||||
require_once('include/Contact.php');
|
||||
require_once('include/contact_selectors.php');
|
||||
require_once('mod/contacts.php');
|
||||
require_once 'include/contact_widgets.php';
|
||||
require_once 'include/probe.php';
|
||||
require_once 'include/socgraph.php';
|
||||
require_once 'include/Contact.php';
|
||||
require_once 'include/contact_selectors.php';
|
||||
require_once 'mod/contacts.php';
|
||||
|
||||
function dirfind_init(App $a) {
|
||||
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
use Friendica\App;
|
||||
|
||||
require_once('include/Scrape.php');
|
||||
require_once('include/follow.php');
|
||||
require_once('include/Contact.php');
|
||||
require_once('include/contact_selectors.php');
|
||||
require_once 'include/probe.php';
|
||||
require_once 'include/follow.php';
|
||||
require_once 'include/Contact.php';
|
||||
require_once 'include/contact_selectors.php';
|
||||
|
||||
function follow_content(App $a) {
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ require_once 'include/files.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';
|
||||
|
||||
|
@ -144,7 +144,6 @@ function item_post(App $a) {
|
|||
$parent_contact = get_contact_details_by_url($thrparent[0]["author-link"]);
|
||||
|
||||
if (!isset($parent_contact["nick"])) {
|
||||
require_once 'include/Scrape.php';
|
||||
$probed_contact = probe_url($thrparent[0]["author-link"]);
|
||||
if ($probed_contact["network"] != NETWORK_FEED) {
|
||||
$parent_contact = $probed_contact;
|
||||
|
@ -1106,7 +1105,6 @@ function item_content(App $a) {
|
|||
* @return boolean true if replaced, false if not replaced
|
||||
*/
|
||||
function handle_tag(App $a, &$body, &$inform, &$str_tags, $profile_uid, $tag, $network = "") {
|
||||
require_once 'include/Scrape.php';
|
||||
require_once 'include/socgraph.php';
|
||||
|
||||
$replaced = false;
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
use Friendica\App;
|
||||
|
||||
require_once('include/Scrape.php');
|
||||
require_once('include/follow.php');
|
||||
require_once 'include/probe.php';
|
||||
require_once 'include/follow.php';
|
||||
|
||||
function ostatus_subscribe_content(App $a) {
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
||||
|
@ -982,9 +982,9 @@ function photos_content(App $a) {
|
|||
return;
|
||||
}
|
||||
|
||||
require_once('include/bbcode.php');
|
||||
require_once('include/security.php');
|
||||
require_once('include/conversation.php');
|
||||
require_once 'include/bbcode.php';
|
||||
require_once 'include/security.php';
|
||||
require_once 'include/conversation.php';
|
||||
|
||||
if (! x($a->data,'user')) {
|
||||
notice( t('No photos selected') . EOL );
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
use Friendica\App;
|
||||
|
||||
require_once('include/Scrape.php');
|
||||
require_once 'include/probe.php';
|
||||
|
||||
function probe_content(App $a) {
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
<?php
|
||||
|
||||
use Friendica\App;
|
||||
use Friendica\Network\Probe;
|
||||
|
||||
require_once("include/Contact.php");
|
||||
require_once('include/Probe.php');
|
||||
require_once 'include/Contact.php';
|
||||
|
||||
function profiles_init(App $a) {
|
||||
|
||||
|
@ -504,7 +504,7 @@ function profiles_post(App $a) {
|
|||
proc_run(PRIORITY_LOW, "include/directory.php", $url);
|
||||
}
|
||||
|
||||
require_once('include/profile_update.php');
|
||||
require_once 'include/profile_update.php';
|
||||
profile_change();
|
||||
|
||||
// Update the global contact for the user
|
||||
|
@ -529,7 +529,7 @@ function profile_activity($changed, $value) {
|
|||
return;
|
||||
}
|
||||
|
||||
require_once('include/items.php');
|
||||
require_once 'include/items.php';
|
||||
|
||||
$self = q("SELECT * FROM `contact` WHERE `self` = 1 AND `uid` = %d LIMIT 1",
|
||||
intval(local_user())
|
||||
|
@ -623,7 +623,7 @@ function profiles_content(App $a) {
|
|||
return;
|
||||
}
|
||||
|
||||
require_once('include/profile_selectors.php');
|
||||
require_once 'include/profile_selectors.php';
|
||||
|
||||
|
||||
$a->page['htmlhead'] .= replace_macros(get_markup_template('profed_head.tpl'), array(
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
use Friendica\App;
|
||||
|
||||
require_once('include/Scrape.php');
|
||||
require_once('include/follow.php');
|
||||
require_once 'include/probe.php';
|
||||
require_once 'include/follow.php';
|
||||
|
||||
function repair_ostatus_content(App $a) {
|
||||
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
<?php
|
||||
|
||||
use Friendica\App;
|
||||
|
||||
require_once("include/Probe.php");
|
||||
use Friendica\Network\Probe;
|
||||
|
||||
function webfinger_content(App $a) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue