if (!is_object($xrd))
return false;
- $links = xml::element_to_array($xrd);
+ $links = \xml::element_to_array($xrd);
if (!isset($links["xrd"]["link"]))
return false;
public static function uri($uri, $network = "", $uid = 0, $cache = true) {
if ($cache) {
- $result = Cache::get("probe_url:".$network.":".$uri);
+ $result = \Cache::get("probe_url:".$network.":".$uri);
if (!is_null($result)) {
return $result;
}
// Only store into the cache if the value seems to be valid
if (!in_array($data['network'], array(NETWORK_PHANTOM, NETWORK_MAIL))) {
- Cache::set("probe_url:".$network.":".$uri, $data, CACHE_DAY);
+ \Cache::set("probe_url:".$network.":".$uri, $data, CACHE_DAY);
/// @todo temporary fix - we need a real contact update function that updates only changing fields
/// The biggest problem is the avatar picture that could have a reduced image size.
return $webfinger;
}
- $xrd_arr = xml::element_to_array($xrd);
+ $xrd_arr = \xml::element_to_array($xrd);
if (!isset($xrd_arr["xrd"]["link"]))
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']);