- // Determines and displays the virtual alias.
- global $globals;
- $res = XDB::query(
- "SELECT alias
- FROM virtual
- INNER JOIN virtual_redirect USING (vid)
- INNER JOIN auth_user_quick ON (user_id = {?} AND emails_alias_pub = 'public')
- WHERE (redirect={?} OR redirect={?})
- AND alias LIKE '%@{$globals->mail->alias_dom}'",
- $login->id(),
- $login->forlifeEmail(),
- // TODO(vzanotti): get ride of all @m4x.org addresses in the
- // virtual redirect base, and remove this über-ugly hack.
- $login->login() . '@' . $globals->mail->domain2);
- $page->assign('virtualalias', $res->fetchOneCell());
-
- // Adds miscellaneous properties to the display.
- // Adds the global user property array to the display.
- $page->assign_by_ref('x', $user);
- $page->assign_by_ref('user', $login);
- $page->assign('logged', has_user_right('private', $view));
+ $page->assign_by_ref('p', $profile);
+ $page->assign_by_ref('o', $owner);