"Y", "SEARCH" => ((IsModuleInstalled("search") && ($DB->TableExists("b_forum_message") || $DB->TableExists("B_FORUM_MESSAGE"))) ? "Y" : "N")); if (($GLOBALS["DB"]->TableExists("b_forum_dictionary") || $GLOBALS["DB"]->TableExists("B_FORUM_DICTIONARY")) && ($GLOBALS["DB"]->TableExists("b_forum_filter") || $GLOBALS["DB"]->TableExists("B_FORUM_FILTER"))) { $tmp_res_q = $GLOBALS["DB"]->Query( "SELECT COUNT(FF.ID) AS COUNT_WORDS FROM b_forum_dictionary FD LEFT JOIN b_forum_filter FF ON (FD.ID=FF.DICTIONARY_ID) WHERE (FD.ID=1 OR FD.ID=2)", True); if ($tmp_res_q && ($res = $tmp_res_q->Fetch())) $SHOW["FILTER"] = "N"; } $arSites= array(); $db_res = CSite::GetList("", "", array("ACTIVE" => "Y")); if ($db_res && ($res = $db_res->Fetch())) { do { $arSites[] = array("SITE_ID" => $res["LID"], "NAME" => $res["NAME"], "DIR" => preg_replace("/[\/\\\]+/is", "/", "/".$res["DIR"]."/forum/")); }while ($res = $db_res->Fetch()); } ?>