$templates.shared.doctype {= string profile_name = internal.profile_name; =} {= expand(templates.shared.content_type); =}
$lang_options.profile.database.tuning.label $lang_options.profile.database.tuning.edit_button
{= node tuning_node = "profiles." . profile_name . ".database.tuning"; node option; string option_name; string option_label; string option_type; '\n'; foreach option tuning_node ( option_name = node_name(option); option_label = node_value("lang_options.profile.database.tuning." . option_name . ".label"); option_type = node_value("option_info.profile.database.tuning." . option_name . ".type"); if (option_type ne "boolean") then ( string option_value = node_value(option); if (option_type eq "bytes") then ( bool option_value_match = matches_regular_expression(option_value, "([0-9]*)( ?)([a-zA-Z]*)"); int number_value = $1; string unit_value = lowercase($3); if (starts_with(unit_value, "k")) then ( option_value = number_value . " KB"; ) else if (starts_with(unit_value, "m")) then ( option_value = number_value . " MB"; ) else if (starts_with(unit_value, "g")) then ( option_value = number_value . " GB"; ) else if (starts_with(unit_value, "t")) then ( option_value = number_value . " TB"; ) else ( option_value = number_value . " bytes"; ); ); '\n'; '\n'; '\n'; '\n'; ) else ( bool option_is_checked = node_value(option); '\n'; '\n'; '\n'; ); ); '
' . option_label . ':' . option_value . '
'; ' '; option_label; '
\n'; expand(templates.shared.copyright); =}