mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-13 17:00:19 +00:00
put_deleve_auth_file -> dav_auth_file. added placeholders for user
This commit is contained in:
1 parent
bac0f75dd6
commit
bbc65c7987
1 file changed
+4
-2
+4
-2
@@ -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) {
|
|||||||
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() {
|
|||||||
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);
|
||||||
|
|||||||
Reference in new issue
Block a user