$templates.shared.doctype {= include "templates.shared.util.get_licensing_features"; include "templates.shared.util.encode_js"; string user_node_name = node_name(volatile.authenticated_user_node_path); # ----------------------------------------- # check features (lite | pro | enterprise) # ----------------------------------------- string licensing_features = get_licensing_features(); # --------------------- # Create profiles array # --------------------- # The array is used to lookup duplicate profiles, note that a profile cannot be replaced in 7.1! int number_of_profiles = num_subnodes("profiles"); string profiles_js_array; if (number_of_profiles > 1) then ( profiles_js_array = "["; node profile; string profile_node_name; string profile_name; foreach profile "profiles" ( profile_node_name = node_name(profile); if (profile_node_name ne "default_profile") then ( profile_name = encode_js(node_value(subnode_by_name(profile, "label"))); # if (contains(profile_name, "$")) then (profile_name = replace_all(profile_name, "$", "\u0024")); # if (contains(profile_name, "'")) then (profile_name = replace_all(profile_name, "'", "\'")); profiles_js_array .= "{node_name:'" . profile_node_name . "',"; profiles_js_array .= "name:'" . profile_name . "'},"; ); ); profiles_js_array = replace_last(profiles_js_array, ",", "]"); ) else ( profiles_js_array = "[]"; ); # ------------------ # default log source # ------------------ string default_log_source = "local"; # --------------------------------- # default local log source pathname # --------------------------------- # Note, remembering the local log source pathname is intended to be used by developers only string local_log_source_pathname; if (node_exists("preferences.miscellaneous.remember_local_log_source_pathname") and node_value("preferences.miscellaneous.remember_local_log_source_pathname")) then ( if (node_exists("user_info." . user_node_name . ".user_preferences.new_profile_wizard.local_log_source_pathname")) then ( local_log_source_pathname = node_value("user_info." . user_node_name . ".user_preferences.new_profile_wizard.local_log_source_pathname"); local_log_source_pathname = replace_all(local_log_source_pathname, "$", "$"); ); ); # ---------------------------- # set show_reports_upon_finish # ---------------------------- bool show_reports_upon_finish = true; if (node_exists("user_info." . user_node_name . ".user_preferences.new_profile_wizard.show_reports_upon_finish")) then ( show_reports_upon_finish = node_value("user_info." . user_node_name . ".user_preferences.new_profile_wizard.show_reports_upon_finish"); ); # ------------- # common labels # ------------- string param1 = '' . SUPPORT_EMAIL . ''; string send_log_data_to_support_info = expand(lang_admin.new_profile_wizard.send_log_data_to_support_info); string click_next_to_continue_paragraph = '
' . lang_admin.general.continue_wizard_label . '
\n'; string local_pathname_field_sample; if (_PLATFORM eq "UNIX") then ( local_pathname_field_sample = lang_options.profile.log.source.type.local.pathname.unix_field_sample; ) else ( local_pathname_field_sample = lang_options.profile.log.source.type.local.pathname.win32_field_sample; ); # --------------------------------------------- # Subroutine build_matching_files_button_row # --------------------------------------------- subroutine(build_matching_files_button_row(string element_id, bool hide_row), ( ' \n'; )); # --------------------------------------------- # Subroutine build_beta_log_format_info_section # --------------------------------------------- subroutine(build_beta_log_format_info_section(string element_id), ( ' \n'; )); # ------------------------------------------ # Subroutine build_choose_different_info_row # ------------------------------------------ # This subroutine builds a row like: # Use this option if you want to manually choose a logging device. # If you believe that a different logging device should have been detected then click here for instructions. # In order to add support for your log format please contact support@flowerfire.com, let us know the device name which created the log data (i.e. Apache web server) and attach a sample of your compressed log data (up to 10MB). subroutine(build_choose_different_info_row( string wizard_page_name, string choose_different_text_path, string send_log_data_to_support_info), ( string support_info_section_id = wizard_page_name . "_support_info"; '' . use_manual_info . '
'; ' '; *# use_manual_info; ' '; '