\language ^en$
# New features in version $TCL:VERSION {Release notes}
-## New directives
-### MIMEFile
-Supports the `mime.types` from the Apache HTTPd using `MIMEFile` directive.
+Added last modifed date to the indexing.
\language ^jp$
# Tewi HTTPd $TCL:VERSION の新機能 {リリース情報}
-## 新しい命令
-### MIMEFile
-`MIMEFile`命令を使用してApache HTTPdの`mime.types`が使えるようになりました。
+最終更新日時をインデックスに追加しました。
addstring(&str, " <tr>\n");
addstring(&str, " <th></th>\n");
addstring(&str, " <th>Filename</th>\n");
+ addstring(&str, " <th>Last-modified</th>\n");
addstring(&str, " <th>MIME</th>\n");
addstring(&str, " <th>Size</th>\n");
addstring(&str, " </tr>\n");
char* fpth = cm_strcat3(path, "/", items[i]);
struct stat s;
char size[512];
+ char date[512];
char* showmime;
char* mime;
+ struct tm* tm;
size[0] = 0;
stat(fpth, &s);
+ tm = localtime(&s.st_mtime);
+ strftime(date, 512, "%a, %d %b %Y %H:%M:%S %Z", tm);
if(phase == 0 && !S_ISDIR(s.st_mode)) {
free(fpth);
continue;
addstring(&str, "<tr>\n");
addstring(&str, " <td><img src=\"%s\" alt=\"icon\"></td>\n", icon);
addstring(&str, " <td><a href=\"%l\"><code>%h</code></a></td>\n", items[i], itm);
+ addstring(&str, " <td><code> %h </code></td>\n", date);
addstring(&str, " <td><code> %h </code></td>\n", showmime);
addstring(&str, " <td><code> %s </code></td>\n", size);
addstring(&str, "</tr>\n");
extern "C" {
#endif
-#define TW_VERSION "2.04\0"
-#define TW_VERSION_TEXT "Tewi HTTPd version 2.04"
+#define TW_VERSION "2.05\0"
+#define TW_VERSION_TEXT "Tewi HTTPd version 2.05"
const char* tw_get_version(void);
const char* tw_get_platform(void);