- }
- }
-
- function message($msg) {
- common_show_header(_t('OpenID Login'));
- common_element('p', NULL, $msg);
- common_show_footer();
- }
-
- function get_user($canonical) {
- $user = NULL;
- $oid = User_openid::staticGet('canonical', $canonical);
- if ($oid) {
- $user = User::staticGet('id', $oid->user_id);
- }
- return $user;
- }
-
- function update_user(&$user, $sreg) {