/** * Displays the privacy settings of a user. */ public function index_action() { // Get visibility settings from database. $this->global_visibility = get_global_visibility_by_id($this->user->user_id); $this->online_visibility = get_local_visibility_by_id($this->user->user_id, 'online'); $this->search_visibility = get_local_visibility_by_id($this->user->user_id, 'search'); $this->email_visibility = get_local_visibility_by_id($this->user->user_id, 'email'); // Get default visibility for homepage elements. $this->default_homepage_visibility = Visibility::get_default_homepage_visibility(); $this->NOT_HIDEABLE_FIELDS = $GLOBALS['NOT_HIDEABLE_FIELDS']; $this->user_perm = $GLOBALS['perm']->get_perm($this->user->user_id); $this->user_domains = UserDomain::getUserDomains(); // Calculate colWidth and colCount for different visibilities $this->colCount = Visibility::getColCount(); $this->colWidth = 67 / $this->colCount; $this->visibilities = Visibility::getVisibilities(); $this->homepage_elements = Visibility::getHTMLArgs(); }