function outputCZLayoutHTTPSSettings()
 {
     global $application;
     //1.                 Layout-   CZ    FS.
     //2.                    Layout-   CZ        .
     //3.        2                                  1,
     //                     .
     //4.               2.                          .
     $layouts_from_fs = LayoutConfigurationManager::static_get_cz_layouts_list();
     $layouts_from_bd = modApiFunc("Configuration", "getLayoutSettings");
     foreach ($layouts_from_fs as $fname => $info) {
         if (!array_key_exists($fname, $layouts_from_bd)) {
             execQuery('INSERT_LAYOUT_HTTPS_SETTINGS', array('layout_full_file_name' => $fname));
         }
     }
     $layouts_from_bd = modApiFunc("Configuration", "getLayoutSettings");
     if (sizeof($layouts_from_bd) > 0) {
         $CZHTTPSLayouts = "";
         foreach ($layouts_from_bd as $fname => $info) {
             $config = LayoutConfigurationManager::static_parse_layout_config_file($fname);
             if (!empty($config)) {
                 $this->_Template_Contents['CZHTTPSLayoutId'] = $info['id'];
                 //CZHTTPSLayouts
                 //CZHTTPSLayoutSections
                 $map = modApiFunc("Configuration", "getLayoutSettingNameByCZLayoutSectionNameMap");
                 $CZHTTPSLayoutSections = "";
                 $checked_sections = array();
                 foreach ($info as $key => $value) {
                     if (in_array($key, $map)) {
                         //
                         $this->_Template_Contents['_hinttext'] = gethinttext('HTTPS_FIELD_' . $key);
                         $this->_Template_Contents['CZHTTPSSectionName'] = getMsg('CFG', 'HTTPS_KEY_NAME_' . $key);
                         $this->_Template_Contents['CZHTTPSSectionKey'] = $key;
                         $this->_Template_Contents['CZHTTPSSectionValue'] = $value == DB_TRUE ? " CHECKED " : "";
                         if ($value == DB_TRUE) {
                             $checked_sections[] = $key;
                         }
                         $application->registerAttributes($this->_Template_Contents);
                         $CZHTTPSLayoutSections .= modApiFunc('TmplFiller', 'fill', "configuration/cz_https/", "section.tpl.html", array());
                     }
                 }
                 $this->_Template_Contents['CZHTTPSLayoutFileName'] = $fname;
                 $this->_Template_Contents['CZHTTPSLayoutURL'] = $config['SITE_URL'];
                 $this->_Template_Contents['CZHTTPSLayoutId'] = $info['id'];
                 $this->_Template_Contents['CZHTTPSLayoutSections'] = $CZHTTPSLayoutSections;
                 $this->_Template_Contents['CZHTTPSLayoutCheckedSections'] = implode('|', $checked_sections);
                 $application->registerAttributes($this->_Template_Contents);
                 $CZHTTPSLayouts .= modApiFunc('TmplFiller', 'fill', "configuration/cz_https/", "item.tpl.html", array());
             }
         }
         $this->_Template_Contents['CZHTTPSLayouts'] = $CZHTTPSLayouts;
         $application->registerAttributes($this->_Template_Contents);
         return modApiFunc('TmplFiller', 'fill', "configuration/cz_https/", "container.tpl.html", array());
     } else {
         //              : layout                    .
         return modApiFunc('TmplFiller', 'fill', "configuration/cz_https/", "container-empty.tpl.html", array());
     }
 }
 /**
  * [                                             ].
  *                                           ,                              .
  *                                                             ,
  *                       static_get_cz_layouts_list().
  *
  *         .                    application                                    ,
  *                      .                                        :                    .
  */
 function static_activate_cz_layout($layout_config_ini_path)
 {
     global $application;
     $config_parsing_results = LayoutConfigurationManager::static_parse_layout_config_file($layout_config_ini_path);
     if (empty($config_parsing_results["MAIN_ERROR_PARAMETERS"])) {
         //      ,                       :
         //:                                         ,
         //                             .                                 .
         $config_check_results = LayoutConfigurationManager::static_checkLayoutFile($layout_config_ini_path, $config_parsing_results["SITE_PATH"], $config_parsing_results["PATH_LAYOUTS_CONFIG_FILE"]);
         //                        -        -               .
         if (empty($config_check_results["MAIN_ERROR_PARAMETERS"])) {
             $application->readLayoutsINI();
             //Merge parse results with appIni
             $application->appIni = array_merge($application->appIni, $config_parsing_results);
         }
     }
 }