$a = get_app();
$register = q("SELECT * FROM `register` WHERE `hash` = '%s' LIMIT 1",
- dbesc($hash)
+ DBA::escape($hash)
);
- if (!DBA::is_result($register)) {
+ if (!DBA::isResult($register)) {
return false;
}
intval($register[0]['uid'])
);
- if (!DBA::is_result($user)) {
+ if (!DBA::isResult($user)) {
killme();
}
$r = q("DELETE FROM `register` WHERE `hash` = '%s'",
- dbesc($register[0]['hash'])
+ DBA::escape($register[0]['hash'])
);
$r = q("SELECT * FROM `profile` WHERE `uid` = %d AND `is-default` = 1",
intval($user[0]['uid'])
);
- if (DBA::is_result($r) && $r[0]['net-publish']) {
+ if (DBA::isResult($r) && $r[0]['net-publish']) {
$url = System::baseUrl() . '/profile/' . $user[0]['nickname'];
if ($url && strlen(Config::get('system', 'directory'))) {
Worker::add(PRIORITY_LOW, "Directory", $url);
Config::get('config', 'sitename'),
System::baseUrl(),
$user[0]['username'],
- $register[0]['password']);
+ $register[0]['password'],
+ $user[0]);
L10n::popLang();
function user_deny($hash)
{
$register = q("SELECT * FROM `register` WHERE `hash` = '%s' LIMIT 1",
- dbesc($hash)
+ DBA::escape($hash)
);
- if (!DBA::is_result($register)) {
+ if (!DBA::isResult($register)) {
return false;
}