/** * If a problem occurs, returns empty string * otherwise the html of the section * @param $id ID of the membership (not member) * @returns the html of section; if error empty string */ function peopleGetLoveStuff($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->getLoveStuff($id); $c .= $p->getBusinessStuff($id); $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=\"lovestuff_stripped_content\" value=\"{$c}\">\n"; //$c_content .= "<splitme>\n"; if (!empty($c)) { parse_bbcode($c); $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>"; } $canShowLoveStuff = $p->canShowLoveStuff($username) || $p->canShowBusinessStuff($username) || $p->canShowHealthStuff($username); if ($canShowLoveStuff) { return $PagePeople_hasview . $c_content; } else { return $PagePeople_noview . $c_content; } }