diff --git a/build/main.c b/build/main.c index 43f54050c3c88f7e1844746cde999b75e4aa394a..1d2fd5c4d7f3482ef6d02f5ff5b8a444a52604ce 100644 --- a/build/main.c +++ b/build/main.c @@ -75,6 +75,8 @@ static int exit_flag; static char server_name[40]; // Set by init_server_name() static char config_file[PATH_MAX]; // Set by process_command_line_arguments() static struct mg_server *server; // Set by start_mongoose() +static const char static_user_name[64] = "#__u__#"; +static const char static_user_email[64] = "#__e__#"; #if !defined(CONFIG_FILE) #define CONFIG_FILE "mongoose.conf" @@ -606,7 +608,7 @@ static int is_boolean_option(const char *option_name) { static int is_filename_option(const char *option_name) { return !strcmp(option_name, "cgi_interpreter") || !strcmp(option_name, "global_auth_file") || - !strcmp(option_name, "put_delete_auth_file") || + !strcmp(option_name, "dav_auth_file") || !strcmp(option_name, "access_log_file") || !strcmp(option_name, "error_log_file") || !strcmp(option_name, "ssl_certificate"); @@ -852,7 +854,7 @@ static void show_settings_dialog() { WIDTH - 140, y, 65, 12, "Reset to defaults"); add_control(&p, dia, 0x82, ID_STATIC, WS_CHILD | WS_VISIBLE | WS_DISABLED, - 5, y, 180, 12, server_name); + 5, y, 180, 12, static_user_name); dia->cy = ((nelems + 1) / 2 + 1) * HEIGHT + 30; DialogBoxIndirectParam(NULL, dia, NULL, DlgProc, (LPARAM) NULL);