<?php
require_once('include/items.php');
+require_once('include/dfrn.php');
require_once('include/event.php');
require_once('library/defuse/php-encryption-1.2.1/Crypto.php');
-if(! function_exists('dfrn_notify_post')) {
function dfrn_notify_post(&$a) {
logger(__function__, LOGGER_TRACE);
$dfrn_id = ((x($_POST,'dfrn_id')) ? notags(trim($_POST['dfrn_id'])) : '');
logger('rino: decrypted data: ' . $data, LOGGER_DATA);
}
- $ret = local_delivery($importer,$data);
+ $ret = dfrn::import($data, $importer);
xml_status($ret);
// NOTREACHED
}
-}
-if(! function_exists('dfrn_notify_content')) {
+
function dfrn_notify_content(&$a) {
if(x($_GET,'dfrn_id')) {
killme();
}
-}
+
}