$arr['blocked'] = $blocked;
$arr['verified'] = $verified;
+ $arr['language'] = get_browser_language();
$result = create_user($arr);
if($netpublish && $a->config['register_policy'] != REGISTER_APPROVE) {
$url = $a->get_baseurl() . '/profile/' . $user['nickname'];
- proc_run('php',"include/directory.php","$url");
+ proc_run(PRIORITY_LOW, "include/directory.php", $url);
}
$using_invites = get_config('system','invitation_only');
). EOL
);
}
+ } else {
+ info( t('Registration successful.') . EOL ) ;
+ goaway(z_root());
}
}
elseif($a->config['register_policy'] == REGISTER_APPROVE) {
$admin_mail_list
);
-
foreach ($adminlist as $admin) {
notification(array(
'type' => NOTIFY_SYSTEM,
'source_photo' => $a->get_baseurl() . "/photo/avatar/".$user['uid'].".jpg",
'to_email' => $admin['email'],
'uid' => $admin['uid'],
- 'language' => ($admin['language']?$admin['language']:'en'))
- );
+ 'language' => ($admin['language']?$admin['language']:'en'),
+ 'show_in_notification_page' => false
+ ));
}
-
info( t('Your registration is pending approval by the site owner.') . EOL ) ;
goaway(z_root());