function peopleGetHealthStuff($id, $username) { _filter_var($id); _filter_var($username); global $group_name; global $access_isAuthenticated; global $PagePeople_hasview; global $PagePeople_noview; $c_content = ''; $p = new PeoplePage($group_name); $c = $p->getHealthStuff($id); _filter_res_var($c); //$c_toedit = addslashes(strip_tags($c)); //$c_toview = parse_bbcode($c); $c_content .= "<input type=\"hidden\" id=\"healthstuff_stripped_content\" value=\"{$c}\">\n"; //$c_content .= "<splitme>\n"; if (!empty($c)) { parse_bbcode($c); // var passes by reference $c_content .= $c; $c_content .= "<br />\n"; } else { $c_content .= "<center><img src=\"http://grou.ps/images/nodata.png\" alt=\"No Data\" border=\"0\" /></center>"; } $canShowHealthStuff = $p->canShowHealthStuff($username); if ($access_isAuthenticated && $p->isOwner($id, $_SESSION['valid_user'])) { $c_content .= "<div class=\"box_mid_ops\" style=\"margin-top:25px;\"><div class=\"content\">"; $c_content .= "[ " . $p->getOperationIcon('pencil') . "<a href=\"javascript:void(people_edithealth({$id}))\">" . $p->_("Edit") . "</a> ]"; $c_content .= " "; if ($canShowHealthStuff) { $c_content .= "[ " . $p->getOperationIcon('hide', 'view_visopt_health') . "<a href=\"javascript:void(people_vishealth({$id}))\"><span id=\"visopt_health\">" . $p->_("Hide") . "</span></a> ]"; } else { $c_content .= "[ " . $p->getOperationIcon('show', 'view_visopt_health') . "<a href=\"javascript:void(people_vishealth({$id}))\"><span id=\"visopt_health\">" . $p->_("Show") . "</span></a> ]"; $c_content .= "<script>peopleHideSection(8,true);</script>"; } $c_content .= "</div></div>"; } if ($canShowHealthStuff) { return $PagePeople_hasview . $c_content; } else { return $PagePeople_noview . $c_content; } }