use Friendica\Core\PConfig;
use Friendica\Core\System;
use Friendica\Core\Worker;
+use Friendica\Database\DBM;
require_once 'include/ForumManager.php';
require_once 'include/bbcode.php';
foreach ($_SESSION['remote'] as $visitor) {
if ($visitor['uid'] == $uid) {
$r = dba::select('contact', array('profile-id'), array('id' => $visitor['cid']), array('limit' => 1));
- if (dbm::is_result($r)) {
+ if (DBM::is_result($r)) {
$profile = $r['profile-id'];
}
break;
$profile_int
);
}
- if (!dbm::is_result($r)) {
+ if (!DBM::is_result($r)) {
$r = dba::fetch_first("SELECT `contact`.`id` AS `contact_id`, `contact`.`photo` as `contact_photo`,
`contact`.`thumb` AS `contact_thumb`, `contact`.`micro` AS `contact_micro`,
`profile`.`uid` AS `profile_uid`, `profile`.*,
'entries' => array(),
);
- if (dbm::is_result($r)) {
+ if (DBM::is_result($r)) {
foreach ($r as $rr) {
$profile['menu']['entries'][] = array(
if (is_array($a->profile) && !$a->profile['hide-friends']) {
$r = q("SELECT `gcontact`.`updated` FROM `contact` INNER JOIN `gcontact` WHERE `gcontact`.`nurl` = `contact`.`nurl` AND `self` AND `uid` = %d LIMIT 1",
intval($a->profile['uid']));
- if (dbm::is_result($r))
+ if (DBM::is_result($r))
$updated = date("c", strtotime($r[0]['updated']));
$r = q("SELECT COUNT(*) AS `total` FROM `contact`
dbesc(NETWORK_DIASPORA),
dbesc(NETWORK_OSTATUS)
);
- if (dbm::is_result($r))
+ if (DBM::is_result($r))
$contacts = intval($r[0]['total']);
}
}
datetime_convert('UTC','UTC','now + 6 days'),
datetime_convert('UTC','UTC','now')
);
- if (dbm::is_result($s)) {
+ if (DBM::is_result($s)) {
$r = dba::inArray($s);
Cache::set($cachekey, $r, CACHE_HOUR);
}
}
- if (dbm::is_result($r)) {
+ if (DBM::is_result($r)) {
$total = 0;
$now = strtotime('now');
$cids = array();
$r = array();
- if (dbm::is_result($s)) {
+ if (DBM::is_result($s)) {
$now = strtotime('now');
$istoday = false;