|
21 | 21 | // |
22 | 22 |
|
23 | 23 | // TODO: |
| 24 | +// convert spaces inside <td> to or use CSS td { white-space: pre; } -https://www.voidtools.com/forum/viewtopic.php?p=79828#p79828 |
| 25 | +// [HIGH] add HEAD requests |
24 | 26 | // obfuscate the password with base64. (like the Everything Server) |
25 | 27 | // add support for the date created column. |
26 | 28 | // a simple path rewrite to hide roots, for example: c:\private\media => /media |
@@ -398,8 +400,9 @@ static int http_server_items_per_page = HTTP_SERVER_DEFAULT_ITEMS_PER_PAGE; |
398 | 400 | static int http_server_show_drive_labels; |
399 | 401 | static everything_plugin_utf8_t *http_server_strings_filename = NULL; |
400 | 402 | static everything_plugin_utf8_t *http_server_header = NULL; |
401 | | -static int http_server_allow_query_access = 0; // is-open: online: runcount: |
402 | | -static int http_server_allow_disk_access = 0; // content: and include-filelist: |
| 403 | +static int http_server_allow_query_access = 0; // is-open: online: runcount: is-running: |
| 404 | +static int http_server_allow_disk_access = 0; // content: |
| 405 | +static int http_server_allow_full_access = 0; // include-filelist: |
403 | 406 | static int http_server_default_sort = HTTP_SERVER_SORT_DATE_MODIFIED; |
404 | 407 | static int http_server_default_sort_ascending = 0; |
405 | 408 |
|
@@ -1165,6 +1168,7 @@ __declspec( dllexport) void * EVERYTHING_PLUGIN_API everything_plugin_proc(DWORD |
1165 | 1168 | http_server_header = everything_plugin_get_setting_string(data,(const everything_plugin_utf8_t *)"header",http_server_header); |
1166 | 1169 | http_server_allow_query_access = everything_plugin_get_setting_int(data,(const everything_plugin_utf8_t *)"allow_query_access",http_server_allow_query_access); |
1167 | 1170 | http_server_allow_disk_access = everything_plugin_get_setting_int(data,(const everything_plugin_utf8_t *)"allow_disk_access",http_server_allow_disk_access); |
| 1171 | + http_server_allow_full_access = everything_plugin_get_setting_int(data,(const everything_plugin_utf8_t *)"allow_full_access",http_server_allow_full_access); |
1168 | 1172 | http_server_default_sort = everything_plugin_get_setting_int(data,(const everything_plugin_utf8_t *)"default_sort",http_server_default_sort); |
1169 | 1173 | http_server_default_sort_ascending = everything_plugin_get_setting_int(data,(const everything_plugin_utf8_t *)"default_sort_ascending",http_server_default_sort_ascending); |
1170 | 1174 |
|
@@ -1288,6 +1292,7 @@ __declspec( dllexport) void * EVERYTHING_PLUGIN_API everything_plugin_proc(DWORD |
1288 | 1292 | everything_plugin_set_setting_string(data,(const everything_plugin_utf8_t *)"header",http_server_header); |
1289 | 1293 | everything_plugin_set_setting_int(data,(const everything_plugin_utf8_t *)"allow_query_access",http_server_allow_query_access); |
1290 | 1294 | everything_plugin_set_setting_int(data,(const everything_plugin_utf8_t *)"allow_disk_access",http_server_allow_disk_access); |
| 1295 | + everything_plugin_set_setting_int(data,(const everything_plugin_utf8_t *)"allow_full_access",http_server_allow_full_access); |
1291 | 1296 | everything_plugin_set_setting_int(data,(const everything_plugin_utf8_t *)"default_sort",http_server_default_sort); |
1292 | 1297 | everything_plugin_set_setting_int(data,(const everything_plugin_utf8_t *)"default_sort_ascending",http_server_default_sort_ascending); |
1293 | 1298 |
|
@@ -5451,7 +5456,7 @@ static void http_server_start_next_query(void) |
5451 | 5456 | 0, |
5452 | 5457 | http_server_allow_query_access, |
5453 | 5458 | http_server_allow_disk_access, |
5454 | | - http_server_allow_disk_access, |
| 5459 | + http_server_allow_full_access, |
5455 | 5460 | 0, |
5456 | 5461 | EVERYTHING_PLUGIN_CONFIG_SIZE_STANDARD_JEDEC, |
5457 | 5462 | 0); |
|
0 commit comments