$templates.shared.doctype
{=
include "templates.shared.util.build_database_info_table";
# Note, this template is only active in the Lite version!
string profile_name = internal.profile_name;
string profile_label = node_value(subnode_by_name("profiles." . profile_name, "label"));
'\n';
'
\n';
'
{=
'\n';
# ----------
# log source
# ----------
string log_source_name = node_name(subnode_by_number("profiles." . profile_name . ".log.source", 0));
node log_source_node = subnode_by_number("profiles." . profile_name . ".log.source", 0);
string log_source_type = node_value(subnode_by_name(log_source_node, "type"));
string log_source_info;
string log_source_label;
# string param1 = profile_label;
if (log_source_type eq "local") then (
log_source_info = lang_admin.profiles_config.log_source_local_disk_info;
log_source_label = lang_admin.profiles_config.log_source_local_disk_label;
)
else (
log_source_info = lang_admin.profiles_config.log_source_ftp_info;
log_source_label = lang_admin.profiles_config.log_source_ftp_label;
);
'\n';
'
' . log_source_info . '
\n';
'
\n';
'\n';
# '' . lang_options.profile.log.source.type.label . ': \n';
'' . log_source_label . ' \n';
' \n';
if (log_source_type eq "local") then (
# bool local_process_subdir = false; NOT USED IN LITE
# bool local_pattern_is_reg_expr = false; NOT USED IN LITE
string local_pathname = node_value(subnode_by_name(log_source_node, "pathname"));
if (contains(local_pathname, "$")) then (local_pathname = replace_all(local_pathname, "$", "$"));
'\n';
'' . lang_options.profile.log.source.type.local.pathname.label . ': \n';
'' . local_pathname . ' \n';
' \n';
)
else (
# bool ftp_pattern_is_reg_expr = false; NOT USED IN LITE
string ftp_username = node_value(subnode_by_name(log_source_node, "username"));
string ftp_password = node_value(subnode_by_name(log_source_node, "password"));
string ftp_hostname = node_value(subnode_by_name(log_source_node, "hostname"));
string ftp_pathname = node_value(subnode_by_name(log_source_node, "pathname"));
bool ftp_use_passive = false;
if (subnode_exists(log_source_node, "use_passive")) then (
ftp_use_passive = node_value(subnode_by_name(log_source_node, "use_passive"));
);
int password_char_length = length(ftp_password);
int count = 0;
ftp_password = "";
while (count < password_char_length) (
ftp_password .= "*";
count++;
);
'\n';
'' . lang_options.profile.log.source.type.ftp.hostname.label . ': \n';
'' . ftp_hostname . ' \n';
' \n';
'\n';
'' . lang_options.profile.log.source.type.ftp.username.label . ': \n';
'' . ftp_username . ' \n';
' \n';
'\n';
'' . lang_options.profile.log.source.type.ftp.password.label . ': \n';
'' . ftp_password . ' \n';
' \n';
'\n';
'' . lang_options.profile.log.source.type.ftp.pathname.label . ': \n';
'' . ftp_pathname . ' \n';
' \n';
'\n';
'';
' ';
lang_options.profile.log.source.type.ftp.use_passive.label;
'\n';
' \n';
);
'
\n';
# ---------------
# log format info
# ---------------
string param1 = "
" . node_value("profiles." . profile_name . ".log.format.format_label") . " ";
string log_format_info = expand(lang_admin.profiles_config.log_format_info);
'\n';
'
' . log_format_info . '
\n';
# -------------
# database info
# -------------
'\n';
get_database_info(profile_name, "volatile.database_info");
node database_info_node = "volatile.database_info";
bool database_built = node_value(subnode_by_name(database_info_node, "built"));
if (database_built) then (
# Show database info
'
\n';
build_database_info_table(database_info_node);
)
else (
'
' . lang_admin.profiles_config.no_database_exists_info . '
\n';
);
expand(templates.shared.copyright);
=}