<?php
-require_once('include/Probe.php');
-
// Included here for completeness, but this is a very dangerous operation.
// It is the caller's responsibility to confirm the requestor's intent and
// authorisation to do this.
dbesc($addr));
if (!dbm::is_result($r)) {
+ require_once('include/Probe.php');
$data = Probe::uri($addr);
$profile = get_contact_details_by_url($data['url'], $uid);
* @return integer Contact ID
*/
function get_contact($url, $uid = 0, $no_update = false) {
- require_once "include/Scrape.php";
-
logger("Get contact data for url ".$url." and user ".$uid." - ".App::callstack(), LOGGER_DEBUG);;
$data = array();
return 0;
}
- $data = probe_url($url);
+ require_once('include/Probe.php');
+ $data = Probe::uri($url);
if (!$data['url']) {
return 0;
}