<?php
require_once("include/Contact.php");
+require_once('include/Probe.php');
function profiles_init(&$a) {
$lookup = str_replace('_',' ', $lookup);
if(strpos($lookup,'@') || (strpos($lookup,'http://'))) {
$newname = $lookup;
- $links = @lrdd($lookup);
+ $links = @Probe::lrdd($lookup);
if(count($links)) {
foreach($links as $link) {
if($link['@attributes']['rel'] === 'http://webfinger.net/rel/profile-page') {
// Update global directory in background
$url = $_SESSION['my_url'];
if($url && strlen(get_config('system','directory')))
- proc_run('php',"include/directory.php","$url");
+ proc_run(PRIORITY_LOW, "include/directory.php", $url);
require_once('include/profile_update.php');
profile_change();
$arr['deny_gid'] = $a->user['deny_gid'];
$i = item_store($arr);
- if($i) {
- proc_run('php',"include/notifier.php","activity","$i");
- }
+ if($i)
+ proc_run(PRIORITY_HIGH, "include/notifier.php", "activity", $i);
}
'$work' => array('work', t('Work/employment'), $r[0]['work']),
'$education' => array('education', t('School/education'), $r[0]['education']),
'$contact' => array('contact', t('Contact information and Social Networks'), $r[0]['contact']),
-
- //eigene
-
));
$arr = array('profile' => $r[0], 'entry' => $o);