X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fdfrn_confirm.php;h=897e85ecb60af2198db78cb6e66c271bbcc95536;hb=af41e5ed830e2264de3018d2a34b87ecfeb69554;hp=6ebde734e6ace3dfae9c610c521371afcaab1300;hpb=20043914e6111ba53df85e1efd3389c99d37302f;p=friendica.git diff --git a/mod/dfrn_confirm.php b/mod/dfrn_confirm.php index 6ebde734e6..897e85ecb6 100644 --- a/mod/dfrn_confirm.php +++ b/mod/dfrn_confirm.php @@ -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)