Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/error/include/top.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="<!--#echo var="CONTENT_LANGUAGE" -->" xml:lang="<!--#echo var="CONTENT_LANGUAGE" -->">
<head>
<meta name="color-scheme" content="light dark" />
<title><!--#echo encoding="none" var="TITLE" --></title>
<link rev="made" href="mailto:<!--#echo encoding="url" var="SERVER_ADMIN" -->" />
<style type="text/css"><!--/*--><![CDATA[/*><!--*/
Expand Down
2 changes: 1 addition & 1 deletion modules/cache/mod_cache_socache.c
Original file line number Diff line number Diff line change
Expand Up @@ -1369,7 +1369,7 @@ static int socache_status_hook(request_rec *r, int flags)
"<b><font color=\"#ffffff\" face=\"Arial,Helvetica\">"
"mod_cache_socache Status:</font></b>\n"
"</td></tr>\n"
"<tr><td bgcolor=\"#ffffff\">\n", r);
"<tr><td>\n", r);
}
else {
ap_rputs("ModCacheSocacheStatus\n", r);
Expand Down
3 changes: 1 addition & 2 deletions modules/dav/main/mod_dav.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ extern "C" {

#define DAV_READ_BLOCKSIZE 2048 /* used for reading input blocks */

#define DAV_RESPONSE_BODY_1 "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\n<html>\n<head>\n<title>"
#define DAV_RESPONSE_BODY_1 "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\n<html>\n<head>\n<meta name=\"color-scheme\" content=\"light dark\" />\n<title>"
#define DAV_RESPONSE_BODY_2 "</title>\n</head><body>\n<h1>"
#define DAV_RESPONSE_BODY_3 "</h1>\n<p>"
#define DAV_RESPONSE_BODY_4 "</p>\n"
Expand Down Expand Up @@ -2757,4 +2757,3 @@ DAV_DECLARE(const dav_resource_type_provider *) dav_get_resource_type_providers(

#endif /* _MOD_DAV_H_ */
/** @} */

1 change: 1 addition & 0 deletions modules/examples/mod_example_hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -1010,6 +1010,7 @@ static int x_handler(request_rec *r)
ap_rputs(DOCTYPE_HTML_4_01, r);
ap_rputs("<HTML>\n", r);
ap_rputs(" <HEAD>\n", r);
ap_rputs(" <META name=\"color-scheme\" content=\"light dark\">\n", r);
ap_rputs(" <TITLE>mod_example_hooks Module Content-Handler Output\n", r);
ap_rputs(" </TITLE>\n", r);
ap_rputs(" </HEAD>\n", r);
Expand Down
2 changes: 1 addition & 1 deletion modules/examples/mod_example_ipc.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
#include <unistd.h>
#endif

#define HTML_HEADER "<html>\n<head>\n<title>Mod_example_IPC Status Page " \
#define HTML_HEADER "<html>\n<head>\n<meta name=\"color-scheme\" content=\"light dark\" />\n<title>Mod_example_IPC Status Page " \
"</title>\n</head>\n<body>\n<h1>Mod_example_IPC Status</h1>\n"
#define HTML_FOOTER "</body>\n</html>\n"

Expand Down
4 changes: 3 additions & 1 deletion modules/generators/mod_autoindex.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ static void emit_preamble(request_rec *r, int xhtml, const char *title)
if (xhtml) {
ap_rvputs(r, DOCTYPE_XHTML_1_0T,
"<html xmlns=\"http://www.w3.org/1999/xhtml\">\n"
" <head>\n", NULL);
" <head>\n"
" <meta name=\"color-scheme\" content=\"light dark\" />\n", NULL);
if(d->charset != NULL) {
ap_rvputs(r, " <meta http-equiv=\"Content-Type\" content=\"text/html; charset=", d->charset, "\" />\n", NULL);
}
Expand All @@ -186,6 +187,7 @@ static void emit_preamble(request_rec *r, int xhtml, const char *title)
} else {
ap_rvputs(r, DOCTYPE_HTML_4_01,
"<html>\n <head>\n"
" <meta name=\"color-scheme\" content=\"light dark\" />\n"
" <title>Index of ", title,
"</title>\n", NULL);
}
Expand Down
1 change: 1 addition & 0 deletions modules/generators/mod_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,7 @@ static int display_info(request_rec * r)
ap_rputs(DOCTYPE_XHTML_1_0T
"<html xmlns=\"http://www.w3.org/1999/xhtml\">\n"
"<head>\n"
" <meta name=\"color-scheme\" content=\"light dark\" />\n"
" <title>Server Information</title>\n" "</head>\n", r);
ap_rputs("<body><h1 style=\"text-align: center\">"
"Apache Server Information</h1>\n", r);
Expand Down
1 change: 1 addition & 0 deletions modules/generators/mod_status.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,7 @@ static int status_handler(request_rec *r)
if (!short_report) {
ap_rputs(DOCTYPE_HTML_4_01
"<html><head>\n"
"<meta name=\"color-scheme\" content=\"light dark\" />\n"
"<title>Apache Status</title>\n"
"</head><body>\n"
"<h1>Apache Server Status for ", r);
Expand Down
2 changes: 1 addition & 1 deletion modules/http/http_protocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -1358,7 +1358,7 @@ AP_DECLARE(void) ap_send_error_response(request_rec *r, int recursive_error)

ap_rvputs_proto_in_ascii(r,
DOCTYPE_HTML_4_01
"<html><head>\n<title>", title,
"<html><head>\n<meta name=\"color-scheme\" content=\"light dark\" />\n<title>", title,
"</title>\n</head><body>\n<h1>", h1, "</h1>\n",
NULL);

Expand Down
4 changes: 2 additions & 2 deletions modules/ldap/util_ldap.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ static int util_ldap_handler(request_rec *r)
return OK;

ap_rputs(DOCTYPE_HTML_4_01
"<html><head><title>LDAP Cache Information</title></head>\n", r);
ap_rputs("<body bgcolor='#ffffff'><h1 align=center>LDAP Cache Information"
"<html><head><meta name=\"color-scheme\" content=\"light dark\" /><title>LDAP Cache Information</title></head>\n", r);
ap_rputs("<body><h1 align=center>LDAP Cache Information"
"</h1>\n", r);

util_ald_cache_display(r, st);
Expand Down
2 changes: 1 addition & 1 deletion modules/mappers/mod_imagemap.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ static void menu_header(request_rec *r, char *menu)
{
ap_set_content_type_ex(r, "text/html; charset=ISO-8859-1", 1);

ap_rvputs(r, DOCTYPE_HTML_4_01, "<html><head>\n<title>Menu for ",
ap_rvputs(r, DOCTYPE_HTML_4_01, "<html><head>\n<meta name=\"color-scheme\" content=\"light dark\" />\n<title>Menu for ",
ap_escape_html(r->pool, r->uri),
"</title>\n</head><body>\n", NULL);

Expand Down
15 changes: 12 additions & 3 deletions modules/proxy/mod_proxy_balancer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1597,29 +1597,38 @@ static void balancer_display_page(request_rec *r, proxy_server_conf *conf,
ap_rputs(DOCTYPE_HTML_4_01
"<html><head><title>Balancer Manager</title>\n", r);
ap_rputs("<style type='text/css'>\n"
":root {\n"
" --color-gray: lightgray;\n"
"}\n"
"@media (prefers-color-scheme: dark) {\n"
" :root {\n"
" --color-gray: darkgray;\n"
" }\n"
"}\n"
"html {\n"
" color-scheme: light dark;\n"
"}\n"
"table {\n"
" border-width: 1px;\n"
" border-spacing: 3px;\n"
" border-style: solid;\n"
" border-color: gray;\n"
" border-collapse: collapse;\n"
" background-color: white;\n"
" text-align: center;\n"
"}\n"
"th {\n"
" border-width: 1px;\n"
" padding: 2px;\n"
" border-style: dotted;\n"
" border-color: gray;\n"
" background-color: lightgray;\n"
" background-color: var(--color-gray);\n"
" text-align: center;\n"
"}\n"
"td {\n"
" border-width: 1px;\n"
" padding: 2px;\n"
" border-style: dotted;\n"
" border-color: gray;\n"
" background-color: white;\n"
" text-align: center;\n"
"}\n"
"</style>\n</head>\n", r);
Expand Down
2 changes: 1 addition & 1 deletion modules/proxy/mod_proxy_ftp.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ static apr_status_t proxy_send_dir_filter(ap_filter_t *f,
/* print "ftp://host/" */
escpath = ap_escape_html(p, path);
str = apr_psprintf(p, DOCTYPE_HTML_4_01
"<html>\n <head>\n <title>%s%s%s</title>\n"
"<html>\n <head>\n <meta name=\"color-scheme\" content=\"light dark\" />\n <title>%s%s%s</title>\n"
"<base href=\"%s%s%s\">\n"
" </head>\n"
" <body>\n <h2>Directory of "
Expand Down
3 changes: 1 addition & 2 deletions modules/ssl/ssl_scache.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ static int ssl_ext_status_hook(request_rec *r, int flags)
ap_rputs("<tr><td bgcolor=\"#000000\">\n", r);
ap_rputs("<b><font color=\"#ffffff\" face=\"Arial,Helvetica\">SSL/TLS Session Cache Status:</font></b>\r", r);
ap_rputs("</td></tr>\n", r);
ap_rputs("<tr><td bgcolor=\"#ffffff\">\n", r);
ap_rputs("<tr><td>\n", r);
}
else {
ap_rputs("TLSSessionCacheStatus\n", r);
Expand Down Expand Up @@ -236,4 +236,3 @@ void ssl_scache_status_register(apr_pool_t *p)
APR_OPTIONAL_HOOK(ap, status_hook, ssl_ext_status_hook, NULL, NULL,
APR_HOOK_MIDDLE);
}