require_once('include/group.php');
require_once("mod/proxy.php");
-if(! function_exists('ping_init')) {
function ping_init(&$a) {
header("Content-type: text/xml");
$local_time = datetime_convert('UTC',date_default_timezone_get(),$n['date']);
call_hooks('ping_xmlize', $n);
- $notsxml = '<note href="%s" name="%s" url="%s" photo="%s" date="%s" seen="%s" timestamp="%s" >%s</note>'."\n";
- return sprintf ( $notsxml,
+ $notsxml = '<note id="%d" href="%s" name="%s" url="%s" photo="%s" date="%s" seen="%s" timestamp="%s" >%s</note>'."\n";
+ return sprintf ( $notsxml, intval($n['id']),
xmlify($n['href']), xmlify($n['name']), xmlify($n['url']), xmlify($n['photo']),
xmlify(relative_date($n['date'])), xmlify($n['seen']), xmlify(strtotime($local_time)),
xmlify($n['message'])
killme();
}
-}
-if(! function_exists('ping_get_notifications')) {
function ping_get_notifications($uid) {
$result = array();
return($result);
}
-}