require_once('include/photos.php');
require_once('include/user.php');
require_once('include/socgraph.php');
+ require_once('include/Probe.php');
// No parameter set? So return
if ($argc <= 1) {
// delete user and contact records for recently removed accounts
$r = q("SELECT * FROM `user` WHERE `account_removed` AND `account_expires_on` < UTC_TIMESTAMP() - INTERVAL 3 DAY");
if (dbm::is_result($r)) {
- foreach($r as $user) {
+ foreach ($r as $user) {
q("DELETE FROM `contact` WHERE `uid` = %d", intval($user['uid']));
q("DELETE FROM `user` WHERE `uid` = %d", intval($user['uid']));
}
return;
}
- $server_url = poco_detect_server($contact["url"]);
-
- if (($server_url != "") AND !poco_check_server($server_url)) {
- continue;
- }
-
if (!poco_reachable($contact["url"])) {
continue;
}
- $data = probe_url($contact["url"]);
+ $data = Probe::uri($contact["url"]);
if ($data["network"] != NETWORK_DIASPORA) {
continue;
}