]> git.mxchange.org Git - friendica.git/blobdiff - src/Network/Probe.php
Add Contact Object
[friendica.git] / src / Network / Probe.php
index 7e1d28ef8a7fcefa6f1d2dbb237a9d96e4ffa511..b758956123826cbca02dbd7b1c07af196017044f 100644 (file)
@@ -10,13 +10,13 @@ namespace Friendica\Network;
 
 use Friendica\App;
 use Friendica\Core\System;
+use Friendica\Core\Cache;
 use Friendica\Core\Config;
-use Friendica\Database\Dbm;
+use Friendica\Database\DBM;
+use Friendica\Object\Profile;
+use Friendica\Util\XML;
 
 use dba;
-use Cache;
-use xml;
-
 use DomXPath;
 use DOMDocument;
 
@@ -124,7 +124,7 @@ class Probe {
                        return array();
                }
 
-               $links = xml::element_to_array($xrd);
+               $links = XML::element_to_array($xrd);
                if (!isset($links["xrd"]["link"])) {
                        logger("No xrd data found for ".$host, LOGGER_DEBUG);
                        return array();
@@ -397,7 +397,7 @@ class Probe {
                                        }
                                }
 
-                               $fields['updated'] = Dbm::date();
+                               $fields['updated'] = DBM::date();
 
                                $condition = array('nurl' => normalise_link($data["url"]));
 
@@ -420,7 +420,7 @@ class Probe {
                                                'confirm' => $data['confirm'],
                                                'poco' => $data['poco'],
                                                'network' => $data['network'],
-                                               'success_update' => Dbm::date());
+                                               'success_update' => DBM::date());
 
                                $fieldnames = array();
 
@@ -706,7 +706,7 @@ class Probe {
                        return false;
                }
 
-               $xrd_arr = xml::element_to_array($xrd);
+               $xrd_arr = XML::element_to_array($xrd);
                if (!isset($xrd_arr["xrd"]["link"])) {
                        logger("No XML webfinger links for ".$url, LOGGER_DEBUG);
                        return false;
@@ -1501,7 +1501,7 @@ class Probe {
 
                        $r = q("SELECT * FROM `mailacct` WHERE `uid` = %d AND `server` != '' LIMIT 1", intval($uid));
 
-                       if (Dbm::is_result($x) && Dbm::is_result($r)) {
+                       if (DBM::is_result($x) && DBM::is_result($r)) {
                                $mailbox = construct_mailbox_name($r[0]);
                                $password = '';
                                openssl_private_decrypt(hex2bin($r[0]['pass']), $password, $x[0]['prvkey']);