} else { eval("echo \"" . $subdivisionTemplate['Header'] . "\";"); } } echo "<div " . nc_ls_display_container($innerSubdivisionId) . ">"; if ($sub == $innerSubdivisionId) { echo $nc_result_msg; } else { if ($subClass) { echo nc_objects_list($innerSubdivisionId, $subClass['Sub_Class_ID']); } } echo "</div>"; if ($subdivisionTemplate) { if ($File_Mode) { echo $longpageTemplateView->get_footer(); } else { eval("echo \"" . $subdivisionTemplate['Footer'] . "\";"); } } $i++; } } } // выполнить необходимую обработку кода страницы и отдать результат пользователю: $nc_core->output_page_buffer(); function nc_full_message_parse_buffer($buffer) { global $REQUEST_URI, $classID, $message, $cache_vars; global $MODULE_VARS, $nc_cache_full, $current_sub, $current_cc, $cache_for_user; // cache section
require_once $nc_core->ADMIN_FOLDER . "array_to_form.inc.php"; $nc_a2f = new nc_a2f($nc_core->template->get_current("CustomSettings"), array()); $template_settings = $nc_a2f->get_values_as_array(); } if (!$templatePreview) { $array_settings_path = $template_view->get_all_settings_path_in_array(); foreach ($array_settings_path as $path) { include $path; } } $template_view->fill_fields(); if ($templatePreview) { eval('?>' . $template_view->get_settings()); } $template_env['Header'] = $template_view->get_header(); $template_env['Footer'] = $template_view->get_footer(); // %FIELD replace with inherited template field value $template_env = $nc_core->template->convert_subvariables($template_env); } $template_header = ""; $template_footer = ""; if (!$isNaked && $nc_core->get_page_type() != 'rss' && $nc_core->get_page_type() != 'xml') { $template_header = $template_env['Header']; $template_footer = $template_env['Footer']; if ($nc_core->subdivision->get_current("UseMultiSubClass") == 2 && !$nc_core->get_variable("inside_admin")) { $template_header_code = ''; $array_headers_path = $template_view->get_all_header_path_in_array(); foreach ($array_headers_path as $path) { $template_header_code .= file_get_contents($path); } if (strpos($template_header_code, '_browse_cc') === false) {