$templates.shared.doctype {= string profile_name = internal.profile_name; =} {= expand(templates.shared.content_type); =}
$lang_options.profile.database.options.label $lang_options.profile.database.options.edit_button
{= node options_node = "profiles." . profile_name . ".database.options"; string database_type = node_value(subnode_by_name(options_node, "database_type")); string database_directory = node_value(subnode_by_name(options_node, "database_directory")); int automatically_update_when_older_than = node_value(subnode_by_name(options_node, "automatically_update_when_older_than")); bool lock_database_when_in_use = node_value(subnode_by_name(options_node, "lock_database_when_in_use")); bool prompt_before_erasing_database = node_value(subnode_by_name(options_node, "prompt_before_erasing_database")); '\n'; # ------------- # database type # ------------- '\n'; '\n'; '\n'; '\n'; # ------------- # mysql options # ------------- if (database_type eq "mysql") then ( string mysql_server_hostname = node_value(subnode_by_name(options_node, "mysql_server_hostname")); string mysql_server_username = node_value(subnode_by_name(options_node, "mysql_server_username")); string mysql_server_password = node_value(subnode_by_name(options_node, "mysql_server_password")); string mysql_database_name = node_value(subnode_by_name(options_node, "mysql_database_name")); int password_char_length = length(mysql_server_password); int count = 0; mysql_server_password = ""; while (count < password_char_length) ( mysql_server_password .= "*"; count++; ); '\n'; '\n'; '\n'; '\n'; '\n'; '\n'; '\n'; '\n'; '\n'; '\n'; '\n'; '\n'; '\n'; '\n'; '\n'; '\n'; ); # --------------- # database folder # --------------- if (database_type eq "internal") then ( if (database_directory eq "") then ( # use database_info to evaluate the default database directory get_database_info(profile_name, "volatile.database_info"); debug_message("database_info: \n" . node_as_string("volatile.database_info") . "\n"); database_directory = node_value("volatile.database_info.database_directory"); ); '\n'; '\n'; '\n'; '\n'; ); # --------------------------------------------- # automatically update database when older than # --------------------------------------------- # if this value is 0 then this option is disabled # if this value is >0 then this option is enabled, the value is in seconds '\n'; '\n'; '\n'; # ------------------------- # lock_database_when_in_use # ------------------------- '\n'; '\n'; '\n'; # ------------------------------ # prompt_before_erasing_database # ------------------------------ '\n'; '\n'; '\n'; '
' . lang_options.profile.database.options.database_type.label . ':' . database_type . '
' . lang_options.profile.database.options.mysql_server_hostname.label . ':' . mysql_server_hostname . '
' . lang_options.profile.database.options.mysql_server_username.label . ':' . mysql_server_username . '
' . lang_options.profile.database.options.mysql_server_password.label . ':' . mysql_server_password . '
' . lang_options.profile.database.options.mysql_database_name.label . ':' . mysql_database_name . '
' . lang_options.profile.database.options.database_directory.label . ':' . database_directory . '
'; ' 0) then ('checked="checked" '); 'disabled="disabled" /> '; lang_options.profile.database.options.automatically_update_when_older_than.label; ' ' . automatically_update_when_older_than . ' '; lang_options.profile.database.options.automatically_update_when_older_than.label_2; '
'; ' '; lang_options.profile.database.options.lock_database_when_in_use.label; '
'; ' '; lang_options.profile.database.options.prompt_before_erasing_database.label; '
\n'; expand(templates.shared.copyright); =}