} else { $summa = false; } //no setting (will be read later from session) define("HELP_FILE", "event_type_list.php"); $sTableID = "tbl_event_graph_list"; $lAdmin = new CAdminList($sTableID); $arrDef = array(); $rs = CStatEventType::GetList($v1 = "s_total_counter", $v2 = "desc", $arF, $v3); while ($ar = $rs->Fetch()) { if ($ar["DIAGRAM_DEFAULT"] == "Y") { $arrDef[] = $ar["ID"]; } $arrEVENTS[$ar["ID"]] = $ar["EVENT"] . " [" . $ar["ID"] . "]"; } if ($lAdmin->IsDefaultFilter()) { $find_events = array(); if (is_array($arrEVENTS)) { foreach ($arrEVENTS as $key => $value) { if ($i <= 9 && in_array($key, $arrDef)) { $find_events[] = $key; $i++; } } } $find_date1_DAYS_TO_BACK = 90; $set_filter = "Y"; } $FilterArr = array("find_events", "find_date1", "find_date2"); $lAdmin->InitFilter($FilterArr); if (!is_array($find_events)) {