use Friendica\Core\PConfig;
use Friendica\Core\System;
use Friendica\Core\Worker;
+use Friendica\Database\DBM;
use Friendica\Network\Probe;
require_once 'include/Contact.php';
intval($a->argv[2]),
intval(local_user())
);
- if (! dbm::is_result($r)) {
+ if (! DBM::is_result($r)) {
notice( t('Profile not found.') . EOL);
goaway('profiles');
return; // NOTREACHED
intval($a->argv[2]),
intval(local_user())
);
- if (dbm::is_result($r)) {
+ if (DBM::is_result($r)) {
info(t('Profile deleted.').EOL);
}
$r0 = q("SELECT `id` FROM `profile` WHERE `uid` = %d",
intval(local_user()));
- $num_profiles = (dbm::is_result($r0) ? count($r0) : 0);
+ $num_profiles = (DBM::is_result($r0) ? count($r0) : 0);
$name = t('Profile-') . ($num_profiles + 1);
);
info( t('New profile created.') . EOL);
- if (dbm::is_result($r3) && count($r3) == 1) {
+ if (DBM::is_result($r3) && count($r3) == 1) {
goaway('profiles/' . $r3[0]['id']);
}
$r0 = q("SELECT `id` FROM `profile` WHERE `uid` = %d",
intval(local_user()));
- $num_profiles = (dbm::is_result($r0) ? count($r0) : 0);
+ $num_profiles = (DBM::is_result($r0) ? count($r0) : 0);
$name = t('Profile-') . ($num_profiles + 1);
$r1 = q("SELECT * FROM `profile` WHERE `uid` = %d AND `id` = %d LIMIT 1",
intval(local_user()),
intval($a->argv[2])
);
- if(! dbm::is_result($r1)) {
+ if(! DBM::is_result($r1)) {
notice( t('Profile unavailable to clone.') . EOL);
killme();
return;
dbesc($name)
);
info( t('New profile created.') . EOL);
- if ((dbm::is_result($r3)) && (count($r3) == 1)) {
+ if ((DBM::is_result($r3)) && (count($r3) == 1)) {
goaway('profiles/'.$r3[0]['id']);
}
intval($a->argv[1]),
intval(local_user())
);
- if (! dbm::is_result($r)) {
+ if (! DBM::is_result($r)) {
notice( t('Profile not found.') . EOL);
killme();
return;
intval($a->argv[1]),
intval(local_user())
);
- if (! dbm::is_result($orig)) {
+ if (! DBM::is_result($orig)) {
notice( t('Profile not found.') . EOL);
return;
}
dbesc($newname),
intval(local_user())
);
- if (! dbm::is_result($r)) {
+ if (! DBM::is_result($r)) {
$r = q("SELECT * FROM `contact` WHERE `nick` = '%s' AND `uid` = %d LIMIT 1",
dbesc($lookup),
intval(local_user())
);
}
- if (dbm::is_result($r)) {
+ if (DBM::is_result($r)) {
$prf = $r[0]['url'];
$newname = $r[0]['name'];
}
intval(local_user())
);
- if (! dbm::is_result($self)) {
+ if (! DBM::is_result($self)) {
return;
}
intval($a->argv[1]),
intval(local_user())
);
- if (! dbm::is_result($r)) {
+ if (! DBM::is_result($r)) {
notice( t('Profile not found.') . EOL);
return;
}
$r = q("SELECT * FROM `profile` WHERE `uid` = %d AND `is-default`=1",
local_user()
);
- if (dbm::is_result($r)) {
+ if (DBM::is_result($r)) {
//Go to the default profile.
goaway('profiles/' . $r[0]['id']);
}
$r = q("SELECT * FROM `profile` WHERE `uid` = %d",
local_user());
- if (dbm::is_result($r)) {
+ if (DBM::is_result($r)) {
$tpl = get_markup_template('profile_entry.tpl');