use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\System;
-use Friendica\Protocol\Dfrn;
+use Friendica\Database\DBM;
+use Friendica\Protocol\DFRN;
require_once('include/items.php');
require_once('include/auth.php');
logger('dfrn_poll: public feed request from ' . $_SERVER['REMOTE_ADDR'] . ' for ' . $user);
header("Content-type: application/atom+xml");
- echo Dfrn::feed('', $user,$last_update, 0, $hidewall);
+ echo DFRN::feed('', $user,$last_update, 0, $hidewall);
killme();
}
dbesc($a->argv[1])
);
- if (dbm::is_result($r)) {
+ if (DBM::is_result($r)) {
$s = fetch_url($r[0]['poll'] . '?dfrn_id=' . $my_id . '&type=profile-check');
$r = q("SELECT * FROM `profile_check` WHERE `sec` = '%s' ORDER BY `expire` DESC LIMIT 1",
dbesc($sec)
);
- if (! dbm::is_result($r)) {
+ if (! DBM::is_result($r)) {
xml_status(3, 'No ticket');
// NOTREACHED
}
$c = q("SELECT * FROM `contact` WHERE `id` = %d LIMIT 1",
intval($r[0]['cid'])
);
- if (! dbm::is_result($c)) {
+ if (! DBM::is_result($c)) {
xml_status(3, 'No profile');
}
$contact = $c[0];
q("DELETE FROM `profile_check` WHERE `expire` < " . intval(time()));
$r = q("SELECT * FROM `profile_check` WHERE `dfrn_id` = '%s' ORDER BY `expire` DESC",
dbesc($dfrn_id));
- if (dbm::is_result($r)) {
+ if (DBM::is_result($r)) {
xml_status(1);
return; // NOTREACHED
}
$r = q("SELECT * FROM `profile_check` WHERE `sec` = '%s' ORDER BY `expire` DESC LIMIT 1",
dbesc($sec)
);
- if (! dbm::is_result($r)) {
+ if (! DBM::is_result($r)) {
xml_status(3, 'No ticket');
// NOTREACHED
}
$c = q("SELECT * FROM `contact` WHERE `id` = %d LIMIT 1",
intval($r[0]['cid'])
);
- if (! dbm::is_result($c)) {
+ if (! DBM::is_result($c)) {
xml_status(3, 'No profile');
}
$contact = $c[0];
dbesc($challenge)
);
- if (! dbm::is_result($r)) {
+ if (! DBM::is_result($r)) {
killme();
}
$r = q("SELECT * FROM `contact` WHERE `blocked` = 0 AND `pending` = 0 $sql_extra LIMIT 1");
- if (! dbm::is_result($r)) {
+ if (! DBM::is_result($r)) {
killme();
}
$reputation = 0;
$text = '';
- if (dbm::is_result($r)) {
+ if (DBM::is_result($r)) {
$reputation = $r[0]['rating'];
$text = $r[0]['reason'];
}
header("Content-type: application/atom+xml");
- $o = Dfrn::feed($dfrn_id, $a->argv[1], $last_update, $direction);
+ $o = DFRN::feed($dfrn_id, $a->argv[1], $last_update, $direction);
echo $o;
killme();
dbesc($nickname)
);
- if (dbm::is_result($r)) {
+ if (DBM::is_result($r)) {
$challenge = '';
$encrypted_id = '';
));
}
- $profile = ((dbm::is_result($r) && $r[0]['nickname']) ? $r[0]['nickname'] : $nickname);
+ $profile = ((DBM::is_result($r) && $r[0]['nickname']) ? $r[0]['nickname'] : $nickname);
switch($destination_url) {
case 'profile':