~lastrosade/jsthttpd

cc2b0011e15420b45054cb3d7402fe5b6cef76fe — Jeremy Lee Shields 1 year, 2 months ago 756ea8c
Theming
1 files changed, 13 insertions(+), 6 deletions(-)

M src/libhttpd.c
M src/libhttpd.c => src/libhttpd.c +13 -6
@@ 2752,11 2752,18 @@ ls( httpd_conn* hc )
		}

	    (void) fprintf( fp, "\
<HTML>\n\
<HEAD><TITLE>Index of %.80s</TITLE></HEAD>\n\
<BODY BGCOLOR=\"#f2f2f2\" TEXT=\"#444\" LINK=\"green\" VLINK=\"green\">\n\
<H2>Index of %.80s</H2>\n\
<PRE>\n\
<HTML><HEAD><TITLE>Index of %.80s</TITLE>\n\
<meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\">\n\
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n\
<meta name=\"keywords\" content=\"Index\">\n\
<meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">\n\
<style type=\"text/css\">\n\
a { color: #009900; }\n\
.red { color: red }\n\
body { background-color: #101010; color: #eeeeee; -webkit-font-smoothing: none; }\n\
</style></HEAD><BODY>\n\
<h3><span class=\"red\">[</span>Index of %.80s<span class=\"red\">]</span></h3>\n\
<pre>\n\
mode  links  bytes  last-changed  name\n\
<HR>",
		hc->encodedurl, hc->encodedurl );


@@ 2912,7 2919,7 @@ mode  links  bytes  last-changed  name\n\
		    nameptrs[i], linkprefix, link, fileclass );
		}

	    (void) fprintf( fp, "</PRE></BODY>\n</HTML>\n" );
	    (void) fprintf( fp, "</pre></BODY>\n</HTML>\n" );
	    (void) fclose( fp );
	    exit( 0 );
	    }