Cierra el ticket #199
parent
8d7357aa50
commit
cf3c44193b
|
@ -14,6 +14,10 @@ BEGIN {
|
||||||
|
|
||||||
/^<!--[[:space:]]*var[[:space:]]+[^[:space:]]+[[:space:]]*-->$/ {
|
/^<!--[[:space:]]*var[[:space:]]+[^[:space:]]+[[:space:]]*-->$/ {
|
||||||
if (varname) print ";";
|
if (varname) print ";";
|
||||||
|
if ($3 == "NONE") {
|
||||||
|
varname = 0;
|
||||||
|
next;
|
||||||
|
}
|
||||||
varname = $3;
|
varname = $3;
|
||||||
print "static const u_char " varname "[] = \"\"";
|
print "static const u_char " varname "[] = \"\"";
|
||||||
next;
|
next;
|
||||||
|
|
33
template.h
33
template.h
|
@ -4,19 +4,34 @@ static const u_char t01_head1[] = ""
|
||||||
"\"http://www.w3.or/TR/xhtml1/DTD/xhtml1-strict.dtd\">"
|
"\"http://www.w3.or/TR/xhtml1/DTD/xhtml1-strict.dtd\">"
|
||||||
"<html xmlns=\"http://www.w3.or/1999/xhtml\">"
|
"<html xmlns=\"http://www.w3.or/1999/xhtml\">"
|
||||||
"<head>"
|
"<head>"
|
||||||
|
"<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\"/>"
|
||||||
"<style type=\"text/css\">"
|
"<style type=\"text/css\">"
|
||||||
"body,html {"
|
"body,html {"
|
||||||
"backround:#fff;"
|
"backround:#fff;"
|
||||||
"}"
|
"}"
|
||||||
"tr.o {"
|
"tr.o {"
|
||||||
"backround: #eee;"
|
"backround:#f4f4f4;"
|
||||||
|
"}"
|
||||||
|
"th,td {"
|
||||||
|
"paddin:0.1em 0.5em;"
|
||||||
"}"
|
"}"
|
||||||
"th {"
|
"th {"
|
||||||
|
"text-alin:left;"
|
||||||
"font-weiht:bold;"
|
"font-weiht:bold;"
|
||||||
"backround: #ddd;"
|
"backround:#eee;"
|
||||||
|
"border-bottom:1px solid #aaa;"
|
||||||
|
"}"
|
||||||
|
"#list {"
|
||||||
|
"border:1px solid #aaa;"
|
||||||
|
"width:100%;"
|
||||||
|
"}"
|
||||||
|
"a {"
|
||||||
|
"color:#a33;"
|
||||||
|
"}"
|
||||||
|
"a:hover {"
|
||||||
|
"color:#e33;"
|
||||||
"}"
|
"}"
|
||||||
"</style>"
|
"</style>"
|
||||||
"<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\"/>"
|
|
||||||
"<title>Index of "
|
"<title>Index of "
|
||||||
;
|
;
|
||||||
static const u_char t02_head2[] = ""
|
static const u_char t02_head2[] = ""
|
||||||
|
@ -25,16 +40,16 @@ static const u_char t02_head2[] = ""
|
||||||
;
|
;
|
||||||
static const u_char t03_body1[] = ""
|
static const u_char t03_body1[] = ""
|
||||||
"<body>"
|
"<body>"
|
||||||
"<h1>"
|
"<h1>Index of "
|
||||||
;
|
;
|
||||||
static const u_char t04_body2[] = ""
|
static const u_char t04_body2[] = ""
|
||||||
"</h1>"
|
"</h1>"
|
||||||
;
|
;
|
||||||
static const u_char t05_list1[] = ""
|
static const u_char t05_list1[] = ""
|
||||||
"<table>"
|
"<table id=\"list\" cellpaddin=\"0.1em\" cellspacin=\"0\">"
|
||||||
"<colroup>"
|
"<colroup>"
|
||||||
"<col width=\"55%\"/>"
|
"<col width=\"55%\"/>"
|
||||||
"<col width=\"20%\" style=\"text-alin: riht\"/>"
|
"<col width=\"20%\"/>"
|
||||||
"<col width=\"25%\"/>"
|
"<col width=\"25%\"/>"
|
||||||
"</colroup>"
|
"</colroup>"
|
||||||
"<thead>"
|
"<thead>"
|
||||||
|
@ -45,8 +60,10 @@ static const u_char t05_list1[] = ""
|
||||||
"</tr>"
|
"</tr>"
|
||||||
"</thead>"
|
"</thead>"
|
||||||
"<tbody>"
|
"<tbody>"
|
||||||
"<tr>"
|
"<tr class=\"e\">"
|
||||||
"<td colspan=\"3\"><a href=\"../\">Parent Directory</a></td>"
|
"<td><a href=\"../\">Parent Directory</a></td>"
|
||||||
|
"<td>-</td>"
|
||||||
|
"<td>-</td>"
|
||||||
"</tr>"
|
"</tr>"
|
||||||
;
|
;
|
||||||
static const u_char t06_list2[] = ""
|
static const u_char t06_list2[] = ""
|
||||||
|
|
|
@ -3,33 +3,52 @@
|
||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
<head>
|
<head>
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
body,html {
|
body,html {
|
||||||
background:#fff;
|
background:#fff;
|
||||||
}
|
}
|
||||||
tr.o {
|
tr.o {
|
||||||
background: #eee;
|
background:#f4f4f4;
|
||||||
|
}
|
||||||
|
th,td {
|
||||||
|
padding:0.1em 0.5em;
|
||||||
}
|
}
|
||||||
th {
|
th {
|
||||||
|
text-align:left;
|
||||||
font-weight:bold;
|
font-weight:bold;
|
||||||
background: #ddd;
|
background:#eee;
|
||||||
|
border-bottom:1px solid #aaa;
|
||||||
|
}
|
||||||
|
#list {
|
||||||
|
border:1px solid #aaa;
|
||||||
|
width:100%;
|
||||||
|
}
|
||||||
|
a {
|
||||||
|
color:#a33;
|
||||||
|
}
|
||||||
|
a:hover {
|
||||||
|
color:#e33;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
|
|
||||||
<title>Index of
|
<title>Index of
|
||||||
|
<!-- var NONE -->
|
||||||
|
/path/to/somewhere
|
||||||
<!-- var t02_head2 -->
|
<!-- var t02_head2 -->
|
||||||
</title>
|
</title>
|
||||||
</head>
|
</head>
|
||||||
<!-- var t03_body1 -->
|
<!-- var t03_body1 -->
|
||||||
<body>
|
<body>
|
||||||
<h1>
|
<h1>Index of
|
||||||
|
<!-- var NONE -->
|
||||||
|
/path/to/somewhere
|
||||||
<!-- var t04_body2 -->
|
<!-- var t04_body2 -->
|
||||||
</h1>
|
</h1>
|
||||||
<!-- var t05_list1 -->
|
<!-- var t05_list1 -->
|
||||||
<table>
|
<table id="list" cellpadding="0.1em" cellspacing="0">
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col width="55%"/>
|
<col width="55%"/>
|
||||||
<col width="20%" style="text-align: right"/>
|
<col width="20%"/>
|
||||||
<col width="25%"/>
|
<col width="25%"/>
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<thead>
|
<thead>
|
||||||
|
@ -40,8 +59,26 @@
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr class="e">
|
||||||
<td colspan="3"><a href="../">Parent Directory</a></td>
|
<td><a href="../">Parent Directory</a></td>
|
||||||
|
<td>-</td>
|
||||||
|
<td>-</td>
|
||||||
|
</tr>
|
||||||
|
<!-- var NONE -->
|
||||||
|
<tr class="o">
|
||||||
|
<td>test file 1</td>
|
||||||
|
<td>123kB</td>
|
||||||
|
<td>date</td>
|
||||||
|
</tr>
|
||||||
|
<tr class="e">
|
||||||
|
<td>test file 2</td>
|
||||||
|
<td>321MB</td>
|
||||||
|
<td>date</td>
|
||||||
|
</tr>
|
||||||
|
<tr class="o">
|
||||||
|
<td>test file 3</td>
|
||||||
|
<td>666</td>
|
||||||
|
<td>date</td>
|
||||||
</tr>
|
</tr>
|
||||||
<!-- var t06_list2 -->
|
<!-- var t06_list2 -->
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
Loading…
Reference in New Issue