diff --git a/api/index.php b/api/index.php index f1d71ec..c3ed054 100644 --- a/api/index.php +++ b/api/index.php @@ -1108,7 +1108,7 @@ switch($PARAM_1) if(CModule::IncludeModule('iblock')) { $announcements = []; - $announcements_res = CIBlockElement::GetList(["SORT" => "ASC"], ["ACTIVE" => "Y", "IBLOCK_ID" => 24], false, []); + $announcements_res = CIBlockElement::GetList(["SORT" => "ASC"], ["ACTIVE" => "Y", "IBLOCK_ID" => IBLOCK_ID_ACCOUNT_ANNOUNCEMENTS], false, []); while ($announcements_ob_element = $announcements_res->GetNextElement()) { $announcements_ar_res = $announcements_ob_element->GetFields(); @@ -1802,7 +1802,7 @@ switch($PARAM_1) if(CModule::IncludeModule('iblock')) { $sort = ["ACTIVE_FROM" => "DESC", "SORT" => "DESC"]; - $filter = ["ACTIVE" => "Y", "IBLOCK_ID" => 18]; + $filter = ["ACTIVE" => "Y", "IBLOCK_ID" => IBLOCK_ID_ACCOUNT_RULES]; $options = []; if(!empty($REQ['date'])) @@ -1841,7 +1841,7 @@ switch($PARAM_1) if(CModule::IncludeModule('iblock')) { $sort = ["ACTIVE_FROM" => "DESC", "SORT" => "DESC"]; - $filter = ["ACTIVE" => "Y", "IBLOCK_ID" => 21]; + $filter = ["ACTIVE" => "Y", "IBLOCK_ID" => IBLOCK_ID_ACCOUNT_MATERIALS]; $options = []; $materials = []; @@ -1877,7 +1877,7 @@ switch($PARAM_1) if(CModule::IncludeModule('iblock')) { $sort = ["ACTIVE_FROM" => "DESC", "SORT" => "DESC"]; - $filter = ["ACTIVE" => "Y", "IBLOCK_ID" => 25]; + $filter = ["ACTIVE" => "Y", "IBLOCK_ID" => IBLOCK_ID_ACCOUNT_SUPPORT]; $options = []; /* @@ -1890,12 +1890,12 @@ switch($PARAM_1) */ $themes = []; - $themes_res = CIBlockSection::GetList( [ "SORT" => "ASC" ], [ 'IBLOCK_ID' => 25, 'GLOBAL_ACTIVE' => 'Y', ], false, ); + $themes_res = CIBlockSection::GetList( [ "SORT" => "ASC" ], [ 'IBLOCK_ID' => IBLOCK_ID_ACCOUNT_SUPPORT, 'GLOBAL_ACTIVE' => 'Y', ], false, ); while($theme_result = $themes_res->GetNext()) { $theme = ["id" => md5($theme_result['NAME']), "name" => $theme_result['NAME']]; - $question_filter = [ 'IBLOCK_ID' => 25, 'SECTION_ID' => $theme_result['ID'], 'ACTIVE' => 'Y', ]; + $question_filter = [ 'IBLOCK_ID' => IBLOCK_ID_ACCOUNT_SUPPORT, 'SECTION_ID' => $theme_result['ID'], 'ACTIVE' => 'Y', ]; if(isset($REQ['query']) && !empty($REQ['query'])) { diff --git a/cron/yasprav.log b/cron/yasprav.log deleted file mode 100644 index 800a0a6..0000000 --- a/cron/yasprav.log +++ /dev/null @@ -1 +0,0 @@ -
1 => MO1
2 => SP1
3 => BN1
4 => BG1
5 => VL1
6 => VR1
7 => EK1
8 => IR1
9 => KZ1
10 => KG1
11 => KL1
12 => KM1
13 => KR1
14 => KS2
15 => KS1
16 => LP1
17 => NC1
18 => NN1
19 => NV1
20 => NR1
21 => NS1
22 => OM1
23 => OR1
24 => PR1
25 => RD1
26 => RZ1
27 => SM1
28 => SR1
29 => SC1
30 => SK1
31 => ST1
32 => SG1
33 => TL1
34 => TU1
35 => TM1
36 => UF1
37 => CB1
38 => CL1
39 => YR1Ok! Сохранено по ссылке! 08.09.2022 \ No newline at end of file