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;
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();
}
}
- $fields['updated'] = Dbm::date();
+ $fields['updated'] = DBM::date();
$condition = array('nurl' => normalise_link($data["url"]));
'confirm' => $data['confirm'],
'poco' => $data['poco'],
'network' => $data['network'],
- 'success_update' => Dbm::date());
+ 'success_update' => DBM::date());
$fieldnames = array();
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;
$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']);