Commit bbc65c79 authored by Sergey Lyubka's avatar Sergey Lyubka

put_deleve_auth_file -> dav_auth_file. added placeholders for user

parent bac0f75d
...@@ -75,6 +75,8 @@ static int exit_flag; ...@@ -75,6 +75,8 @@ static int exit_flag;
static char server_name[40]; // Set by init_server_name() static char server_name[40]; // Set by init_server_name()
static char config_file[PATH_MAX]; // Set by process_command_line_arguments() static char config_file[PATH_MAX]; // Set by process_command_line_arguments()
static struct mg_server *server; // Set by start_mongoose() 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) #if !defined(CONFIG_FILE)
#define CONFIG_FILE "mongoose.conf" #define CONFIG_FILE "mongoose.conf"
...@@ -606,7 +608,7 @@ static int is_boolean_option(const char *option_name) { ...@@ -606,7 +608,7 @@ static int is_boolean_option(const char *option_name) {
static int is_filename_option(const char *option_name) { static int is_filename_option(const char *option_name) {
return !strcmp(option_name, "cgi_interpreter") || return !strcmp(option_name, "cgi_interpreter") ||
!strcmp(option_name, "global_auth_file") || !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, "access_log_file") ||
!strcmp(option_name, "error_log_file") || !strcmp(option_name, "error_log_file") ||
!strcmp(option_name, "ssl_certificate"); !strcmp(option_name, "ssl_certificate");
...@@ -852,7 +854,7 @@ static void show_settings_dialog() { ...@@ -852,7 +854,7 @@ static void show_settings_dialog() {
WIDTH - 140, y, 65, 12, "Reset to defaults"); WIDTH - 140, y, 65, 12, "Reset to defaults");
add_control(&p, dia, 0x82, ID_STATIC, add_control(&p, dia, 0x82, ID_STATIC,
WS_CHILD | WS_VISIBLE | WS_DISABLED, 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; dia->cy = ((nelems + 1) / 2 + 1) * HEIGHT + 30;
DialogBoxIndirectParam(NULL, dia, NULL, DlgProc, (LPARAM) NULL); DialogBoxIndirectParam(NULL, dia, NULL, DlgProc, (LPARAM) NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment